CVE-2026-31430 PUBLISHED

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

Assigner: Linux
Reserved: 09.03.2026 Published: 20.04.2026 Updated: 20.04.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 30eae2b037af54b24109dcaea21db46f6285c69b to 672b526def1f94c1be8eb11b885b803da0d8c2f1 (excl.)
  • affected from 30eae2b037af54b24109dcaea21db46f6285c69b to 30ab358fad0c7daa1d282ec48089901b21b36a20 (excl.)
  • affected from 30eae2b037af54b24109dcaea21db46f6285c69b to 206121294b9cf27f0589857f80d64f87e496ffb2 (excl.)
  • affected from 30eae2b037af54b24109dcaea21db46f6285c69b to 7fb4dadc2734f4020d7543d688b8d49c8e569c61 (excl.)
  • affected from 30eae2b037af54b24109dcaea21db46f6285c69b to d702c3408213bb12bd570bb97204d8340d141c51 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.4 is affected
  • unaffected from 0 to 6.4 (excl.)
  • unaffected from 6.6.135 to 6.6.* (incl.)
  • unaffected from 6.12.82 to 6.12.* (incl.)
  • unaffected from 6.18.23 to 6.18.* (incl.)
  • unaffected from 6.19.13 to 6.19.* (incl.)
  • unaffected from 7.0 to * (incl.)

References