CVE-2024-42302
PCI/DPC: Fix use-after-free on concurrent DPC and hot-removal
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= d0292124bb5787a2f1ab1316509e801ca89c10fb, < c52f9e1a9eb40f13993142c331a6cfd334d4b91d; >= ffe2318405e605f1b3985ce188eff69e6d1d1baa, < 2c111413f38ca5cf87557cab89f6d82b0e3433e7; >= 189f856e76f5463f59efb5fc18dcc1692d04c41a, < f63df70b439bb8331358a306541893bf415bf1da; >= 53b54ad074de1896f8b021615f65b27f557ce874, < 2cc8973bdc4d6c928ebe38b88090a2cdfe81f42f; >= 53b54ad074de1896f8b021615f65b27f557ce874, < b16f3ea1db47a6766a9f1169244cf1fc287a7c62; >= 53b54ad074de1896f8b021615f65b27f557ce874, < 11a1f4bc47362700fcbde717292158873fb847ed; 0081032082b5b45ca902b3c3d6986cb5cca69ff2; >= 5.10.176, < 5.10.224; >= 5.15.104, < 5.15.165; >= 6.1.16, < 6.1.103; …
- Anyone running Linux 6.3
Vulnerability facts
- Affected
- Linux >= d0292124bb5787a2f1ab1316509e801ca89c10fb, < c52f9e1a9eb40f13993142c331a6cfd334d4b91d; >= ffe2318405e605f1b3985ce188eff69e6d1d1baa, < 2c111413f38ca5cf87557cab89f6d82b0e3433e7; >= 189f856e76f5463f59efb5fc18dcc1692d04c41a, < f63df70b439bb8331358a306541893bf415bf1da; >= 53b54ad074de1896f8b021615f65b27f557ce874, < 2cc8973bdc4d6c928ebe38b88090a2cdfe81f42f; >= 53b54ad074de1896f8b021615f65b27f557ce874, < b16f3ea1db47a6766a9f1169244cf1fc287a7c62; >= 53b54ad074de1896f8b021615f65b27f557ce874, < 11a1f4bc47362700fcbde717292158873fb847ed; 0081032082b5b45ca902b3c3d6986cb5cca69ff2; >= 5.10.176, < 5.10.224; >= 5.15.104, < 5.15.165; >= 6.1.16, < 6.1.103; …; Linux 6.3
- Fixed in
- Linux 2c111413f38ca5cf87557cab89f6d82b0e3433e7, Linux 2cc8973bdc4d6c928ebe38b88090a2cdfe81f42f, Linux 11a1f4bc47362700fcbde717292158873fb847ed, Linux 5.10.224, Linux 5.15.165, Linux 6.1.103
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.34% chance of exploitation in 30 days (percentile 20, 2026-11-26)
- CWE
- CWE-416
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: PCI/DPC: Fix use-after-free on concurrent DPC and hot-removal Keith reports a use-after-free when a DPC event occurs concurrently to hot-removal of the same portion of the hierarchy: The dpc_handler() awaits readiness of the secondary bus below the Downstream Port where the DPC event occurred. To do so, it polls 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 oops. That's because pci_bridge_wait_for_secondary_bus() neglects to hold a reference on the child device. Before v6.3, the function was only called on resume from system sleep or on runtime resume. Holding a reference wasn't necessary back then because the pciehp IRQ thread could never run concurrently. (On resume from system sleep, IRQs are not enabled until after the resume_noirq phase. And runtime resume is always awaited before a PCI device is removed.) However starting with v6.3, pci_bridge_wait_for_secondary_bus() is also called on a DPC event. Commit 53b54ad074de ("PCI/DPC: Await readiness of secondary bus after reset"), which introduced that, failed to appreciate that pci_bridge_wait_for_secondary_bus() now needs to hold a reference on the child device because dpc_handler() and pciehp may indeed run concurrently. The commit was backported to v5.10+ stable kernels, so that's the oldest one affected. Add the missing reference acquisition. Abridged stack trace: BUG: unable to handle page fault for address: 00000000091400c0 CPU: 15 PID: 2464 Comm: irq/53-pcie-dpc 6.9.0 RIP: pci_bus_read_config_dword+0x17/0x50 pci_dev_wait() pci_bridge_wait_for_secondary_bus() dpc_reset_link() pcie_do_recovery() dpc_handler()
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= d0292124bb5787a2f1ab1316509e801ca89c10fb, < c52f9e1a9eb40f13993142c331a6cfd334d4b91d; >= ffe2318405e605f1b3985ce188eff69e6d1d1baa, < 2c111413f38ca5cf87557cab89f6d82b0e3433e7; >= 189f856e76f5463f59efb5fc18dcc1692d04c41a, < f63df70b439bb8331358a306541893bf415bf1da; >= 53b54ad074de1896f8b021615f65b27f557ce874, < 2cc8973bdc4d6c928ebe38b88090a2cdfe81f42f; >= 53b54ad074de1896f8b021615f65b27f557ce874, < b16f3ea1db47a6766a9f1169244cf1fc287a7c62; >= 53b54ad074de1896f8b021615f65b27f557ce874, < 11a1f4bc47362700fcbde717292158873fb847ed; 0081032082b5b45ca902b3c3d6986cb5cca69ff2; >= 5.10.176, < 5.10.224; >= 5.15.104, < 5.15.165; >= 6.1.16, < 6.1.103; … | — | cvelist |
| Linux | 6.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-42302. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-42302.md Affected: Linux >= d0292124bb5787a2f1ab1316509e801ca89c10fb, < c52f9e1a9eb40f13993142c331a6cfd334d4b91d; >= ffe2318405e605f1b3985ce188eff69e6d1d1baa, < 2c111413f38ca5cf87557cab89f6d82b0e3433e7; >= 189f856e76f5463f59efb5fc18dcc1692d04c41a, < f63df70b439bb8331358a306541893bf415bf1da; >= 53b54ad074de1896f8b0216… Fixed in: Linux 2c111413f38ca5cf87557cab89f6d82b0e3433e7, Linux 2cc8973bdc4d6c928ebe38b88090a2cdfe81f42f, Linux 11a1f4bc47362700fcbde717292158873fb847ed, Linux 5.10.224, Linux 5.15.165, Linux 6.1.103 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/c52f9e1a9eb40f13993142c331a6cfd334d4b91d
- https://git.kernel.org/stable/c/2c111413f38ca5cf87557cab89f6d82b0e3433e7
- https://git.kernel.org/stable/c/f63df70b439bb8331358a306541893bf415bf1da
- https://git.kernel.org/stable/c/2cc8973bdc4d6c928ebe38b88090a2cdfe81f42f
- https://git.kernel.org/stable/c/b16f3ea1db47a6766a9f1169244cf1fc287a7c62
- https://git.kernel.org/stable/c/11a1f4bc47362700fcbde717292158873fb847ed
FAQ
Is CVE-2024-42302 being exploited?
There is no confirmed exploitation: CVE-2024-42302 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-42302?
High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-42302?
Linux >= d0292124bb5787a2f1ab1316509e801ca89c10fb, < c52f9e1a9eb40f13993142c331a6cfd334d4b91d; >= ffe2318405e605f1b3985ce188eff69e6d1d1baa, < 2c111413f38ca5cf87557cab89f6d82b0e3433e7; >= 189f856e76f5463f59efb5fc18dcc1692d04c41a, < f63df70b439bb8331358a306541893bf415bf1da; >= 53b54ad074de1896f8b021615f65b27f557ce874, < 2cc8973bdc4d6c928ebe38b88090a2cdfe81f42f; >= 53b54ad074de1896f8b021615f65b27f557ce874, < b16f3ea1db47a6766a9f1169244cf1fc287a7c62; >= 53b54ad074de1896f8b021615f65b27f557ce874, < 11a1f4bc47362700fcbde717292158873fb847ed; 0081032082b5b45ca902b3c3d6986cb5cca69ff2; >= 5.10.176, < 5.10.224; >= 5.15.104, < 5.15.165; >= 6.1.16, < 6.1.103; …; Linux 6.3.
Is there a fix for CVE-2024-42302?
Yes. Fixed in Linux 2c111413f38ca5cf87557cab89f6d82b0e3433e7, Linux 2cc8973bdc4d6c928ebe38b88090a2cdfe81f42f, Linux 11a1f4bc47362700fcbde717292158873fb847ed, Linux 5.10.224, Linux 5.15.165, Linux 6.1.103. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2024-42302?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.