Linux
X.509: Fix out-of-bounds access when parsing extensions
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 and mitigation
From the CVE record and the vendor's references.Affected
- >= 30eae2b037af54b24109dcaea21db46f6285c69b, < 672b526def1f94c1be8eb11b885b803da0d8c2f1
- >= 30eae2b037af54b24109dcaea21db46f6285c69b, < 30ab358fad0c7daa1d282ec48089901b21b36a20
- >= 30eae2b037af54b24109dcaea21db46f6285c69b, < 206121294b9cf27f0589857f80d64f87e496ffb2
- >= 30eae2b037af54b24109dcaea21db46f6285c69b, < 7fb4dadc2734f4020d7543d688b8d49c8e569c61
- >= 30eae2b037af54b24109dcaea21db46f6285c69b, < d702c3408213bb12bd570bb97204d8340d141c51
Fixed in 672b526def1f94c1be8eb11b885b803da0d8c2f1, 30ab358fad0c7daa1d282ec48089901b21b36a20, 206121294b9cf27f0589857f80d64f87e496ffb2, 7fb4dadc2734f4020d7543d688b8d49c8e569c61, d702c3408213bb12bd570bb97204d8340d141c51
- 6.4
Fixed in 0, 6.6.135, 6.12.82, 6.18.23, 6.19.13, 7.0
Mitigation
Upgrade Linux to 672b526def1f94c1be8eb11b885b803da0d8c2f1 or 30ab358fad0c7daa1d282ec48089901b21b36a20 or 206121294b9cf27f0589857f80d64f87e496ffb2 or 7fb4dadc2734f4020d7543d688b8d49c8e569c61 or d702c3408213bb12bd570bb97204d8340d141c51 or later.
Upgrade Linux to 0 or 6.6.135 or 6.12.82 or 6.18.23 or 6.19.13 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.