CVE-2026-139757: crypto: asymmetric_keys - fix OOB read in pefile_parse_binary

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

crypto: asymmetrickeys - fix OOB read in pefileparsebinary

pefileparsebinary() 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->certssize = ddir->certs.size;

but nothing ensures index 4 is present. ndatadirents (the untrusted NumberOfRvaAndSizes) is only upper-bounded against headersize and may be 0, and headersize need only satisfy cursor < headersize < datalen. A crafted PE with ndatadirents = 0 and a tiny headersize 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.

verifypefilesignature() is reached from kexecfileload() (the lockdown/secure-boot enforced PE-image signature path), and the image is parsed before its signature is checked. The trigger needs CAPSYSBOOT 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, headersize).

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Before reading the certificate table data-directory entry, require that entry at index 4 is present.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:37 PM
Data Sourced
via MITRE·01:37 PM
Description

Frequently Asked Questions

1

Who can trigger the vulnerable parsing path?

An attacker needs CAP_SYS_BOOT and must be able to supply a crafted PE image to the kexec_file_load() path. The PE image is parsed before its signature is checked.

2

Are systems that do not allow kexec loading at risk from this path?

The described trigger reaches the parser through kexec_file_load(), specifically the lockdown or secure-boot enforced PE-image signature path. The provided information does not identify another reachable path.

3

What can be done if an updated kernel cannot be deployed immediately?

Restrict CAP_SYS_BOOT to trusted principals and prevent untrusted crafted PE images from being submitted through kexec_file_load(). This limits access to the required trigger path.

4

Does the issue permit an out-of-bounds write?

No. The described impact is an out-of-bounds read only; no write primitive is described.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203