Linux Kernel DAMON NULL Pointer Dereference Vulnerability via Sysfs Command Paths

Vulnerability

A vulnerability in the Linux kernel's Data Access Monitoring (DAMON) subsystem can lead to NULL pointer dereferences. This issue arises because multiple sysfs command paths dereference the first element of the contexts array without verifying that the number of contexts is equal to one. Privileged users can exploit this by setting the number of contexts to zero through sysfs while DAMON is active, causing the NULL pointer dereference. The vulnerability affects Linux kernel versions 5.18 and later.

Impact

Exploitation of this vulnerability causes a NULL pointer dereference, leading to a crash of the DAMON subsystem.

Reproduction

To reproduce this vulnerability, first start the DAMON subsystem and ensure that the contexts directory is empty, which can be verified by checking that the number of contexts is zero. Then, navigate to the appropriate sysfs directory for the DAMON instance and set the number of contexts to zero. After this, any of the sysfs commands that access DAMON's internal context data will cause a NULL pointer dereference, crashing the subsystem.

Remediation

The vulnerability has been fixed in the Linux kernel. Users should upgrade to the latest version.

Added: Apr 22, 2026, 3:38 PM
Updated: Apr 22, 2026, 3:38 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
3.8
remediation
7.7
relevance
6.2
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.