diff options
| author | Lukas Wunner <lukas@wunner.de> | 2026-04-07 12:58:18 +0200 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2026-04-12 13:38:19 +0800 |
| commit | d702c3408213bb12bd570bb97204d8340d141c51 (patch) | |
| tree | 9a18534c1e1ff8193ee49be0612a78066a1525f1 /samples/workqueue/stall_detector/git@git.tavy.me:linux-stable.git | |
| parent | 31d00156e50ecad37f2cb6cbf04aaa9a260505ef (diff) | |
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.
Fixes: 30eae2b037af ("KEYS: X.509: Parse Basic Constraints for CA")
Fixes: 567671281a75 ("KEYS: X.509: Parse Key Usage")
Reported-by: Leo Lin <leo@depthfirst.com> # off-list
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Reviewed-by: Ignat Korchagin <ignat@linux.win>
Cc: stable@vger.kernel.org # v6.4+
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'samples/workqueue/stall_detector/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
