Linux Kernel Asymmetric Key Handling Buffer Overflow Vulnerability

Vulnerability

A buffer overflow vulnerability has been identified in the Linux kernel's handling of asymmetric keys. This issue arises in the 'keyctl_pkey_params_get_2' function, where the internal output buffer length is incorrectly calculated. As a result, a buffer overflow can occur if a buffer that is too small is provided. The vulnerability affects several versions of the Linux kernel, specifically in the stable tree, and has been present since version 4.20.

Impact

Exploitation of this vulnerability can lead to a buffer overflow, which may be exploited to execute arbitrary code or cause a denial-of-service condition.

Reproduction

The vulnerability can be reproduced by invoking the 'keyctl_pkey_params_get_2' function with parameters that trigger the incorrect buffer size calculation. This can be done by providing a user-defined buffer that is smaller than the required size, which will cause an overflow when the function attempts to write output data.

Remediation

Users can upgrade to the latest version of the Linux kernel stable release to address this vulnerability.

Added: Jul 19, 2026, 12:31 PM
Updated: Jul 19, 2026, 12:31 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
7.5
exploitability
4.3
remediation
7.7
relevance
10.0
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.