CVE-2026-139757
publishedcrypto: asymmetric_keys - fix OOB read in pefile_parse_binary
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux26d1164be37f1145a96af15f294122876d8e5c77 to < 7bece4f231578ea5214c27026f383681bee57d4c · 26d1164be37f1145a96af15f294122876d8e5c77 to < c77c0001457161d8ff4f9b457bbfe841ebb38cc2 · 26d1164be37f1145a96af15f294122876d8e5c77 to < 8d2dd81b8591953e6defb28f5bd914feeaf2761b · 26d1164be37f1145a96af15f294122876d8e5c77 to < 27adcebae626ba3c0a7cc9b6491ff78346517acb · 26d1164be37f1145a96af15f294122876d8e5c77 to < a6ecef48786cd4e21854ff431cb2a1432240c0c3 · 26d1164be37f1145a96af15f294122876d8e5c77 to < c1dedf447161ab4942c25b1e099e1986fe49791a · 26d1164be37f1145a96af15f294122876d8e5c77 to < 3937b14049f4117c152a4b0e86fb39a3737489bf · 26d1164be37f1145a96af15f294122876d8e5c77 to < 37d550172c2d3cdb3a5ace3e6cb0625967d86349 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.17 (affected) · 0 to < 3.17 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
Description
In the Linux kernel, the following vulnerability has been resolved: crypto: asymmetric_keys - fix OOB read in pefile_parse_binary pefile_parse_binary() reads the size field of the certificate table's data-directory entry, which sits at fixed index 4 of the PE optional header's data directory: ctx->certs_size = ddir->certs.size; but nothing ensures index 4 is present. n_data_dirents (the untrusted NumberOfRvaAndSizes) is only upper-bounded against header_size and may be 0, and header_size need only satisfy cursor < header_size < datalen. A crafted PE with n_data_dirents = 0 and a tiny header_size therefore causes the ddir->certs.size read to land past the end of the image (CWE-125). The chkaddr() that bounds the certificate blob runs only after this read. verify_pefile_signature() is reached from kexec_file_load() (the lockdown/secure-boot enforced PE-image signature path), and the image is parsed before its signature is checked. The trigger needs CAP_SYS_BOOT and the access is out-of-bounds read only (no write). Require the certificate table's data-directory entry (index 4) to be present; the existing upper-bound check then keeps ddir->certs within [cursor, header_size).
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 26d1164be37f1145a96af15f294122876d8e5c77 to < 7bece4f231578ea5214c27026f383681bee57d4c (affected · git)26d1164be37f1145a96af15f294122876d8e5c77 to < c77c0001457161d8ff4f9b457bbfe841ebb38cc2 (affected · git)26d1164be37f1145a96af15f294122876d8e5c77 to < 8d2dd81b8591953e6defb28f5bd914feeaf2761b (affected · git)26d1164be37f1145a96af15f294122876d8e5c77 to < 27adcebae626ba3c0a7cc9b6491ff78346517acb (affected · git)26d1164be37f1145a96af15f294122876d8e5c77 to < a6ecef48786cd4e21854ff431cb2a1432240c0c3 (affected · git)26d1164be37f1145a96af15f294122876d8e5c77 to < c1dedf447161ab4942c25b1e099e1986fe49791a (affected · git)26d1164be37f1145a96af15f294122876d8e5c77 to < 3937b14049f4117c152a4b0e86fb39a3737489bf (affected · git)26d1164be37f1145a96af15f294122876d8e5c77 to < 37d550172c2d3cdb3a5ace3e6cb0625967d86349 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.17 (affected)0 to < 3.17 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/27adcebae626ba3c0a7cc9b6491ff78346517acb
- https://git.kernel.org/stable/c/37d550172c2d3cdb3a5ace3e6cb0625967d86349
- https://git.kernel.org/stable/c/3937b14049f4117c152a4b0e86fb39a3737489bf
- https://git.kernel.org/stable/c/7bece4f231578ea5214c27026f383681bee57d4c
- https://git.kernel.org/stable/c/8d2dd81b8591953e6defb28f5bd914feeaf2761b
- https://git.kernel.org/stable/c/a6ecef48786cd4e21854ff431cb2a1432240c0c3
- https://git.kernel.org/stable/c/c1dedf447161ab4942c25b1e099e1986fe49791a
- https://git.kernel.org/stable/c/c77c0001457161d8ff4f9b457bbfe841ebb38cc2
Provider assertions
1Linux · cna
crypto: asymmetric_keys - fix OOB read in pefile_parse_binary
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6ee6f40fe948e7a0e4afe5165e2163368396d98d4c73583f2a74e08f76ab36f3
- Ingested
- 30 Nov 2026, 13:43:49 UTC
- Source record
- Official CVE record