{"id":"CVE-2026-139757","aliases":["CVE-2026-139757"],"related":[],"kind":"vulnerability","state":"published","title":"crypto: asymmetric_keys - fix OOB read in pefile_parse_binary","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: asymmetric_keys - fix OOB read in pefile_parse_binary\n\npefile_parse_binary() reads the size field of the certificate table's\ndata-directory entry, which sits at fixed index 4 of the PE optional\nheader's data directory:\n\n\tctx->certs_size = ddir->certs.size;\n\nbut nothing ensures index 4 is present. n_data_dirents (the untrusted\nNumberOfRvaAndSizes) is only upper-bounded against header_size and may be\n0, and header_size need only satisfy cursor < header_size < datalen. A\ncrafted PE with n_data_dirents = 0 and a tiny header_size therefore causes\nthe ddir->certs.size read to land past the end of the image (CWE-125). The\nchkaddr() that bounds the certificate blob runs only after this read.\n\nverify_pefile_signature() is reached from kexec_file_load() (the\nlockdown/secure-boot enforced PE-image signature path), and the image is\nparsed before its signature is checked. The trigger needs CAP_SYS_BOOT and\nthe access is out-of-bounds read only (no write).\n\nRequire the certificate table's data-directory entry (index 4) to be\npresent; the existing upper-bound check then keeps ddir->certs within\n[cursor, header_size).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: asymmetric_keys - fix OOB read in pefile_parse_binary\n\npefile_parse_binary() reads the size field of the certificate table's\ndata-directory entry, which sits at fixed index 4 of the PE optional\nheader's data directory:\n\n\tctx->certs_size = ddir->certs.size;\n\nbut nothing ensures index 4 is present. n_data_dirents (the untrusted\nNumberOfRvaAndSizes) is only upper-bounded against header_size and may be\n0, and header_size need only satisfy cursor < header_size < datalen. A\ncrafted PE with n_data_dirents = 0 and a tiny header_size therefore causes\nthe ddir->certs.size read to land past the end of the image (CWE-125). The\nchkaddr() that bounds the certificate blob runs only after this read.\n\nverify_pefile_signature() is reached from kexec_file_load() (the\nlockdown/secure-boot enforced PE-image signature path), and the image is\nparsed before its signature is checked. The trigger needs CAP_SYS_BOOT and\nthe access is out-of-bounds read only (no write).\n\nRequire the certificate table's data-directory entry (index 4) to be\npresent; the existing upper-bound check then keeps ddir->certs within\n[cursor, header_size).","source":"cvelist"}],"published":"2026-11-30T13:37:41.720Z","modified":"2026-11-30T14:20:08.430Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"26d1164be37f1145a96af15f294122876d8e5c77","fixed":"7bece4f231578ea5214c27026f383681bee57d4c","status":"affected"},{"type":"git","introduced":"26d1164be37f1145a96af15f294122876d8e5c77","fixed":"c77c0001457161d8ff4f9b457bbfe841ebb38cc2","status":"affected"},{"type":"git","introduced":"26d1164be37f1145a96af15f294122876d8e5c77","fixed":"8d2dd81b8591953e6defb28f5bd914feeaf2761b","status":"affected"},{"type":"git","introduced":"26d1164be37f1145a96af15f294122876d8e5c77","fixed":"27adcebae626ba3c0a7cc9b6491ff78346517acb","status":"affected"},{"type":"git","introduced":"26d1164be37f1145a96af15f294122876d8e5c77","fixed":"a6ecef48786cd4e21854ff431cb2a1432240c0c3","status":"affected"},{"type":"git","introduced":"26d1164be37f1145a96af15f294122876d8e5c77","fixed":"c1dedf447161ab4942c25b1e099e1986fe49791a","status":"affected"},{"type":"git","introduced":"26d1164be37f1145a96af15f294122876d8e5c77","fixed":"3937b14049f4117c152a4b0e86fb39a3737489bf","status":"affected"},{"type":"git","introduced":"26d1164be37f1145a96af15f294122876d8e5c77","fixed":"37d550172c2d3cdb3a5ace3e6cb0625967d86349","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.17","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.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","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/7bece4f231578ea5214c27026f383681bee57d4c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c77c0001457161d8ff4f9b457bbfe841ebb38cc2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8d2dd81b8591953e6defb28f5bd914feeaf2761b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/27adcebae626ba3c0a7cc9b6491ff78346517acb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a6ecef48786cd4e21854ff431cb2a1432240c0c3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c1dedf447161ab4942c25b1e099e1986fe49791a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3937b14049f4117c152a4b0e86fb39a3737489bf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/37d550172c2d3cdb3a5ace3e6cb0625967d86349","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139757","url":"https://www.cve.org/CVERecord?id=CVE-2026-139757","licence":"CVE Terms of Use","modified":"2026-11-30T13:37:41.720Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139757","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139757","licence":"Public domain","modified":"2026-11-30T14:20:08.430Z"}],"updatedAt":"2026-11-30T14:33:38.343Z","epss":{"score":0.00304,"percentile":0.2498,"date":"2026-12-01T12:00:22.000Z"}}