X.509: Fix out-of-bounds access when parsing extensions
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel reads past the bounds of an empty Basic Constraints or Key Usage extension when parsing an X.509 certificate. An unprivileged local user can trigger the bug by submitting a specially crafted certificate through the keyrings API.
Engineers running the Linux kernel should check their systems; affected versions were not specified.