# CVE-2025-38624: PCI: pnv\_php: Clean up allocated IRQs on unplug

> 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.27% (percentile 12, 2026-11-26)
- **Published:** 2025-08-22T16:00:32.924Z
- **Modified:** 2026-11-05T22:17:21.253Z

## Who should check

- Anyone running Linux \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 8c1ad4af160691e157d688ad9619ced2df556aac; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 912e200240b6f9758f0b126e64a61c9227f4ad37; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 398170b7fd0e0db2f8096df5206c75e5ff41415a; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 32173edf3fe2d447e14e5e3b299387c6f9602a88; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 28aa3cfce12487614219e7667ec84424e1f43227; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 1773c19fa55e944cdd2634e2d9e552f87f2d38d5; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< bbd302c4b79df10197ffa7270ca3aa572eeca33c; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 4668619092554e1b95c9a5ac2941ca47ba6d548a
- Anyone running Linux 4.9

## Description

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

PCI: pnv\_php: Clean up allocated IRQs on unplug

When the root of a nested PCIe bridge configuration is unplugged, the
pnv\_php driver leaked the allocated IRQ resources for the child bridges'
hotplug event notifications, resulting in a panic.

Fix this by walking all child buses and deallocating all its IRQ resources
before calling pci\_hp\_remove\_devices().

Also modify the lifetime of the workqueue at struct pnv\_php\_slot::wq so
that it is only destroyed in pnv\_php\_free\_slot(), instead of
pnv\_php\_disable\_irq(). This is required since pnv\_php\_disable\_irq() will
now be called by workers triggered by hot unplug interrupts, so the
workqueue needs to stay allocated.

The abridged kernel panic that occurs without this patch is as follows:

  WARNING: CPU: 0 PID: 687 at kernel/irq/msi.c:292 msi\_device\_data\_release+0x6c/0x9c
  CPU: 0 UID: 0 PID: 687 Comm: bash Not tainted 6.14.0-rc5+ \#2
  Call Trace:
   msi\_device\_data\_release+0x34/0x9c (unreliable)
   release\_nodes+0x64/0x13c
   devres\_release\_all+0xc0/0x140
   device\_del+0x2d4/0x46c
   pci\_destroy\_dev+0x5c/0x194
   pci\_hp\_remove\_devices+0x90/0x128
   pci\_hp\_remove\_devices+0x44/0x128
   pnv\_php\_disable\_slot+0x54/0xd4
   power\_write\_file+0xf8/0x18c
   pci\_slot\_attr\_store+0x40/0x5c
   sysfs\_kf\_write+0x64/0x78
   kernfs\_fop\_write\_iter+0x1b0/0x290
   vfs\_write+0x3bc/0x50c
   ksys\_write+0x84/0x140
   system\_call\_exception+0x124/0x230
   system\_call\_vectored\_common+0x15c/0x2ec

\[bhelgaas: tidy comments\]

## Affected and fixed versions

- Linux: \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 8c1ad4af160691e157d688ad9619ced2df556aac; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 912e200240b6f9758f0b126e64a61c9227f4ad37; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 398170b7fd0e0db2f8096df5206c75e5ff41415a; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 32173edf3fe2d447e14e5e3b299387c6f9602a88; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 28aa3cfce12487614219e7667ec84424e1f43227; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 1773c19fa55e944cdd2634e2d9e552f87f2d38d5; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< bbd302c4b79df10197ffa7270ca3aa572eeca33c; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 4668619092554e1b95c9a5ac2941ca47ba6d548a (cvelist)
- Linux: 4.9 (cvelist)

## Mitigation

- Upgrade Linux to 4668619092554e1b95c9a5ac2941ca47ba6d548a or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38624. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38624.md
Affected: Linux >= 360aebd85a4c946764f6301d68de2a817fad5159, < 8c1ad4af160691e157d688ad9619ced2df556aac; >= 360aebd85a4c946764f6301d68de2a817fad5159, < 912e200240b6f9758f0b126e64a61c9227f4ad37; >= 360aebd85a4c946764f6301d68de2a817fad5159, < 398170b7fd0e0db2f8096df5206c75e5ff41415a; >= 360aebd85a4c946764f6301…
Fixed in: Linux 8c1ad4af160691e157d688ad9619ced2df556aac, Linux 912e200240b6f9758f0b126e64a61c9227f4ad37, Linux 398170b7fd0e0db2f8096df5206c75e5ff41415a, Linux 32173edf3fe2d447e14e5e3b299387c6f9602a88, Linux 28aa3cfce12487614219e7667ec84424e1f43227, Linux 1773c19fa55e944cdd2634e2d9e552f87f2d38d5, Linux 46686…

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-38624 being exploited?

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

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

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

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

Linux \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 8c1ad4af160691e157d688ad9619ced2df556aac; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 912e200240b6f9758f0b126e64a61c9227f4ad37; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 398170b7fd0e0db2f8096df5206c75e5ff41415a; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 32173edf3fe2d447e14e5e3b299387c6f9602a88; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 28aa3cfce12487614219e7667ec84424e1f43227; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 1773c19fa55e944cdd2634e2d9e552f87f2d38d5; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< bbd302c4b79df10197ffa7270ca3aa572eeca33c; \>= 360aebd85a4c946764f6301d68de2a817fad5159, \< 4668619092554e1b95c9a5ac2941ca47ba6d548a; Linux 4.9.

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

Yes. Fixed in Linux 8c1ad4af160691e157d688ad9619ced2df556aac, Linux 912e200240b6f9758f0b126e64a61c9227f4ad37, Linux 398170b7fd0e0db2f8096df5206c75e5ff41415a, Linux 32173edf3fe2d447e14e5e3b299387c6f9602a88, Linux 28aa3cfce12487614219e7667ec84424e1f43227, Linux 1773c19fa55e944cdd2634e2d9e552f87f2d38d5, Linux 4668619092554e1b95c9a5ac2941ca47ba6d548a. Upgrade Linux to 4668619092554e1b95c9a5ac2941ca47ba6d548a or later.

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

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/8c1ad4af160691e157d688ad9619ced2df556aac>
- patch: <https://git.kernel.org/stable/c/912e200240b6f9758f0b126e64a61c9227f4ad37>
- patch: <https://git.kernel.org/stable/c/398170b7fd0e0db2f8096df5206c75e5ff41415a>
- patch: <https://git.kernel.org/stable/c/32173edf3fe2d447e14e5e3b299387c6f9602a88>
- patch: <https://git.kernel.org/stable/c/28aa3cfce12487614219e7667ec84424e1f43227>
- patch: <https://git.kernel.org/stable/c/1773c19fa55e944cdd2634e2d9e552f87f2d38d5>
- patch: <https://git.kernel.org/stable/c/bbd302c4b79df10197ffa7270ca3aa572eeca33c>
- patch: <https://git.kernel.org/stable/c/4668619092554e1b95c9a5ac2941ca47ba6d548a>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.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-2025-38624>

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