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

Summary

CVECVE-2026-31430
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-04-20 10:16:16 UTC
Updated2026-04-20 10:16:16 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 30eae2b037af54b24109dcaea21db46f6285c69b 672b526def1f94c1be8eb11b885b803da0d8c2f1 git Not specified
CNA Linux Linux affected 30eae2b037af54b24109dcaea21db46f6285c69b 30ab358fad0c7daa1d282ec48089901b21b36a20 git Not specified
CNA Linux Linux affected 30eae2b037af54b24109dcaea21db46f6285c69b 206121294b9cf27f0589857f80d64f87e496ffb2 git Not specified
CNA Linux Linux affected 30eae2b037af54b24109dcaea21db46f6285c69b 7fb4dadc2734f4020d7543d688b8d49c8e569c61 git Not specified
CNA Linux Linux affected 30eae2b037af54b24109dcaea21db46f6285c69b d702c3408213bb12bd570bb97204d8340d141c51 git Not specified
CNA Linux Linux affected 6.4 Not specified
CNA Linux Linux unaffected 6.4 semver Not specified
CNA Linux Linux unaffected 6.6.135 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.82 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.23 6.18.* semver Not specified
CNA Linux Linux unaffected 6.19.13 6.19.* semver Not specified
CNA Linux Linux unaffected 7.0 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/206121294b9cf27f0589857f80d64f87e496ffb2 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d702c3408213bb12bd570bb97204d8340d141c51 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7fb4dadc2734f4020d7543d688b8d49c8e569c61 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/30ab358fad0c7daa1d282ec48089901b21b36a20 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/672b526def1f94c1be8eb11b885b803da0d8c2f1 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report