CVE-2025-39787
soc: qcom: mdt_loader: Ensure we don't read past the ELF header
Reported by linux · Published September 11, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.16.4, 6.12.44, 6.6.103, 6.1.149, 5.15.190, 5.10.241, 5.4.297 |
| SIMATIC CN 4100 | Siemens | 5.0 |
| Linux | Linux | 9f9967fed9d066ed3dae9372b45ffa4f6fccfeef, 87bfabb3b2f46827639173f143aa43f7cfc0a7e6, 81278be4eb5f08ba2c68c3055893e61cc03727fe, 43d26997d88c4056fce0324e72f62556bc7e8e8d, 0d59ce2bfc3bb13abe6240335a1bf7b96536d022 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 2aad40d911eeb7dcac91c669f2762a28134f0eb1, 2aad40d911eeb7dcac91c669f2762a28134f0eb1, 2aad40d911eeb7dcac91c669f2762a28134f0eb1 |
| Linux | Linux | 4.11, 0, 5.4.297 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.5 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.5 |
| Siemens | SIMATIC CN 4100 | 0 |
| Linux | Linux | 2aad40d911eeb7dcac91c669f2762a28134f0eb1, 5.10.241, 5.15.190 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.5 |
| linux | linux_kernel | 4.11, 4.11, 4.11 |
Timeline
- Sep 11, 2025 CVE Published
- Sep 12, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (13 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (194 in total, the first dated here)
- Mar 29, 2026 Security Advisory (207 in total, the first dated here)
- Jun 8, 2026 Coalition ESS Score
- Oct 29, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-39787
vulnetix vdb fixes CVE-2025-39787
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-39787/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart