CVE-2022-48981·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: drm/shmem-helper: Remove errant put in error path drm_gem_shmem_mmap() doesn't own this reference, resulting in the GEM object getting prematurely freed leading to a later use-after-free.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.0.13
- Published
- 2024-10-21
Affected versions
From: 5.16
Until: 6.0.13
Fixed in: 6.0.13
How to fix this CVE
Update your Linux kernel to version 6.0.13 or later to resolve a use-after-free vulnerability in the DRM shared memory helper module. This flaw occurs when the mmap function incorrectly decrements a reference counter during error handling, leading to premature object deallocation and potential memory corruption. Apply the patch through your distribution's kernel update mechanism immediately.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check the current kernel version: uname -r | awk -F'.' '{print $1"."$2"."$3}'
- Verify if kernel is in vulnerable range (5.16 to 6.0.12): if output matches 5.16-6.0.12, the system is vulnerable
- Search system logs for DRM-related crashes: grep -i 'use-after-free\|shmem\|drm_gem' /var/log/kernel.log /var/log/syslog 2>/dev/null
- After patching, confirm kernel version is 6.0.13 or later: uname -r and verify the third octet is ≥13 for 6.0.x series
FAQ
What is CVE-2022-48981?
CVE-2022-48981 is a use-after-free vulnerability in the Linux kernel's DRM shared memory helper module where an error path incorrectly releases a reference to a GEM graphics object, causing it to be freed prematurely and accessed later, potentially leading to kernel memory corruption.
Is CVE-2022-48981 being actively exploited?
No, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities catalog and has no public exploits available, though it remains a high-severity local privilege escalation risk.
What versions of Kernel are affected by CVE-2022-48981?
Linux kernel versions from 5.16 through 6.0.12 are vulnerable; version 6.0.13 and later contain the fix.
How do I check if my server is vulnerable to CVE-2022-48981?
Run 'uname -r' and extract the version number; if it falls between 5.16 and 6.0.12, your system is vulnerable and requires a kernel update.
Does Defensia detect CVE-2022-48981?
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-48981 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/24013314be6ee4ee456114a671e9fa3461323de8
- https://git.kernel.org/stable/c/585a07b820059462e0c93b76c7de2cd946b26b40
- https://git.kernel.org/stable/c/586847b98e20ab02212ca5c1fc46680384e68a28
- https://git.kernel.org/stable/c/6a4da05acd062ae7774b6b19cef2b7d922902d36
- https://git.kernel.org/stable/c/83e3da8bb92fcfa7a1d232cf55f9e6c49bb84942
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-48981. Free for 1 server.
Get started free