CVE
CVE-2026-31430
CNA 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.
Affected versions
All Linux kernel vulnerabilities →
- 7.0-rc7This version only
- 7.0-rc6This version only
- 7.0-rc5This version only
- 7.0-rc4This version only
- 7.0-rc3This version only
- 7.0-rc2This version only
- 7.0-rc1This version only
- ≥ 6.19, < 6.19.13Fixed in 6.19.13
- ≥ 6.13, < 6.18.23Fixed in 6.18.23
- ≥ 6.7, < 6.12.82Fixed in 6.12.82
- ≥ 6.4, < 6.6.135Fixed in 6.6.135
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- git.kernel.org/stable/c/206121294b9cf27f0589857f80d64f87e496ffb2 · Patch
- git.kernel.org/stable/c/30ab358fad0c7daa1d282ec48089901b21b36a20 · Patch
- git.kernel.org/stable/c/672b526def1f94c1be8eb11b885b803da0d8c2f1 · Patch
- git.kernel.org/stable/c/7fb4dadc2734f4020d7543d688b8d49c8e569c61 · Patch
- git.kernel.org/stable/c/d702c3408213bb12bd570bb97204d8340d141c51 · Patch
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.