{"id":"CVE-2024-35843","published":"2024-05-17T14:40:10Z","modified":"2026-08-05T11:30:15Z","title":"iommu/vt-d: Use device rbtree in iopf reporting path","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\niommu/vt-d: Use device rbtree in iopf reporting path\n\nThe existing I/O page fault handler currently locates the PCI device by\ncalling pci_get_domain_bus_and_slot(). This function searches the list\nof all PCI devices until the desired device is found. To improve lookup\nefficiency, replace it with device_rbtree_find() to search the device\nwithin the probed device rbtree.\n\nThe I/O page fault is initiated by the device, which does not have any\nsynchronization mechanism with the software to ensure that the device\nstays in the probed device tree. Theoretically, a device could be released\nby the IOMMU subsystem after device_rbtree_find() and before\niopf_get_dev_fault_param(), which would cause a use-after-free problem.\n\nAdd a mutex to synchronize the I/O page fault reporting path and the IOMMU\nrelease device path. This lock doesn't introduce any performance overhead,\nas the conflict between I/O page fault reporting and device releasing is\nvery rare.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00216,"percentile":0.12354,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/3d39238991e745c5df85785604f037f35d9d1b15","tags":[]},{"url":"https://git.kernel.org/stable/c/def054b01a867822254e1dda13d587f5c7a99e2a","tags":[]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":2.47},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 06f4b8d09dbabec631ed7b033f5d5413d86c7134, < 3d39238991e745c5df85785604f037f35d9d1b15",">= 06f4b8d09dbabec631ed7b033f5d5413d86c7134, < def054b01a867822254e1dda13d587f5c7a99e2a"]},{"vendor":"Linux","product":"Linux","versions":["6.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-04T19:36:46.083168Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-35674","exploited":false,"provenance":"source"}}