# CVE-2024-42302: PCI/DPC: Fix use-after-free on concurrent DPC and hot-removal

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-08-17T09:09:08.891Z
- **Modified:** 2026-10-15T01:18:45.900Z

## 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

## 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

- 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)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/c52f9e1a9eb40f13993142c331a6cfd334d4b91d>
- patch: <https://git.kernel.org/stable/c/2c111413f38ca5cf87557cab89f6d82b0e3433e7>
- patch: <https://git.kernel.org/stable/c/f63df70b439bb8331358a306541893bf415bf1da>
- patch: <https://git.kernel.org/stable/c/2cc8973bdc4d6c928ebe38b88090a2cdfe81f42f>
- patch: <https://git.kernel.org/stable/c/b16f3ea1db47a6766a9f1169244cf1fc287a7c62>
- patch: <https://git.kernel.org/stable/c/11a1f4bc47362700fcbde717292158873fb847ed>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-42302>

HTML: <https://flawdb.com/CVE-2024-42302> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-42302>
