CVE-2022-49359·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: drm/panfrost: Job should reference MMU not file_priv For a while now it's been allowed for a MMU context to outlive it's corresponding panfrost_priv, however the job structure still references panfrost_priv to get hold of the MMU context. If panfrost_priv has been freed this is a use-after-free which I've been able to trigger resulting in a splat. To fix this, drop the reference to panfrost_priv in the job structure and add a direct reference to the MMU structure which is what's actually needed.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.18.4
- Published
- 2025-02-26
Affected versions
From: 5.18
Until: 5.18.4
Fixed in: 5.18.4
How to fix this CVE
Update the Linux kernel to version 5.18.4 or later to resolve a use-after-free vulnerability in the DRM Panfrost driver. This flaw occurs when a GPU job structure retains a reference to a freed memory management context, potentially leading to kernel crashes or privilege escalation. Apply the kernel update and reboot your system to ensure the patch takes effect.
sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` and confirm if it falls within 5.18.0 to 5.18.3
- Step 2: Verify if Panfrost DRM driver is loaded by running `lsmod | grep panfrost` or `grep -i panfrost /proc/modules`
- Step 3: Search system logs for use-after-free or kernel panic messages related to Panfrost GPU with `grep -i 'panfrost\|use.after.free' /var/log/kern.log /var/log/syslog 2>/dev/null`
- Step 4: After updating, reboot and run `uname -r` to confirm kernel version is 5.18.4 or later, then verify Panfrost driver stability with `dmesg | tail -50` for any GPU-related errors
FAQ
What is CVE-2022-49359?
CVE-2022-49359 is a use-after-free memory vulnerability in the Linux kernel's DRM Panfrost GPU driver where job structures incorrectly maintain references to freed memory management contexts, potentially allowing local attackers to crash the kernel or escalate privileges.
Is CVE-2022-49359 being actively exploited?
No, CVE-2022-49359 is not listed on CISA's Known Exploited Vulnerabilities catalog and no public exploits are currently available.
What versions of Kernel are affected by CVE-2022-49359?
Linux kernel versions 5.18.0 through 5.18.3 are affected; kernel 5.18.4 and later versions contain the fix.
How do I check if my server is vulnerable to CVE-2022-49359?
Run `uname -r` to check your kernel version. If the output shows 5.18.0, 5.18.1, 5.18.2, or 5.18.3, your system is vulnerable. Then verify Panfrost support with `lsmod | grep panfrost`.
Does Defensia detect CVE-2022-49359?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2022-49359 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-49359. Free for 1 server.
Get started free