Linux Kernel X.509 Out-of-Bounds Access Vulnerability in Certificate Extension Parsing

Vulnerability

A vulnerability has been identified in the Linux kernel's handling of X.509 certificates, specifically when parsing extensions related to Basic Constraints and Key Usage. The issue arises because the parser reads the first byte of these extensions before verifying their length, leading to an out-of-bounds access. This vulnerability can be exploited by an unprivileged user who submits a specially crafted certificate to the kernel via the keyrings API. The problem has been demonstrated with a proof-of-concept program that was responsibly disclosed.

Impact

Exploitation of this vulnerability can lead to out-of-bounds memory access, which may cause undefined behavior such as memory corruption or application crashes.

Reproduction

To reproduce this vulnerability, create a certificate that includes empty Basic Constraints or Key Usage extensions. Once the certificate is crafted, submit it to the Linux kernel through the keyrings API. The kernel will parse the certificate, triggering the out-of-bounds access issue.

Remediation

Users can upgrade to the patched version of the Linux kernel available in the Linux kernel stable tree.

Added: Apr 20, 2026, 10:35 AM
Updated: Apr 20, 2026, 10:35 AM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.6
exploitability
4.3
remediation
7.7
relevance
6.1
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.