Linux Kernel Kprobe Null Pointer Dereference Vulnerability

Vulnerability

A null pointer dereference vulnerability has been identified in the Linux kernel's kprobe tracing mechanism. This issue arises in the 'kprobe_event_gen_test_exit()' function, where a failure in 'test_gen_kprobe_cmd()' can lead to the deletion of a kprobe event. Consequently, the 'trace_array' pointer in 'gen_kretprobe_test' may reference an invalid resource, causing a kernel null pointer dereference. The vulnerability has been observed in Linux kernel version 6.1.0-rc1.

Impact

Exploitation of this vulnerability leads to a kernel null pointer dereference, causing a crash.

Reproduction

The vulnerability can be reproduced by loading a kprobe that fails during command generation, which triggers a deletion process that improperly handles the 'trace_array' reference, leading to a null pointer dereference when the event is cleaned up.

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.