PCI: cadence: Check for the existence of cdns_pcie::ops before using it
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 40d957e6f9eb3a8a585007b8b730340c829afbdb · < 363448d069e29685ca37a118065121e486387af3| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
PCI: cadence: Check for the existence of cdns_pcie::ops before using it
cdns_pcie::ops might not be populated by all the Cadence glue drivers. This is going to be true for the upcoming Sophgo platform which doesn't set the ops.
Hence, add a check to prevent NULL pointer dereference.
[mani: reworded subject and description]
From the CVE record · Linux
The Cadence PCI driver may dereference a NULL pointer when a platform's glue driver does not populate cdns_pcie::ops. The input does not establish whether an attacker can trigger this condition or specify network access, authentication, or user interaction requirements.
Engineers running the Linux kernel with Cadence PCI support should check their deployments; affected versions are not specified.