CVE-2026-139757

crypto: asymmetric_keys - fix OOB read in pefile_parse_binary

No CVSS score yet EPSS 0.30%

Published 30 Nov 2026 Updated 30 Nov 2026 CNA: Linux

Check your servers for CVE-2026-139757

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139757 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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).

Exploitation

EPSS 0.30%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 24.9% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 26d1164be37f1145a96af15f294122876d8e5c77, before 7bece4f231578ea5214c27026f383681bee57d4c
affected from 26d1164be37f1145a96af15f294122876d8e5c77, before c77c0001457161d8ff4f9b457bbfe841ebb38cc2
affected from 26d1164be37f1145a96af15f294122876d8e5c77, before 8d2dd81b8591953e6defb28f5bd914feeaf2761b
affected from 26d1164be37f1145a96af15f294122876d8e5c77, before 27adcebae626ba3c0a7cc9b6491ff78346517acb
affected from 26d1164be37f1145a96af15f294122876d8e5c77, before a6ecef48786cd4e21854ff431cb2a1432240c0c3
affected from 26d1164be37f1145a96af15f294122876d8e5c77, before c1dedf447161ab4942c25b1e099e1986fe49791a
affected from 26d1164be37f1145a96af15f294122876d8e5c77, before 3937b14049f4117c152a4b0e86fb39a3737489bf
affected from 26d1164be37f1145a96af15f294122876d8e5c77, before 37d550172c2d3cdb3a5ace3e6cb0625967d86349
Other versions: unaffected
Linux
affected 3.17
unaffected before 3.17
unaffected from 5.10.275 up to and including 5.10.*
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.119 up to and including 6.12.*
unaffected from 6.18.65 up to and including 6.18.*
unaffected from 7.3.6 up to and including 7.3.*
unaffected 7.4-rc1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139757 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139757

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-139757
trivy image --scanners vuln IMAGE | grep CVE-2026-139757

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-139757 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.