pci/hotplug/pnv_php: Fix hotplug driver crash on Powernv
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 49f4b08e61547a5ccd2db551d994c4503efe5666 · < b82d4d5c736f4fd2ed224c35f554f50d1953d21e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
pci/hotplug/pnv_php: Fix hotplug driver crash on Powernv
The hotplug driver for powerpc (pci/hotplug/pnv_php.c) causes a kernel crash when we try to hot-unplug/disable the PCIe switch/bridge from the PHB.
The crash occurs because although the MSI data structure has been released during disable/hot-unplug path and it has been assigned with NULL, still during unregistration the code was again trying to explicitly disable the MSI which causes the NULL pointer dereference and kernel crash.
The patch fixes the check during unregistration path to prevent invoking pci_disable_msi/msix() since its data structure is already freed.
From the CVE record · Linux
The Linux kernel’s Powernv PCI hotplug driver can dereference a NULL pointer during PCIe switch or bridge unregistration. A kernel crash can occur when a PCIe switch or bridge is hot-unplugged or disabled from the PHB; the input does not specify whether authentication is required.
Engineers running the Linux kernel on Powernv systems using PCI hotplug should check their deployments; affected versions are not specified.