Bug 2394649 (CVE-2025-39787) - CVE-2025-39787 kernel: soc: qcom: mdt_loader: Ensure we don't read past the ELF header
Summary: CVE-2025-39787 kernel: soc: qcom: mdt_loader: Ensure we don't read past the E...
Keywords:
Status: NEW
Alias: CVE-2025-39787
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-11 17:04 UTC by OSIDB Bzimport
Modified: 2025-09-15 07:55 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-11 17:04:46 UTC
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.

Comment 1 Mauro Matteo Cascella 2025-09-15 07:39:50 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025091151-CVE-2025-39787-227f@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.