# CVE-2025-37843: PCI: pciehp: Avoid unnecessary device replacement check

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.21% (percentile 6, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-05-09T06:41:52.160Z
- **Modified:** 2026-11-05T21:17:55.233Z

## Who should check

- Anyone running Linux \>= 9d573d19547b3fae0c1d4e5fce52bdad3fda3664, \< e4a1d7defbc2d806540720a5adebe24ec3488683; \>= 9d573d19547b3fae0c1d4e5fce52bdad3fda3664, \< 0d0bbd01f7c0ac7d1be9f85aaf2cd0baec34655f; \>= 9d573d19547b3fae0c1d4e5fce52bdad3fda3664, \< 7535d10a2c61baeff493300070cf04d9ddda216b; \>= 9d573d19547b3fae0c1d4e5fce52bdad3fda3664, \< e3260237aaadc9799107ccb940c6688195c4518d
- Anyone running Linux 6.11

## Description

In the Linux kernel, the following vulnerability has been resolved:

PCI: pciehp: Avoid unnecessary device replacement check

Hot-removal of nested PCI hotplug ports suffers from a long-standing race
condition which can lead to a deadlock:  A parent hotplug port acquires
pci\_lock\_rescan\_remove(), then waits for pciehp to unbind from a child
hotplug port.  Meanwhile that child hotplug port tries to acquire
pci\_lock\_rescan\_remove() as well in order to remove its own children.

The deadlock only occurs if the parent acquires pci\_lock\_rescan\_remove()
first, not if the child happens to acquire it first.

Several workarounds to avoid the issue have been proposed and discarded
over the years, e.g.:

https://lore.kernel.org/r/4c882e25194ba8282b78fe963fec8faae7cf23eb.1529173804.git.lukas@wunner.de/

A proper fix is being worked on, but needs more time as it is nontrivial
and necessarily intrusive.

Recent commit 9d573d19547b ("PCI: pciehp: Detect device replacement during
system sleep") provokes more frequent occurrence of the deadlock when
removing more than one Thunderbolt device during system sleep.  The commit
sought to detect device replacement, but also triggered on device removal.
Differentiating reliably between replacement and removal is impossible
because pci\_get\_dsn() returns 0 both if the device was removed, as well as
if it was replaced with one lacking a Device Serial Number.

Avoid the more frequent occurrence of the deadlock by checking whether the
hotplug port itself was hot-removed.  If so, there's no sense in checking
whether its child device was replaced.

This works because the -\>resume\_noirq() callback is invoked in top-down
order for the entire hierarchy:  A parent hotplug port detecting device
replacement (or removal) marks all children as removed using
pci\_dev\_set\_disconnected() and a child hotplug port can then reliably
detect being removed.

## Affected and fixed versions

- Linux: \>= 9d573d19547b3fae0c1d4e5fce52bdad3fda3664, \< e4a1d7defbc2d806540720a5adebe24ec3488683; \>= 9d573d19547b3fae0c1d4e5fce52bdad3fda3664, \< 0d0bbd01f7c0ac7d1be9f85aaf2cd0baec34655f; \>= 9d573d19547b3fae0c1d4e5fce52bdad3fda3664, \< 7535d10a2c61baeff493300070cf04d9ddda216b; \>= 9d573d19547b3fae0c1d4e5fce52bdad3fda3664, \< e3260237aaadc9799107ccb940c6688195c4518d (cvelist)
- Linux: 6.11 (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-2025-37843. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-37843.md
Affected: Linux >= 9d573d19547b3fae0c1d4e5fce52bdad3fda3664, < e4a1d7defbc2d806540720a5adebe24ec3488683; >= 9d573d19547b3fae0c1d4e5fce52bdad3fda3664, < 0d0bbd01f7c0ac7d1be9f85aaf2cd0baec34655f; >= 9d573d19547b3fae0c1d4e5fce52bdad3fda3664, < 7535d10a2c61baeff493300070cf04d9ddda216b; >= 9d573d19547b3fae0c1d4e5…
Fixed in: Linux 0d0bbd01f7c0ac7d1be9f85aaf2cd0baec34655f, Linux 7535d10a2c61baeff493300070cf04d9ddda216b

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-2025-37843 being exploited?

There is no confirmed exploitation: CVE-2025-37843 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-37843?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-37843?

Linux \>= 9d573d19547b3fae0c1d4e5fce52bdad3fda3664, \< e4a1d7defbc2d806540720a5adebe24ec3488683; \>= 9d573d19547b3fae0c1d4e5fce52bdad3fda3664, \< 0d0bbd01f7c0ac7d1be9f85aaf2cd0baec34655f; \>= 9d573d19547b3fae0c1d4e5fce52bdad3fda3664, \< 7535d10a2c61baeff493300070cf04d9ddda216b; \>= 9d573d19547b3fae0c1d4e5fce52bdad3fda3664, \< e3260237aaadc9799107ccb940c6688195c4518d; Linux 6.11.

### Is there a fix for CVE-2025-37843?

Yes. Fixed in Linux 0d0bbd01f7c0ac7d1be9f85aaf2cd0baec34655f, Linux 7535d10a2c61baeff493300070cf04d9ddda216b. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-37843?

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/e4a1d7defbc2d806540720a5adebe24ec3488683>
- patch: <https://git.kernel.org/stable/c/0d0bbd01f7c0ac7d1be9f85aaf2cd0baec34655f>
- patch: <https://git.kernel.org/stable/c/7535d10a2c61baeff493300070cf04d9ddda216b>
- patch: <https://git.kernel.org/stable/c/e3260237aaadc9799107ccb940c6688195c4518d>

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

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