CVE-2025-38576: powerpc/eeh: Make EEH driver device hotplug safe
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
powerpc/eeh: Make EEH driver device hotplug safe
Multiple race conditions existed between the PCIe hotplug driver and the EEH driver, leading to a variety of kernel oopses of the same general nature:
<pcie device unplug>
<eeh driver trigger>
<hotplug removal trigger>
<pcie tree reconfiguration>
<eeh recovery next step>
<oops in EEH driver bus iteration loop>
A second class of oops is also seen when the underlying bus disappears during device recovery.
Refactor the EEH module to be PCI rescan and remove safe. Also clean up a few minor formatting / readability issues.
The Linux kernel CVE team has assigned CVE-2025-38576 to this issue.
Affected and fixed versions
===========================
Fixed in 6.1.148 with commit 59c6d3d81d42bf543c90597b4f38c53d6874c5a1 Fixed in 6.6.102 with commit a426e8a6ae161f51888585b065db0f8f93ab2e16 Fixed in 6.12.42 with commit d2c60a8a387e9fcc28447ef36c03f8e49fd052a6 Fixed in 6.15.10 with commit d42bbd8f30ac38b1ce54715bf08ec3dac18d6b25 Fixed in 6.16.1 with commit 19d5036e7ad766cf212aebec23b9f1d7924a62bc Fixed in 6.17-rc1 with commit 1010b4c012b0d78dfb9d3132b49aa2ef024a07a7
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-38576
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
arch/powerpc/kernel/eeh_driver.c
arch/powerpc/kernel/eeh_pe.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/59c6d3d81d42bf543c90597b4f38c53d6874c5a1 https://git.kernel.org/stable/c/a426e8a6ae161f51888585b065db0f8f93ab2e16 https://git.kernel.org/stable/c/d2c60a8a387e9fcc28447ef36c03f8e49fd052a6 https://git.kernel.org/stable/c/d42bbd8f30ac38b1ce54715bf08ec3dac18d6b25 https://git.kernel.org/stable/c/19d5036e7ad766cf212aebec23b9f1d7924a62bc https://git.kernel.org/stable/c/1010b4c012b0d78dfb9d3132b49aa2ef024a07a7