PT-2024-8526 · Linux+7 · Linux Kernel+7
Keith Busch
·
Published
2024-07-01
·
Updated
2025-09-29
·
CVE-2024-42302
CVSS v3.1
7.8
High
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel versions prior to 6.6.50
Description
The issue is related to a use-after-free vulnerability in the Linux kernel's PCI/DPC subsystem. Specifically, the
pci bridge wait for secondary bus() function neglects to hold a reference on the child device, leading to potential crashes or other security issues when a DPC event occurs concurrently with hot-removal of the same portion of the hierarchy. The vulnerability is caused by the dpc handler() awaiting readiness of the secondary bus below the Downstream Port where the DPC event occurred, and polling the config space of the first child device on the secondary bus. If that child device is concurrently removed, accesses to its struct pci dev cause the kernel to crash.Recommendations
To resolve the issue, update the Linux kernel to version 6.6.50 or later.
As a temporary workaround, consider disabling the
pci bridge wait for secondary bus() function until a patch is available.
Restrict access to the vulnerable PCI/DPC subsystem to minimize the risk of exploitation.
Avoid using the pci dev wait() function in conjunction with pci bridge wait for secondary bus() until the issue is resolved.Exploit
Fix
Use After Free
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Astra Linux
Linuxmint
Linux Kernel
Red Hat
Red Os
Suse
Ubuntu