{"id":"CVE-2026-139063","state":"PUBLISHED","title":"remoteproc: elf_loader: Bound the section header table","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nremoteproc: elf_loader: Bound the section header table\n\nThe rproc_elf_sanity_check() only checks the image is big enough to hold\none section header. But find_table() walks e_shnum of them, and first\ndereferences the header at e_shstrndx to locate the section name table.\nBoth fields are u16 and both come from the image, so an e_shstrndx of\n65535 reads about 4 MB past the buffer.\n\nThe commit 9f9967fed9d0 (\"soc: qcom: mdt_loader: Ensure we don't read\npast the ELF header\") added the same check to the MDT loader, and says\nthe header \"is sanitized beforehand\" under remoteproc. That is what this\npatch makes true.\n\nCheck e_shoff against the image size first, so the two bounds can use\nsize_add() without an e_shoff above SIZE_MAX wrapping on 32-bit. The\nbounds are separate because e_shnum may be zero while find_table() still\nreads the e_shstrndx header.","publishedAt":"2026-11-30T13:27:31.428Z","updatedAt":"2026-11-30T13:27:31.428Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"400e64df6b237eb36b127efd72000a2794f9eec1","status":"affected","lessThan":"1b77078cf84b567bf7319089a8875550222faba8","versionType":"git"},{"version":"400e64df6b237eb36b127efd72000a2794f9eec1","status":"affected","lessThan":"987a8f1128d794cc9f3368b722ab02cc76a95ebf","versionType":"git"},{"version":"400e64df6b237eb36b127efd72000a2794f9eec1","status":"affected","lessThan":"5f175efca59b00f6cca7a3e3907c47d8ec19ddcc","versionType":"git"},{"version":"400e64df6b237eb36b127efd72000a2794f9eec1","status":"affected","lessThan":"526ed2bd0e3cff628dd8e043032897ccd9ea3d0f","versionType":"git"},{"version":"400e64df6b237eb36b127efd72000a2794f9eec1","status":"affected","lessThan":"a0ecbf24755257f11c961e7b64140d5e4f9a257c","versionType":"git"},{"version":"400e64df6b237eb36b127efd72000a2794f9eec1","status":"affected","lessThan":"078cbede4db36844b9ac256fdc1f4b1c4c668546","versionType":"git"},{"version":"400e64df6b237eb36b127efd72000a2794f9eec1","status":"affected","lessThan":"fe4a7f89cbf2474d0fecc35a820757b04cfa0c1e","versionType":"git"},{"version":"400e64df6b237eb36b127efd72000a2794f9eec1","status":"affected","lessThan":"b32177ead5f8925aa66ceed2bd533a85196f4f0c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/remoteproc/remoteproc_elf_loader.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.4","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/remoteproc/remoteproc_elf_loader.c"]}],"references":["https://git.kernel.org/stable/c/1b77078cf84b567bf7319089a8875550222faba8","https://git.kernel.org/stable/c/987a8f1128d794cc9f3368b722ab02cc76a95ebf","https://git.kernel.org/stable/c/5f175efca59b00f6cca7a3e3907c47d8ec19ddcc","https://git.kernel.org/stable/c/526ed2bd0e3cff628dd8e043032897ccd9ea3d0f","https://git.kernel.org/stable/c/a0ecbf24755257f11c961e7b64140d5e4f9a257c","https://git.kernel.org/stable/c/078cbede4db36844b9ac256fdc1f4b1c4c668546","https://git.kernel.org/stable/c/fe4a7f89cbf2474d0fecc35a820757b04cfa0c1e","https://git.kernel.org/stable/c/b32177ead5f8925aa66ceed2bd533a85196f4f0c"],"weaknesses":[],"ingestedAt":"2026-11-30T13:42:04.437Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139063.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139063","state":"PUBLISHED","datePublished":"2026-11-30T13:27:31.428Z","dateUpdated":"2026-11-30T13:27:31.428Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.912Z"},"containers":{"cna":{"title":"remoteproc: elf_loader: Bound the section header table","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nremoteproc: elf_loader: Bound the section header table\n\nThe rproc_elf_sanity_check() only checks the image is big enough to hold\none section header. But find_table() walks e_shnum of them, and first\ndereferences the header at e_shstrndx to locate the section name table.\nBoth fields are u16 and both come from the image, so an e_shstrndx of\n65535 reads about 4 MB past the buffer.\n\nThe commit 9f9967fed9d0 (\"soc: qcom: mdt_loader: Ensure we don't read\npast the ELF header\") added the same check to the MDT loader, and says\nthe header \"is sanitized beforehand\" under remoteproc. That is what this\npatch makes true.\n\nCheck e_shoff against the image size first, so the two bounds can use\nsize_add() without an e_shoff above SIZE_MAX wrapping on 32-bit. The\nbounds are separate because e_shnum may be zero while find_table() still\nreads the e_shstrndx header."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"400e64df6b237eb36b127efd72000a2794f9eec1","status":"affected","lessThan":"1b77078cf84b567bf7319089a8875550222faba8","versionType":"git"},{"version":"400e64df6b237eb36b127efd72000a2794f9eec1","status":"affected","lessThan":"987a8f1128d794cc9f3368b722ab02cc76a95ebf","versionType":"git"},{"version":"400e64df6b237eb36b127efd72000a2794f9eec1","status":"affected","lessThan":"5f175efca59b00f6cca7a3e3907c47d8ec19ddcc","versionType":"git"},{"version":"400e64df6b237eb36b127efd72000a2794f9eec1","status":"affected","lessThan":"526ed2bd0e3cff628dd8e043032897ccd9ea3d0f","versionType":"git"},{"version":"400e64df6b237eb36b127efd72000a2794f9eec1","status":"affected","lessThan":"a0ecbf24755257f11c961e7b64140d5e4f9a257c","versionType":"git"},{"version":"400e64df6b237eb36b127efd72000a2794f9eec1","status":"affected","lessThan":"078cbede4db36844b9ac256fdc1f4b1c4c668546","versionType":"git"},{"version":"400e64df6b237eb36b127efd72000a2794f9eec1","status":"affected","lessThan":"fe4a7f89cbf2474d0fecc35a820757b04cfa0c1e","versionType":"git"},{"version":"400e64df6b237eb36b127efd72000a2794f9eec1","status":"affected","lessThan":"b32177ead5f8925aa66ceed2bd533a85196f4f0c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/remoteproc/remoteproc_elf_loader.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.4","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/remoteproc/remoteproc_elf_loader.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/1b77078cf84b567bf7319089a8875550222faba8"},{"url":"https://git.kernel.org/stable/c/987a8f1128d794cc9f3368b722ab02cc76a95ebf"},{"url":"https://git.kernel.org/stable/c/5f175efca59b00f6cca7a3e3907c47d8ec19ddcc"},{"url":"https://git.kernel.org/stable/c/526ed2bd0e3cff628dd8e043032897ccd9ea3d0f"},{"url":"https://git.kernel.org/stable/c/a0ecbf24755257f11c961e7b64140d5e4f9a257c"},{"url":"https://git.kernel.org/stable/c/078cbede4db36844b9ac256fdc1f4b1c4c668546"},{"url":"https://git.kernel.org/stable/c/fe4a7f89cbf2474d0fecc35a820757b04cfa0c1e"},{"url":"https://git.kernel.org/stable/c/b32177ead5f8925aa66ceed2bd533a85196f4f0c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:27:31.428Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}