Linux Kernel Kprobe Vulnerability Leading to Kernel Panic on RISC-V Architecture

Vulnerability

A vulnerability in the Linux kernel's handling of kprobes on RISC-V architecture can lead to a kernel panic. This issue occurs when a kprobe is set at an illegal position, such as the middle of an instruction, which disrupts the kernel's original code. The improper probing can cause the kernel to panic, indicating a stack corruption. The vulnerability has been addressed by adding a check to ensure that kprobes are only placed at valid positions.

Impact

Exploitation of this vulnerability causes a kernel panic, disrupting system operations and indicating a stack corruption issue.

Reproduction

To reproduce this vulnerability, configure the RISC-V kernel with the 'C' extension disabled. Then, set a kprobe at an illegal position, such as the middle of an instruction, and enable the probe. This will trigger a kernel panic, with the system reporting a corrupted stack and the panic occurring in the 'sys_newfstatat' function.

Remediation

The vulnerability has been fixed in the official Linux kernel repository. Users should upgrade to the latest stable version of the Linux kernel to address this issue.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
0.0
relevance
0.0
threat
4.8
urgency
2.9
incentive
1.7

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