# CVE-2026-45904: powerpc/eeh: fix recursive pci\_lock\_rescan\_remove locking in EEH event handling

> 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.16% (percentile 3, 2026-11-26)
- **CWE:** CWE-674
- **Published:** 2026-05-27T12:17:12.504Z
- **Modified:** 2026-11-06T16:18:50.510Z

## Who should check

- Anyone running Linux \>= 502f08831a9afb72dc98a56ae6504da43e93b250, \< 89810e2d80281d42f855fac813786758ee16e323; \>= f56e004b781719d8fdf6c9619b15caf2579bc1f2, \< 788dd28fd49610d6047cbb15dbf1186afffdfbaf; \>= 59c6d3d81d42bf543c90597b4f38c53d6874c5a1, \< f49faa4a64f8ac0e38983e606075b25dfcfc9ad4; \>= a426e8a6ae161f51888585b065db0f8f93ab2e16, \< 87a1f93986aa1500b85aeff16b0b71c29ea116ea; \>= d2c60a8a387e9fcc28447ef36c03f8e49fd052a6, \< f8b16d5764ee1e78c1ef333017ad383ffe76fcdc; \>= 1010b4c012b0d78dfb9d3132b49aa2ef024a07a7, \< 6e6561231c6cfc32c5631aeecc0928ff2b14265c; \>= 1010b4c012b0d78dfb9d3132b49aa2ef024a07a7, \< b85ee287bfe52c6b2d9b41758b5e0d08679d5b39; \>= 1010b4c012b0d78dfb9d3132b49aa2ef024a07a7, \< 815a8d2feb5615ae7f0b5befd206af0b0160614c; d42bbd8f30ac38b1ce54715bf08ec3dac18d6b25; 19d5036e7ad766cf212aebec23b9f1d7924a62bc; …
- Anyone running Linux 6.17

## Description

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

powerpc/eeh: fix recursive pci\_lock\_rescan\_remove locking in EEH event handling

