{"id":"CVE-2026-139757","state":"PUBLISHED","title":"crypto: asymmetric_keys - fix OOB read in pefile_parse_binary","description":"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).","publishedAt":"2026-11-30T13:37:41.720Z","updatedAt":"2026-11-30T13:37:41.720Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"26d1164be37f1145a96af15f294122876d8e5c77","status":"affected","lessThan":"7bece4f231578ea5214c27026f383681bee57d4c","versionType":"git"},{"version":"26d1164be37f1145a96af15f294122876d8e5c77","status":"affected","lessThan":"c77c0001457161d8ff4f9b457bbfe841ebb38cc2","versionType":"git"},{"version":"26d1164be37f1145a96af15f294122876d8e5c77","status":"affected","lessThan":"8d2dd81b8591953e6defb28f5bd914feeaf2761b","versionType":"git"},{"version":"26d1164be37f1145a96af15f294122876d8e5c77","status":"affected","lessThan":"27adcebae626ba3c0a7cc9b6491ff78346517acb","versionType":"git"},{"version":"26d1164be37f1145a96af15f294122876d8e5c77","status":"affected","lessThan":"a6ecef48786cd4e21854ff431cb2a1432240c0c3","versionType":"git"},{"version":"26d1164be37f1145a96af15f294122876d8e5c77","status":"affected","lessThan":"c1dedf447161ab4942c25b1e099e1986fe49791a","versionType":"git"},{"version":"26d1164be37f1145a96af15f294122876d8e5c77","status":"affected","lessThan":"3937b14049f4117c152a4b0e86fb39a3737489bf","versionType":"git"},{"version":"26d1164be37f1145a96af15f294122876d8e5c77","status":"affected","lessThan":"37d550172c2d3cdb3a5ace3e6cb0625967d86349","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["crypto/asymmetric_keys/verify_pefile.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.17","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.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","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":["crypto/asymmetric_keys/verify_pefile.c"]}],"references":["https://git.kernel.org/stable/c/7bece4f231578ea5214c27026f383681bee57d4c","https://git.kernel.org/stable/c/c77c0001457161d8ff4f9b457bbfe841ebb38cc2","https://git.kernel.org/stable/c/8d2dd81b8591953e6defb28f5bd914feeaf2761b","https://git.kernel.org/stable/c/27adcebae626ba3c0a7cc9b6491ff78346517acb","https://git.kernel.org/stable/c/a6ecef48786cd4e21854ff431cb2a1432240c0c3","https://git.kernel.org/stable/c/c1dedf447161ab4942c25b1e099e1986fe49791a","https://git.kernel.org/stable/c/3937b14049f4117c152a4b0e86fb39a3737489bf","https://git.kernel.org/stable/c/37d550172c2d3cdb3a5ace3e6cb0625967d86349"],"weaknesses":[],"ingestedAt":"2026-11-30T13:56:04.579Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139757.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139757","state":"PUBLISHED","datePublished":"2026-11-30T13:37:41.720Z","dateUpdated":"2026-11-30T13:37:41.720Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.951Z"},"containers":{"cna":{"title":"crypto: asymmetric_keys - fix OOB read in pefile_parse_binary","descriptions":[{"lang":"en","value":"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)."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"26d1164be37f1145a96af15f294122876d8e5c77","status":"affected","lessThan":"7bece4f231578ea5214c27026f383681bee57d4c","versionType":"git"},{"version":"26d1164be37f1145a96af15f294122876d8e5c77","status":"affected","lessThan":"c77c0001457161d8ff4f9b457bbfe841ebb38cc2","versionType":"git"},{"version":"26d1164be37f1145a96af15f294122876d8e5c77","status":"affected","lessThan":"8d2dd81b8591953e6defb28f5bd914feeaf2761b","versionType":"git"},{"version":"26d1164be37f1145a96af15f294122876d8e5c77","status":"affected","lessThan":"27adcebae626ba3c0a7cc9b6491ff78346517acb","versionType":"git"},{"version":"26d1164be37f1145a96af15f294122876d8e5c77","status":"affected","lessThan":"a6ecef48786cd4e21854ff431cb2a1432240c0c3","versionType":"git"},{"version":"26d1164be37f1145a96af15f294122876d8e5c77","status":"affected","lessThan":"c1dedf447161ab4942c25b1e099e1986fe49791a","versionType":"git"},{"version":"26d1164be37f1145a96af15f294122876d8e5c77","status":"affected","lessThan":"3937b14049f4117c152a4b0e86fb39a3737489bf","versionType":"git"},{"version":"26d1164be37f1145a96af15f294122876d8e5c77","status":"affected","lessThan":"37d550172c2d3cdb3a5ace3e6cb0625967d86349","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["crypto/asymmetric_keys/verify_pefile.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.17","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.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","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":["crypto/asymmetric_keys/verify_pefile.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/7bece4f231578ea5214c27026f383681bee57d4c"},{"url":"https://git.kernel.org/stable/c/c77c0001457161d8ff4f9b457bbfe841ebb38cc2"},{"url":"https://git.kernel.org/stable/c/8d2dd81b8591953e6defb28f5bd914feeaf2761b"},{"url":"https://git.kernel.org/stable/c/27adcebae626ba3c0a7cc9b6491ff78346517acb"},{"url":"https://git.kernel.org/stable/c/a6ecef48786cd4e21854ff431cb2a1432240c0c3"},{"url":"https://git.kernel.org/stable/c/c1dedf447161ab4942c25b1e099e1986fe49791a"},{"url":"https://git.kernel.org/stable/c/3937b14049f4117c152a4b0e86fb39a3737489bf"},{"url":"https://git.kernel.org/stable/c/37d550172c2d3cdb3a5ace3e6cb0625967d86349"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:37:41.720Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}