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

Medium 5.5 Published Updated

A missing check in the Linux kernel PCI endpoint driver causes a NULL pointer dereference and system crash if the device tree lacks an mmio property.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-56689?

CVE-2024-56689 is a medium-severity vulnerability in Linux kernel, published on 28 Dec 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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]

Weakness: CWE-476

Which versions are affected by CVE-2024-56689?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-56689?

Apply the vendor's patch.

Is CVE-2024-56689 being exploited?

There is no known exploitation of CVE-2024-56689 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-55153, BELL-CVE-2024-56689, DEBIAN-CVE-2024-56689, GHSA-q94m-6jg9-pcmh, UBUNTU-CVE-2024-56689.

Is CVE-2024-56689 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free