# CVE-2026-31430: X.509: Fix out-of-bounds access when parsing extensions

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.08%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-04-20T09:43:03.919Z
- Modified: 2026-11-05T22:18:31.233Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

X.509: Fix out-of-bounds access when parsing extensions

Leo reports an out-of-bounds access when parsing a certificate with
empty Basic Constraints or Key Usage extension because the first byte of
the extension is read before checking its length.  Fix it.

The bug can be triggered by an unprivileged user by submitting a
specially crafted certificate to the kernel through the keyrings(7) API.
Leo has demonstrated this with a proof-of-concept program responsibly
disclosed off-list.

(As written by CVE List.)

## Affected

- Linux Linux: from 30eae2b037af54b24109dcaea21db46f6285c69b before 672b526def1f94c1be8eb11b885b803da0d8c2f1; from 30eae2b037af54b24109dcaea21db46f6285c69b before 30ab358fad0c7daa1d282ec48089901b21b36a20; from 30eae2b037af54b24109dcaea21db46f6285c69b before 206121294b9cf27f0589857f80d64f87e496ffb2; from 30eae2b037af54b24109dcaea21db46f6285c69b before 7fb4dadc2734f4020d7543d688b8d49c8e569c61; from 30eae2b037af54b24109dcaea21db46f6285c69b before d702c3408213bb12bd570bb97204d8340d141c51; 6.4 (not affected: before 6.4; from 6.6.135 up to 6.6.*; from 6.12.82 up to 6.12.*; from 6.18.23 up to 6.18.*; from 6.19.13 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.4 before 6.6.135; from 6.7 before 6.12.82; from 6.13 before 6.18.23; from 6.19 before 6.19.13; 7.0

## References

- <https://git.kernel.org/stable/c/672b526def1f94c1be8eb11b885b803da0d8c2f1> (patch)
- <https://git.kernel.org/stable/c/30ab358fad0c7daa1d282ec48089901b21b36a20> (patch)
- <https://git.kernel.org/stable/c/206121294b9cf27f0589857f80d64f87e496ffb2> (patch)
- <https://git.kernel.org/stable/c/7fb4dadc2734f4020d7543d688b8d49c8e569c61> (patch)
- <https://git.kernel.org/stable/c/d702c3408213bb12bd570bb97204d8340d141c51> (patch)

## Sources

- CVE List: [CVE-2026-31430](https://www.cve.org/CVERecord?id=CVE-2026-31430), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2026-31430](https://nvd.nist.gov/vuln/detail/CVE-2026-31430), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2026-31430 · Whole record: https://cve.day/CVE-2026-31430.json · Rebuilt by cve.day 2026-11-25T22:59:19.028Z
