Linux Kernel Shadow Call Stack Parameter Mismanagement Vulnerability

Vulnerability

A vulnerability in the Linux kernel's handling of the shadow call stack can lead to incorrect memory range scanning by the stack usage checking function. This issue arises because the function __scs_magic() is provided with the wrong type of variable, which, when CONFIG_DEBUG_STACK_USAGE is enabled, can cause inaccurate stack usage reports and potentially allow a kernel crash by accessing unmapped memory. However, this crash scenario is unlikely due to the way memory is allocated for the task structure and the shadow call stack. The vulnerability primarily affects developers and testers debugging stack usage with the relevant configuration active.

Impact

The vulnerability can cause inaccurate reporting of stack usage statistics, which may lead to incorrect values being displayed in the kernel message log. Additionally, it could allow for a kernel crash by accessing unmapped memory, potentially causing a kernel panic.

Reproduction

The vulnerability can be reproduced by enabling the CONFIG_DEBUG_STACK_USAGE option in the Linux kernel. Once this option is active, the scs_check_usage function will incorrectly scan memory for tasks, leading to the issues described.

Remediation

Users can update to the latest version of the Linux kernel where this vulnerability has been addressed. Instructions for downloading the patched version are available on the Linux Kernel Archive.

Added: Jan 14, 2026, 3:59 PM
Updated: Jan 14, 2026, 5:15 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
3.1
exploitability
4.3
remediation
8.3
relevance
2.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.