{"id":"CVE-2026-139063","summary":"remoteproc: elf_loader: Bound the section header table","details":"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.","modified":"2026-12-01T21:02:33.655314283Z","published":"2026-11-30T13:27:31.428Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139063.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/078cbede4db36844b9ac256fdc1f4b1c4c668546"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1b77078cf84b567bf7319089a8875550222faba8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/526ed2bd0e3cff628dd8e043032897ccd9ea3d0f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5f175efca59b00f6cca7a3e3907c47d8ec19ddcc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/987a8f1128d794cc9f3368b722ab02cc76a95ebf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a0ecbf24755257f11c961e7b64140d5e4f9a257c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b32177ead5f8925aa66ceed2bd533a85196f4f0c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fe4a7f89cbf2474d0fecc35a820757b04cfa0c1e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139063.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139063"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"400e64df6b237eb36b127efd72000a2794f9eec1"},{"fixed":"1b77078cf84b567bf7319089a8875550222faba8"},{"fixed":"987a8f1128d794cc9f3368b722ab02cc76a95ebf"},{"fixed":"5f175efca59b00f6cca7a3e3907c47d8ec19ddcc"},{"fixed":"526ed2bd0e3cff628dd8e043032897ccd9ea3d0f"},{"fixed":"a0ecbf24755257f11c961e7b64140d5e4f9a257c"},{"fixed":"078cbede4db36844b9ac256fdc1f4b1c4c668546"},{"fixed":"fe4a7f89cbf2474d0fecc35a820757b04cfa0c1e"},{"fixed":"b32177ead5f8925aa66ceed2bd533a85196f4f0c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139063.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.4.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139063.json"}}],"schema_version":"1.9.2"}