CVE-2025-39787 soc: qcom: mdt_loader: Ensure we don't read past the ELF header

High 7.8 Published Updated

A local attacker can trigger an out-of-bounds read in the Qualcomm MDT loader, potentially exposing sensitive kernel memory.

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-2025-39787?

CVE-2025-39787 is a high-severity vulnerability in Debian Debian Linux, published on 11 Sep 2025. 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:

soc: qcom: mdt_loader: Ensure we don't read past the ELF header

When the MDT loader is used in remoteproc, the ELF header is sanitized beforehand, but that's not necessary the case for other clients.

Validate the size of the firmware buffer to ensure that we don't read past the end as we iterate over the header. e_phentsize and e_shentsize are validated as well, to ensure that the assumptions about step size in the traversal are valid.

Which versions are affected by CVE-2025-39787?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2025-39787?

Apply the vendor's patch.

Is CVE-2025-39787 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-67211, AZL-74682, BELL-CVE-2025-39787, DEBIAN-CVE-2025-39787, GHSA-xj56-cgwf-vr6c, ROOT-OS-DEBIAN-11-CVE-2025-39787 and 5 more.

Is CVE-2025-39787 in your software?

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

Check your SBOMs for free