CVE-2022-48867·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: dmaengine: idxd: Prevent use after free on completion memory On driver unload any pending descriptors are flushed at the time the interrupt is freed: idxd_dmaengine_drv_remove() -> drv_disable_wq() -> idxd_wq_free_irq() -> idxd_flush_pending_descs(). If there are any descriptors present that need to be flushed this flow triggers a "not present" page fault as below: BUG: unable to handle page fault for address: ff391c97c70c9040 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page The address that triggers the fault is the address of the descriptor that was freed moments earlier via: drv_disable_wq()->idxd_wq_free_resources() Fix the use after free by freeing the descriptors after any possible usage. This is done after idxd_wq_reset() to ensure that the memory remains accessible during possible completion writes by the device.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.1.8
- Published
- 2024-08-21
Affected versions
From: 5.19
Until: 6.1.8
Fixed in: 6.1.8
How to fix this CVE
Update your Linux kernel to version 6.1.8 or later to resolve a use-after-free vulnerability in the dmaengine IDXD driver that occurs during driver unload. This vulnerability can cause kernel page faults when pending DMA descriptors are accessed after their memory has been freed. Apply the patch immediately to systems running kernel versions 5.19 through 6.1.7.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r — if the output shows a version between 5.19 and 6.1.7, your system is vulnerable
- Verify IDXD driver is present: lsmod | grep idxd — if idxd module is loaded, the vulnerability is exploitable on this system
- Search kernel logs for page faults during driver operations: dmesg | grep -i 'page fault' | grep -i 'idxd\|dmaengine' — look for 'not-present page' errors
- Confirm the fix: uname -r should show version 6.1.8 or later after patching; verify with grep EXTRAVERSION /usr/src/linux-headers-$(uname -r)/.config
FAQ
What is CVE-2022-48867?
CVE-2022-48867 is a use-after-free vulnerability in the Linux kernel's dmaengine IDXD driver that occurs when pending DMA descriptors are flushed during driver unload, causing the driver to access memory that has already been freed, leading to a kernel panic.
Is CVE-2022-48867 being actively exploited?
No, CVE-2022-48867 is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are available. However, it can be triggered by unprivileged local users with access to driver unload operations.
What versions of Kernel are affected by CVE-2022-48867?
Linux kernel versions 5.19 through 6.1.7 are vulnerable. The vulnerability was fixed in kernel 6.1.8 and later versions.
How do I check if my server is vulnerable to CVE-2022-48867?
Run `uname -r` to check your kernel version — if it reports a version between 5.19 and 6.1.7, you are vulnerable. Additionally, confirm the IDXD driver is present with `lsmod | grep idxd`.
Does Defensia detect CVE-2022-48867?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server running versions 5.19-6.1.7, CVE-2022-48867 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-48867. Free for 1 server.
Get started free