Integer Overflow in OpenAMP v2025.10.0 ELF Loader
CVE-2026-37540 is an integer overflow vulnerability in the OpenAMP v2025.10.0 ELF firmware loader, specifically in lib/remoteproc/elf_loader.c during parsing of ELF images for remote processor firmware loading. When handling PT_LOAD segments, the loader multiplies two attacker-controlled 16-bit values derived from the ELF header using 32-bit arithmetic without validating for overflow. On 32-bit embedded platforms, including STM32MP1, Zynq, and i.MX, a sufficiently large pair of header values can cause the multiplication result to wrap to a smaller value before that result is used in subsequent memcpy length validation and destination-region size calculations. This can cause the loader to accept malformed firmware metadata and proceed with unsafe memory operations during the firmware load sequence.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can lead to host memory corruption during remote processor firmware loading. Because the overflowed size is used to gate memory-copy logic, a crafted ELF image can cause incorrect bounds decisions and unsafe memcpy behavior, with resulting impact including compromise of confidentiality, integrity, and availability. The supplied CVSS v3.1 vector (AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) indicates severe impact, though the available content does not further specify whether exploitation yields code execution versus denial of service in all cases.
If you can’t patch tonight, do this now.
Until a patched release is deployed, do not load untrusted or unauthenticated firmware images through the OpenAMP ELF loader. Restrict the firmware update/load path to trusted sources only, enforce cryptographic authenticity and integrity validation of firmware images before parsing, and add external validation of ELF header fields and PT_LOAD segment sizes where possible. On affected embedded deployments, minimize exposure by limiting who or what can supply remote processor firmware to the loader.
Patch, then assume compromise.
Upgrade from OpenAMP v2025.10.0 to a version containing a fix once available from the project. The vulnerable arithmetic in elf_loader.c should be corrected by performing overflow-safe size calculations on ELF header-derived values before they are used for region sizing or memcpy validation. Remediation should include explicit bounds checking of PT_LOAD segment fields, rejecting malformed or oversized ELF headers, and using wider or checked arithmetic primitives so wrapped products cannot influence memory-copy decisions.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.