CVE-2026-139757
crypto: asymmetric_keys - fix OOB read in pefile_parse_binary
AI summary AI generated
An attacker with CAP_SYS_BOOT can supply a crafted PE image that triggers an out-of-bounds read in the Linux kernel's PE signature parsing during kexec_file_load.
Mitigation
- Upgrade Linux to 37d550172c2d3cdb3a5ace3e6cb0625967d86349 or later.
Who should check
- Anyone running Linux >= 26d1164be37f1145a96af15f294122876d8e5c77, < 7bece4f231578ea5214c27026f383681bee57d4c; >= 26d1164be37f1145a96af15f294122876d8e5c77, < c77c0001457161d8ff4f9b457bbfe841ebb38cc2; >= 26d1164be37f1145a96af15f294122876d8e5c77, < 8d2dd81b8591953e6defb28f5bd914feeaf2761b; >= 26d1164be37f1145a96af15f294122876d8e5c77, < 27adcebae626ba3c0a7cc9b6491ff78346517acb; >= 26d1164be37f1145a96af15f294122876d8e5c77, < a6ecef48786cd4e21854ff431cb2a1432240c0c3; >= 26d1164be37f1145a96af15f294122876d8e5c77, < c1dedf447161ab4942c25b1e099e1986fe49791a; >= 26d1164be37f1145a96af15f294122876d8e5c77, < 3937b14049f4117c152a4b0e86fb39a3737489bf; >= 26d1164be37f1145a96af15f294122876d8e5c77, < 37d550172c2d3cdb3a5ace3e6cb0625967d86349
- Anyone running Linux 3.17
Vulnerability facts
- Affected
- Linux >= 26d1164be37f1145a96af15f294122876d8e5c77, < 7bece4f231578ea5214c27026f383681bee57d4c; >= 26d1164be37f1145a96af15f294122876d8e5c77, < c77c0001457161d8ff4f9b457bbfe841ebb38cc2; >= 26d1164be37f1145a96af15f294122876d8e5c77, < 8d2dd81b8591953e6defb28f5bd914feeaf2761b; >= 26d1164be37f1145a96af15f294122876d8e5c77, < 27adcebae626ba3c0a7cc9b6491ff78346517acb; >= 26d1164be37f1145a96af15f294122876d8e5c77, < a6ecef48786cd4e21854ff431cb2a1432240c0c3; >= 26d1164be37f1145a96af15f294122876d8e5c77, < c1dedf447161ab4942c25b1e099e1986fe49791a; >= 26d1164be37f1145a96af15f294122876d8e5c77, < 3937b14049f4117c152a4b0e86fb39a3737489bf; >= 26d1164be37f1145a96af15f294122876d8e5c77, < 37d550172c2d3cdb3a5ace3e6cb0625967d86349; Linux 3.17
- Fixed in
- Linux 7bece4f231578ea5214c27026f383681bee57d4c, Linux 8d2dd81b8591953e6defb28f5bd914feeaf2761b, Linux 27adcebae626ba3c0a7cc9b6491ff78346517acb, Linux 3937b14049f4117c152a4b0e86fb39a3737489bf, Linux 37d550172c2d3cdb3a5ace3e6cb0625967d86349
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
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).
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 26d1164be37f1145a96af15f294122876d8e5c77, < 7bece4f231578ea5214c27026f383681bee57d4c; >= 26d1164be37f1145a96af15f294122876d8e5c77, < c77c0001457161d8ff4f9b457bbfe841ebb38cc2; >= 26d1164be37f1145a96af15f294122876d8e5c77, < 8d2dd81b8591953e6defb28f5bd914feeaf2761b; >= 26d1164be37f1145a96af15f294122876d8e5c77, < 27adcebae626ba3c0a7cc9b6491ff78346517acb; >= 26d1164be37f1145a96af15f294122876d8e5c77, < a6ecef48786cd4e21854ff431cb2a1432240c0c3; >= 26d1164be37f1145a96af15f294122876d8e5c77, < c1dedf447161ab4942c25b1e099e1986fe49791a; >= 26d1164be37f1145a96af15f294122876d8e5c77, < 3937b14049f4117c152a4b0e86fb39a3737489bf; >= 26d1164be37f1145a96af15f294122876d8e5c77, < 37d550172c2d3cdb3a5ace3e6cb0625967d86349 | — | cvelist |
| Linux | 3.17 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-139757. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-139757.md Affected: Linux >= 26d1164be37f1145a96af15f294122876d8e5c77, < 7bece4f231578ea5214c27026f383681bee57d4c; >= 26d1164be37f1145a96af15f294122876d8e5c77, < c77c0001457161d8ff4f9b457bbfe841ebb38cc2; >= 26d1164be37f1145a96af15f294122876d8e5c77, < 8d2dd81b8591953e6defb28f5bd914feeaf2761b; >= 26d1164be37f1145a96af15… Fixed in: Linux 7bece4f231578ea5214c27026f383681bee57d4c, Linux 8d2dd81b8591953e6defb28f5bd914feeaf2761b, Linux 27adcebae626ba3c0a7cc9b6491ff78346517acb, Linux 3937b14049f4117c152a4b0e86fb39a3737489bf, Linux 37d550172c2d3cdb3a5ace3e6cb0625967d86349 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
Other
- 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
FAQ
Is CVE-2026-139757 being exploited?
There is no confirmed exploitation: CVE-2026-139757 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-139757?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2026-139757?
Linux >= 26d1164be37f1145a96af15f294122876d8e5c77, < 7bece4f231578ea5214c27026f383681bee57d4c; >= 26d1164be37f1145a96af15f294122876d8e5c77, < c77c0001457161d8ff4f9b457bbfe841ebb38cc2; >= 26d1164be37f1145a96af15f294122876d8e5c77, < 8d2dd81b8591953e6defb28f5bd914feeaf2761b; >= 26d1164be37f1145a96af15f294122876d8e5c77, < 27adcebae626ba3c0a7cc9b6491ff78346517acb; >= 26d1164be37f1145a96af15f294122876d8e5c77, < a6ecef48786cd4e21854ff431cb2a1432240c0c3; >= 26d1164be37f1145a96af15f294122876d8e5c77, < c1dedf447161ab4942c25b1e099e1986fe49791a; >= 26d1164be37f1145a96af15f294122876d8e5c77, < 3937b14049f4117c152a4b0e86fb39a3737489bf; >= 26d1164be37f1145a96af15f294122876d8e5c77, < 37d550172c2d3cdb3a5ace3e6cb0625967d86349; Linux 3.17.
Is there a fix for CVE-2026-139757?
Yes. Fixed in Linux 7bece4f231578ea5214c27026f383681bee57d4c, Linux 8d2dd81b8591953e6defb28f5bd914feeaf2761b, Linux 27adcebae626ba3c0a7cc9b6491ff78346517acb, Linux 3937b14049f4117c152a4b0e86fb39a3737489bf, Linux 37d550172c2d3cdb3a5ace3e6cb0625967d86349. Upgrade Linux to 37d550172c2d3cdb3a5ace3e6cb0625967d86349 or later.
How do I check if I'm affected by CVE-2026-139757?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 6.5 | CVE-2026-140063 Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker | Linux kernel+1 | ||
| MEDIUM 5.1 | CVE-2026-140038 Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber | Linux kernel+1 | ||
| HIGH 7.3 | CVE-2026-139801 KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM | Linux kernel | ||
| UNSCORED | CVE-2026-139800 9p/xen: drain response work after unbinding IRQ | Linux kernel | ||
| HIGH 7.0 | CVE-2026-139799 mm/shmem: hold off eviction in shmem_writeout() | Linux kernel |