The recent commit 1010b4c012b0 ("powerpc/eeh: Make EEH driver device
hotplug safe") restructured the EEH driver to improve synchronization
with the PCI hotplug layer.

However, it inadvertently moved pci\_lock\_rescan\_remove() outside its
intended scope in eeh\_handle\_normal\_event(), leading to broken PCI
error reporting and improper EEH event triggering. Specifically,
eeh\_handle\_normal\_event() acquired pci\_lock\_rescan\_remove() before
calling eeh\_pe\_bus\_get(), but eeh\_pe\_bus\_get() itself attempts to
acquire the same lock internally, causing nested locking and disrupting
normal EEH event handling paths.

This patch adds a boolean parameter do\_lock to \_eeh\_pe\_bus\_get(),
with two public wrappers:
    eeh\_pe\_bus\_get() with locking enabled.
    eeh\_pe\_bus\_get\_nolock() that skips locking.

Callers that already hold pci\_lock\_rescan\_remove() now use
eeh\_pe\_bus\_get\_nolock() to avoid recursive lock acquisition.

Additionally, pci\_lock\_rescan\_remove() calls are restored to the correct
position—after eeh\_pe\_bus\_get() and immediately before iterating affected
PEs and devices. This ensures EEH-triggered PCI removes occur under proper
bus rescan locking without recursive lock contention.

The eeh\_pe\_loc\_get() function has been split into two functions:
    eeh\_pe\_loc\_get(struct eeh\_pe \*pe) which retrieves the loc for given PE.
    eeh\_pe\_loc\_get\_bus(struct pci\_bus \*bus) which retrieves the location
    code for given bus.

This resolves lockdep warnings such as:
\<snip\>
\[   84.964298\] \[    T928\] ============================================
\[   84.964304\] \[    T928\] WARNING: possible recursive locking detected
\[   84.964311\] \[    T928\] 6.18.0-rc3 \#51 Not tainted
\[   84.964315\] \[    T928\] --------------------------------------------
\[   84.964320\] \[    T928\] eehd/928 is trying to acquire lock:
\[   84.964324\] \[    T928\] c000000003b29d58 (pci\_rescan\_remove\_lock){+.+.}-{3:3}, at: pci\_lock\_rescan\_remove+0x28/0x40
\[   84.964342\] \[    T928\]
                       but task is already holding lock:
\[   84.964347\] \[    T928\] c000000003b29d58 (pci\_rescan\_remove\_lock){+.+.}-{3:3}, at: pci\_lock\_rescan\_remove+0x28/0x40
\[   84.964357\] \[    T928\]
                       other info that might help us debug this:
\[   84.964363\] \[    T928\]  Possible unsafe locking scenario:

\[   84.964367\] \[    T928\]        CPU0
\[   84.964370\] \[    T928\]        ----
\[   84.964373\] \[    T928\]   lock(pci\_rescan\_remove\_lock);
\[   84.964378\] \[    T928\]   lock(pci\_rescan\_remove\_lock);
\[   84.964383\] \[    T928\]
                       \*\*\* DEADLOCK \*\*\*

\[   84.964388\] \[    T928\]  May be due to missing lock nesting notation

\[   84.964393\] \[    T928\] 1 lock held by eehd/928:
\[   84.964397\] \[    T928\]  \#0: c000000003b29d58 (pci\_rescan\_remove\_lock){+.+.}-{3:3}, at: pci\_lock\_rescan\_remove+0x28/0x40
\[   84.964408\] \[    T928\]
                       stack backtrace:
\[   84.964414\] \[    T928\] CPU: 2 UID: 0 PID: 928 Comm: eehd Not tainted 6.18.0-rc3 \#51 VOLUNTARY
\[   84.964417\] \[    T928\] Hardware name: IBM,9080-HEX POWER10 (architected) 0x800200 0xf000006 of:IBM,FW1060.00 (NH1060\_022) hv:phyp pSeries
\[   84.964419\] \[    T928\] Call Trace:
\[   84.964420\] \[    T928\] \[c0000011a7157990\] \[c000000001705de4\] dump\_stack\_lvl+0xc8/0x130 (unreliable)
\[   84.964424\] \[    T928\] \[c0000011a71579d0\] \[c0000000002f66e0\] print\_deadlock\_bug+0x430/0x440
\[   84.964428\] \[    T928\] \[c0000011a7157a70\] \[c0000000002fd0c0\] \_\_lock\_acquire+0x1530/0x2d80
\[   84.964431\] \[    T928\] \[c0000011a7157ba0\] \[c0000000002fea54\] lock\_acquire+0x144/0x410
\[   84.964433\] \[    T928\] \[c0000011a7157cb0\] \[c0000011a7157cb0\] \_\_mutex\_lock+0xf4/0x1050
\[   84.964436\] \[    T928\] \[c0000011a7157e00\] \[c000000000de21d8\] pci\_lock\_rescan\_remove+0x28/0x40
\[   84.964439\] \[    T928\] \[c0000011a7157e20\] \[c00000000004ed98\] eeh\_pe\_bus\_get+0x48/0xc0
\[   84.964442\] \[    T928\] \[c0000011a7157e50\] \[c00000
---truncated---

## Affected and fixed versions

- Linux: \>= 502f08831a9afb72dc98a56ae6504da43e93b250, \< 89810e2d80281d42f855fac813786758ee16e323; \>= f56e004b781719d8fdf6c9619b15caf2579bc1f2, \< 788dd28fd49610d6047cbb15dbf1186afffdfbaf; \>= 59c6d3d81d42bf543c90597b4f38c53d6874c5a1, \< f49faa4a64f8ac0e38983e606075b25dfcfc9ad4; \>= a426e8a6ae161f51888585b065db0f8f93ab2e16, \< 87a1f93986aa1500b85aeff16b0b71c29ea116ea; \>= d2c60a8a387e9fcc28447ef36c03f8e49fd052a6, \< f8b16d5764ee1e78c1ef333017ad383ffe76fcdc; \>= 1010b4c012b0d78dfb9d3132b49aa2ef024a07a7, \< 6e6561231c6cfc32c5631aeecc0928ff2b14265c; \>= 1010b4c012b0d78dfb9d3132b49aa2ef024a07a7, \< b85ee287bfe52c6b2d9b41758b5e0d08679d5b39; \>= 1010b4c012b0d78dfb9d3132b49aa2ef024a07a7, \< 815a8d2feb5615ae7f0b5befd206af0b0160614c; d42bbd8f30ac38b1ce54715bf08ec3dac18d6b25; 19d5036e7ad766cf212aebec23b9f1d7924a62bc; … (cvelist)
- Linux: 6.17 (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-2026-45904. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-45904.md
Affected: Linux >= 502f08831a9afb72dc98a56ae6504da43e93b250, < 89810e2d80281d42f855fac813786758ee16e323; >= f56e004b781719d8fdf6c9619b15caf2579bc1f2, < 788dd28fd49610d6047cbb15dbf1186afffdfbaf; >= 59c6d3d81d42bf543c90597b4f38c53d6874c5a1, < f49faa4a64f8ac0e38983e606075b25dfcfc9ad4; >= a426e8a6ae161f51888585b…
Fixed in: Linux 89810e2d80281d42f855fac813786758ee16e323, Linux 788dd28fd49610d6047cbb15dbf1186afffdfbaf, Linux 87a1f93986aa1500b85aeff16b0b71c29ea116ea, Linux 6e6561231c6cfc32c5631aeecc0928ff2b14265c, Linux 815a8d2feb5615ae7f0b5befd206af0b0160614c

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-2026-45904 being exploited?

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

### How serious is CVE-2026-45904?

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

### Which versions are affected by CVE-2026-45904?

Linux \>= 502f08831a9afb72dc98a56ae6504da43e93b250, \< 89810e2d80281d42f855fac813786758ee16e323; \>= f56e004b781719d8fdf6c9619b15caf2579bc1f2, \< 788dd28fd49610d6047cbb15dbf1186afffdfbaf; \>= 59c6d3d81d42bf543c90597b4f38c53d6874c5a1, \< f49faa4a64f8ac0e38983e606075b25dfcfc9ad4; \>= a426e8a6ae161f51888585b065db0f8f93ab2e16, \< 87a1f93986aa1500b85aeff16b0b71c29ea116ea; \>= d2c60a8a387e9fcc28447ef36c03f8e49fd052a6, \< f8b16d5764ee1e78c1ef333017ad383ffe76fcdc; \>= 1010b4c012b0d78dfb9d3132b49aa2ef024a07a7, \< 6e6561231c6cfc32c5631aeecc0928ff2b14265c; \>= 1010b4c012b0d78dfb9d3132b49aa2ef024a07a7, \< b85ee287bfe52c6b2d9b41758b5e0d08679d5b39; \>= 1010b4c012b0d78dfb9d3132b49aa2ef024a07a7, \< 815a8d2feb5615ae7f0b5befd206af0b0160614c; d42bbd8f30ac38b1ce54715bf08ec3dac18d6b25; 19d5036e7ad766cf212aebec23b9f1d7924a62bc; …; Linux 6.17.

### Is there a fix for CVE-2026-45904?

Yes. Fixed in Linux 89810e2d80281d42f855fac813786758ee16e323, Linux 788dd28fd49610d6047cbb15dbf1186afffdfbaf, Linux 87a1f93986aa1500b85aeff16b0b71c29ea116ea, Linux 6e6561231c6cfc32c5631aeecc0928ff2b14265c, Linux 815a8d2feb5615ae7f0b5befd206af0b0160614c. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-45904?

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/89810e2d80281d42f855fac813786758ee16e323>
- patch: <https://git.kernel.org/stable/c/788dd28fd49610d6047cbb15dbf1186afffdfbaf>
- patch: <https://git.kernel.org/stable/c/f49faa4a64f8ac0e38983e606075b25dfcfc9ad4>
- patch: <https://git.kernel.org/stable/c/87a1f93986aa1500b85aeff16b0b71c29ea116ea>
- patch: <https://git.kernel.org/stable/c/f8b16d5764ee1e78c1ef333017ad383ffe76fcdc>
- patch: <https://git.kernel.org/stable/c/6e6561231c6cfc32c5631aeecc0928ff2b14265c>
- patch: <https://git.kernel.org/stable/c/b85ee287bfe52c6b2d9b41758b5e0d08679d5b39>
- patch: <https://git.kernel.org/stable/c/815a8d2feb5615ae7f0b5befd206af0b0160614c>

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

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