CVE-2026-142887: PCI: cadence: Store the core controller in platform drvdata
In the Linux kernel, the following vulnerability has been resolved:
PCI: cadence: Store the core controller in platform drvdata
cdnsplatpcieprobe() stores a struct cdnsplatpcie pointer with platformsetdrvdata(). cdnsplatpcieshutdown() and the callbacks in cdnspciepmops retrieve the same pointer with devgetdrvdata() but use it as a struct cdnspcie pointer. This makes them read phycount and phy beyond the wrapper.
struct cdnsplatpcie only contains a pointer to struct cdnspcie. Drop the redundant wrapper and store the struct cdnspcie pointer directly.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Cadence PCIe platform driver, store the struct cdns_pcie pointer directly with platform_set_drvdata() instead of storing a struct cdns_plat_pcie wrapper.