CVE-2024-56689

PCI: endpoint: epf-mhi: Avoid NULL dereference if DT lacks 'mmio'

State
Published
Severity
5.5 Medium
Published
Dec 28, 2024
Updated
May 11, 2026
Reserved
Dec 27, 2024

Read the record on cve.org

Description

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]

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 1bf5f25324f7f6a52c3eb566ec5f78f6a901db96 to before 242ee2b0ad9b23f47084904fce3f9f228068a1f9Affected
  • 1bf5f25324f7f6a52c3eb566ec5f78f6a901db96 to before c8b9d6b7d62a444e0bca5b9ae28f9f2b0f52feefAffected
  • 1bf5f25324f7f6a52c3eb566ec5f78f6a901db96 to before 0e6d92e3b973de78eb7015154cf1197af9fac5c9Affected
  • 1bf5f25324f7f6a52c3eb566ec5f78f6a901db96 to before 5089b3d874e9933d9842e90410d3af1520494757Affected
LinuxLinux
  • 6.5Affected
  • before 6.5Not affected
  • 6.6.64 through 6.6.*Not affected
  • 6.11.11 through 6.11.*Not affected
  • 6.12.2 through 6.12.*Not affected
  • 6.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.