CVE-2024-35843: linux-libc-dev - iommu/vt-d: Use device rbtree in iopf reporting path
Summary
CVE-2024-35843: In the Linux kernel, the following vulnerability has been resolved: iommu/vt-d: Use device rbtree in iopf reporting path The existing I/O page fault handler currently locates the PCI device by calling pci_get_domain_bus_... Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The linux-libc-dev package is a development package that provides the necessary header files and libraries for compiling and linking programs against the Linux kernel. It is a crucial component for building software that interacts with the kernel. The vulnerability identified as CVE-2024-35843 affects the linux-libc-dev package version 6.1.90-1. This vulnerability is related to the I/O page fault handler in the kernel's iommu/vt-d subsystem.
Vulnerability Detail
The vulnerability arises from the existing I/O page fault handler's method of locating a PCI device by calling pci_get_domain_bus_and_slot(). This function searches the list of all PCI devices until the desired device is found. To improve efficiency, the function is replaced with device_rbtree_find() to search the device within the probed device rbtree. However, this introduces a potential use-after-free issue. If a device is released by the IOMMU subsystem after device_rbtree_find() and before iopf_get_dev_fault_param(), it can lead to a use-after-free problem. To address this, a mutex is added to synchronize the I/O page fault reporting path and the IOMMU release device path.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Conclusion
The vulnerability identified as CVE-2024-35843 affects the linux-libc-dev package version 6.1.90-1. It is recommended to update the package to a version that includes the patch for this vulnerability. This will ensure the necessary synchronization mechanism is in place to prevent the use-after-free problem. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for linux →
FAQ
The linux-libc-dev package provides the necessary header files and libraries for compiling and linking programs against the Linux kernel. It is a crucial component for building software that interacts with the kernel.
The vulnerability could potentially lead to a use-after-free problem in the I/O page fault reporting path of the iommu/vt-d subsystem. This could be exploited by an attacker to cause a denial-of-service or potentially execute arbitrary code with kernel privileges.
You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and the Vulert Playground will analyze it for any open-source vulnerabilities, including CVE-2024-35843.
No specific workaround has been provided for this vulnerability. It is recommended to update the linux-libc-dev package to a patched version as soon as possible.
You can find more information about this vulnerability in the Debian Security Tracker at https://salsa.debian.org/security-tracker-team/security-tracker. The CVE-2024-35843 entry on the National Vulnerability Database (NVD) at https://nvd.nist.gov/vuln/detail/CVE-2024-35843 also provides additional details.
Related vulnerabilities
Recent vulnerabilities recorded for linux.