Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-39787

HIGH 7.8EPSS 12%

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

Mitigation

  • Upgrade Linux to 9f9967fed9d066ed3dae9372b45ffa4f6fccfeef or later.

Who should check

  • Anyone running Linux >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 1096eb63ecfc8df90b70cd068e6de0c2ff204dfd; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < e1720eb32acf411c328af6a8c8f556c94535808e; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 0d59ce2bfc3bb13abe6240335a1bf7b96536d022; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 43d26997d88c4056fce0324e72f62556bc7e8e8d; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 981c845f29838e468a9bfa87f784307193a31297; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 87bfabb3b2f46827639173f143aa43f7cfc0a7e6; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 81278be4eb5f08ba2c68c3055893e61cc03727fe; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 9f9967fed9d066ed3dae9372b45ffa4f6fccfeef
  • Anyone running Linux 4.11

Vulnerability facts

Affected
Linux >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 1096eb63ecfc8df90b70cd068e6de0c2ff204dfd; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < e1720eb32acf411c328af6a8c8f556c94535808e; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 0d59ce2bfc3bb13abe6240335a1bf7b96536d022; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 43d26997d88c4056fce0324e72f62556bc7e8e8d; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 981c845f29838e468a9bfa87f784307193a31297; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 87bfabb3b2f46827639173f143aa43f7cfc0a7e6; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 81278be4eb5f08ba2c68c3055893e61cc03727fe; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 9f9967fed9d066ed3dae9372b45ffa4f6fccfeef; Linux 4.11
Fixed in
Linux 1096eb63ecfc8df90b70cd068e6de0c2ff204dfd, Linux 0d59ce2bfc3bb13abe6240335a1bf7b96536d022, Linux 43d26997d88c4056fce0324e72f62556bc7e8e8d, Linux 981c845f29838e468a9bfa87f784307193a31297, Linux 87bfabb3b2f46827639173f143aa43f7cfc0a7e6, Linux 81278be4eb5f08ba2c68c3055893e61cc03727fe, Linux 9f9967fed9d066ed3dae9372b45ffa4f6fccfeef
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.27% chance of exploitation in 30 days (percentile 12, 2026-11-26)
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 1096eb63ecfc8df90b70cd068e6de0c2ff204dfd; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < e1720eb32acf411c328af6a8c8f556c94535808e; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 0d59ce2bfc3bb13abe6240335a1bf7b96536d022; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 43d26997d88c4056fce0324e72f62556bc7e8e8d; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 981c845f29838e468a9bfa87f784307193a31297; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 87bfabb3b2f46827639173f143aa43f7cfc0a7e6; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 81278be4eb5f08ba2c68c3055893e61cc03727fe; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 9f9967fed9d066ed3dae9372b45ffa4f6fccfeef—cvelist
Linux4.11—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-39787. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39787.md
Affected: Linux >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 1096eb63ecfc8df90b70cd068e6de0c2ff204dfd; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < e1720eb32acf411c328af6a8c8f556c94535808e; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 0d59ce2bfc3bb13abe6240335a1bf7b96536d022; >= 2aad40d911eeb7dcac91c66…
Fixed in: Linux 1096eb63ecfc8df90b70cd068e6de0c2ff204dfd, Linux 0d59ce2bfc3bb13abe6240335a1bf7b96536d022, Linux 43d26997d88c4056fce0324e72f62556bc7e8e8d, Linux 981c845f29838e468a9bfa87f784307193a31297, Linux 87bfabb3b2f46827639173f143aa43f7cfc0a7e6, Linux 81278be4eb5f08ba2c68c3055893e61cc03727fe, Linux 9f996…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-39787 being exploited?

There is no confirmed exploitation: CVE-2025-39787 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-39787?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2025-39787?

Linux >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 1096eb63ecfc8df90b70cd068e6de0c2ff204dfd; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < e1720eb32acf411c328af6a8c8f556c94535808e; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 0d59ce2bfc3bb13abe6240335a1bf7b96536d022; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 43d26997d88c4056fce0324e72f62556bc7e8e8d; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 981c845f29838e468a9bfa87f784307193a31297; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 87bfabb3b2f46827639173f143aa43f7cfc0a7e6; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 81278be4eb5f08ba2c68c3055893e61cc03727fe; >= 2aad40d911eeb7dcac91c669f2762a28134f0eb1, < 9f9967fed9d066ed3dae9372b45ffa4f6fccfeef; Linux 4.11.

Is there a fix for CVE-2025-39787?

Yes. Fixed in Linux 1096eb63ecfc8df90b70cd068e6de0c2ff204dfd, Linux 0d59ce2bfc3bb13abe6240335a1bf7b96536d022, Linux 43d26997d88c4056fce0324e72f62556bc7e8e8d, Linux 981c845f29838e468a9bfa87f784307193a31297, Linux 87bfabb3b2f46827639173f143aa43f7cfc0a7e6, Linux 81278be4eb5f08ba2c68c3055893e61cc03727fe, Linux 9f9967fed9d066ed3dae9372b45ffa4f6fccfeef. Upgrade Linux to 9f9967fed9d066ed3dae9372b45ffa4f6fccfeef or later.

How do I check if I'm affected by CVE-2025-39787?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors