CVE-2025-39787

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

7.8 high EPSS 0.18%

Published 11 Sep 2025 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2025-39787

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-39787 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.68% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 2aad40d911eeb7dcac91c669f2762a28134f0eb1, before 1096eb63ecfc8df90b70cd068e6de0c2ff204dfd
affected from 2aad40d911eeb7dcac91c669f2762a28134f0eb1, before e1720eb32acf411c328af6a8c8f556c94535808e
affected from 2aad40d911eeb7dcac91c669f2762a28134f0eb1, before 0d59ce2bfc3bb13abe6240335a1bf7b96536d022
affected from 2aad40d911eeb7dcac91c669f2762a28134f0eb1, before 43d26997d88c4056fce0324e72f62556bc7e8e8d
affected from 2aad40d911eeb7dcac91c669f2762a28134f0eb1, before 981c845f29838e468a9bfa87f784307193a31297
affected from 2aad40d911eeb7dcac91c669f2762a28134f0eb1, before 87bfabb3b2f46827639173f143aa43f7cfc0a7e6
affected from 2aad40d911eeb7dcac91c669f2762a28134f0eb1, before 81278be4eb5f08ba2c68c3055893e61cc03727fe
affected from 2aad40d911eeb7dcac91c669f2762a28134f0eb1, before 9f9967fed9d066ed3dae9372b45ffa4f6fccfeef
Other versions: unaffected
Linux
affected 4.11
unaffected before 4.11
unaffected from 5.4.297 up to and including 5.4.*
unaffected from 5.10.241 up to and including 5.10.*
unaffected from 5.15.190 up to and including 5.15.*
unaffected from 6.1.149 up to and including 6.1.*
unaffected from 6.6.103 up to and including 6.6.*
unaffected from 6.12.44 up to and including 6.12.*
unaffected from 6.16.4 up to and including 6.16.*
unaffected 6.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-39787 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-39787

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-39787
trivy image --scanners vuln IMAGE | grep CVE-2025-39787

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-39787 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.