CVE-2025-39787

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

MEDIUM
5.5
CVSS Score
Published: September 11, 2025 at 04:56 PM UTC
Updated: October 19, 2026 at 09:10 PM UTC
6 products affected across 3 vendorsLinux KernelDebian LinuxSIMATIC S7-1500 CPU 1518-4 Pn /dp MFP Firmware

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

All versions4.11 ≤ v < 5.4.2975.11 ≤ v < 5.15.1905.16 ≤ v < 6.1.1495.5 ≤ v < 5.10.2416.13 ≤ v < 6.16.46.2 ≤ v < 6.6.1036.7 ≤ v < 6.12.442aad40d911eeb7dcac91c669f2762a28134f0eb14.11
Vendor states this is fixed in 0d59ce2bfc3bb13abe6240335a1bf7b96536d022 (fixed)
Vendor states this is fixed in 1096eb63ecfc8df90b70cd068e6de0c2ff204dfd (fixed)
Vendor states this is fixed in 43d26997d88c4056fce0324e72f62556bc7e8e8d (fixed)
Vendor states this is fixed in 81278be4eb5f08ba2c68c3055893e61cc03727fe (fixed)
Vendor states this is fixed in 87bfabb3b2f46827639173f143aa43f7cfc0a7e6 (fixed)
Vendor states this is fixed in 981c845f29838e468a9bfa87f784307193a31297 (fixed)
Vendor states this is fixed in 9f9967fed9d066ed3dae9372b45ffa4f6fccfeef (fixed)
Vendor states this is fixed in e1720eb32acf411c328af6a8c8f556c94535808e (fixed)
Vendor states this is fixed in 4.11 (unaffected)
Vendor states this is fixed in 5.10.241 (unaffected)
Vendor states this is fixed in 5.15.190 (unaffected)
Vendor states this is fixed in 5.4.297 (unaffected)
Vendor states this is fixed in 6.1.149 (unaffected)
Vendor states this is fixed in 6.12.44 (unaffected)
Vendor states this is fixed in 6.16.4 (unaffected)
Vendor states this is fixed in 6.17 (unaffected)
Vendor states this is fixed in 6.6.103 (unaffected)
v < V5.0
Affected range stops below V5.0, so it looks safe — our inference, not a vendor statement

References (12)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0d59ce2bfc3bb13abe6240335a1bf7b96536d022
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1096eb63ecfc8df90b70cd068e6de0c2ff204dfd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/43d26997d88c4056fce0324e72f62556bc7e8e8d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/81278be4eb5f08ba2c68c3055893e61cc03727fe
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/87bfabb3b2f46827639173f143aa43f7cfc0a7e6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/981c845f29838e468a9bfa87f784307193a31297
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9f9967fed9d066ed3dae9372b45ffa4f6fccfeef
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e1720eb32acf411c328af6a8c8f556c94535808e

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card