remoteproc: elf_loader: Bound the section header table

Summary

CVECVE-2026-139063
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:18:13 UTC
Updated2026-11-30 14:18:13 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: remoteproc: elf_loader: Bound the section header table The rproc_elf_sanity_check() only checks the image is big enough to hold one section header. But find_table() walks e_shnum of them, and first dereferences the header at e_shstrndx to locate the section name table. Both fields are u16 and both come from the image, so an e_shstrndx of 65535 reads about 4 MB past the buffer. The commit 9f9967fed9d0 ("soc: qcom: mdt_loader: Ensure we don't read past the ELF header") added the same check to the MDT loader, and says the header "is sanitized beforehand" under remoteproc. That is what this patch makes true. Check e_shoff against the image size first, so the two bounds can use size_add() without an e_shoff above SIZE_MAX wrapping on 32-bit. The bounds are separate because e_shnum may be zero while find_table() still reads the e_shstrndx header.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 400e64df6b237eb36b127efd72000a2794f9eec1 1b77078cf84b567bf7319089a8875550222faba8 git Not specified
CNA Linux Linux affected 400e64df6b237eb36b127efd72000a2794f9eec1 987a8f1128d794cc9f3368b722ab02cc76a95ebf git Not specified
CNA Linux Linux affected 400e64df6b237eb36b127efd72000a2794f9eec1 5f175efca59b00f6cca7a3e3907c47d8ec19ddcc git Not specified
CNA Linux Linux affected 400e64df6b237eb36b127efd72000a2794f9eec1 526ed2bd0e3cff628dd8e043032897ccd9ea3d0f git Not specified
CNA Linux Linux affected 400e64df6b237eb36b127efd72000a2794f9eec1 a0ecbf24755257f11c961e7b64140d5e4f9a257c git Not specified
CNA Linux Linux affected 400e64df6b237eb36b127efd72000a2794f9eec1 078cbede4db36844b9ac256fdc1f4b1c4c668546 git Not specified
CNA Linux Linux affected 400e64df6b237eb36b127efd72000a2794f9eec1 fe4a7f89cbf2474d0fecc35a820757b04cfa0c1e git Not specified
CNA Linux Linux affected 400e64df6b237eb36b127efd72000a2794f9eec1 b32177ead5f8925aa66ceed2bd533a85196f4f0c git Not specified
CNA Linux Linux affected 3.4 Not specified
CNA Linux Linux unaffected 3.4 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.117 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.63 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.4 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/fe4a7f89cbf2474d0fecc35a820757b04cfa0c1e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/1b77078cf84b567bf7319089a8875550222faba8 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b32177ead5f8925aa66ceed2bd533a85196f4f0c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a0ecbf24755257f11c961e7b64140d5e4f9a257c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/526ed2bd0e3cff628dd8e043032897ccd9ea3d0f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/5f175efca59b00f6cca7a3e3907c47d8ec19ddcc 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/078cbede4db36844b9ac256fdc1f4b1c4c668546 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/987a8f1128d794cc9f3368b722ab02cc76a95ebf 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report