PCI: dwc: Avoid dwc_pcie_rasdes_debugfs_deinit() NULL dereference when no RAS DES capability
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.407.1.57.2In the Linux kernel, the following vulnerability has been resolved:
PCI: dwc: Avoid dwc_pcie_rasdes_debugfs_deinit() NULL dereference when no RAS DES capability
dwc_pcie_rasdes_debugfs_init() returns success when the controller has no RAS DES capability, leaving pci->debugfs->rasdes_info unset. The common debugfs teardown path still calls dwc_pcie_rasdes_debugfs_deinit(), which dereferences rasdes_info unconditionally.
Return early when no RAS DES state was allocated. In that case no RAS DES mutex was initialized, so there is nothing to destroy.
[mani: reworded subject]
From the CVE record · Linux
The Linux kernel’s PCI dwc debugfs teardown dereferences an unset RAS DES pointer when the controller lacks RAS DES capability. This can cause a NULL pointer dereference; the input does not establish an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the PCI dwc driver should check their kernel versions; affected versions are not specified.