{"id":"CVE-2026-139063","aliases":["CVE-2026-139063"],"related":[],"kind":"vulnerability","state":"published","title":"remoteproc: elf_loader: Bound the section header table","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:27:31.428Z","modified":"2026-11-30T14:18:13.153Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"400e64df6b237eb36b127efd72000a2794f9eec1","fixed":"1b77078cf84b567bf7319089a8875550222faba8","status":"affected"},{"type":"git","introduced":"400e64df6b237eb36b127efd72000a2794f9eec1","fixed":"987a8f1128d794cc9f3368b722ab02cc76a95ebf","status":"affected"},{"type":"git","introduced":"400e64df6b237eb36b127efd72000a2794f9eec1","fixed":"5f175efca59b00f6cca7a3e3907c47d8ec19ddcc","status":"affected"},{"type":"git","introduced":"400e64df6b237eb36b127efd72000a2794f9eec1","fixed":"526ed2bd0e3cff628dd8e043032897ccd9ea3d0f","status":"affected"},{"type":"git","introduced":"400e64df6b237eb36b127efd72000a2794f9eec1","fixed":"a0ecbf24755257f11c961e7b64140d5e4f9a257c","status":"affected"},{"type":"git","introduced":"400e64df6b237eb36b127efd72000a2794f9eec1","fixed":"078cbede4db36844b9ac256fdc1f4b1c4c668546","status":"affected"},{"type":"git","introduced":"400e64df6b237eb36b127efd72000a2794f9eec1","fixed":"fe4a7f89cbf2474d0fecc35a820757b04cfa0c1e","status":"affected"},{"type":"git","introduced":"400e64df6b237eb36b127efd72000a2794f9eec1","fixed":"b32177ead5f8925aa66ceed2bd533a85196f4f0c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.4","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/1b77078cf84b567bf7319089a8875550222faba8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/987a8f1128d794cc9f3368b722ab02cc76a95ebf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5f175efca59b00f6cca7a3e3907c47d8ec19ddcc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/526ed2bd0e3cff628dd8e043032897ccd9ea3d0f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a0ecbf24755257f11c961e7b64140d5e4f9a257c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/078cbede4db36844b9ac256fdc1f4b1c4c668546","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fe4a7f89cbf2474d0fecc35a820757b04cfa0c1e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b32177ead5f8925aa66ceed2bd533a85196f4f0c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139063","url":"https://www.cve.org/CVERecord?id=CVE-2026-139063","licence":"CVE Terms of Use","modified":"2026-11-30T13:27:31.428Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139063","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139063","licence":"Public domain","modified":"2026-11-30T14:18:13.153Z"}],"updatedAt":"2026-11-30T14:32:49.596Z","epss":{"score":0.00371,"percentile":0.33102,"date":"2026-12-01T12:00:22.000Z"}}