PCI: endpoint: epf-mhi: Avoid NULL dereference if DT lacks 'mmio'
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
PCI: endpoint: epf-mhi: Avoid NULL dereference if DT lacks 'mmio'
If platform_get_resource_byname() fails and returns NULL because DT lacks an 'mmio' property for the MHI endpoint, dereferencing res->start will cause a NULL pointer access. Add a check to prevent it.
[kwilczynski: error message update per the review feedback] [bhelgaas: commit log]
From the CVE record · Linux
The Linux kernel’s PCI MHI endpoint code can dereference a NULL pointer when the device tree lacks an 'mmio' property. This can cause a NULL pointer access; the input does not establish whether an attacker can trigger it or specify any access or user-interaction requirements.
Engineers running Linux kernels with a PCI MHI endpoint should check their configurations; affected versions are not specified.