Junglewise Threat Intelligence

CVE-2026-31458: Linux Kernel NULL pointer dereference in mm/damon/sysfs

CVE-2026-31458 · Severity: medium · CVSS 5.5 · Published 2026-04-22

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's memory monitoring subsystem (DAMON) could allow a local user with certain privileges to crash the system. By manipulating specific system files while the monitoring tool is active, an attacker can trigger a system failure (NULL pointer dereference). This results in a denial-of-service condition, impacting the availability of the affected server or workstation.

Technical details

A NULL pointer dereference vulnerability exists in mm/damon/sysfs.c within the Linux kernel. Multiple sysfs command paths in damon_sysfs_handle_cmd() dereference the first element of the contexts array (contexts_arr[0]) without verifying that the number of contexts (nr) is non-zero. A privileged local attacker can set nr_contexts to 0 via sysfs while DAMON is running and then issue commands like update_schemes_stats to trigger the crash. The issue has been resolved by adding a check for kdamond->contexts->nr != 1 at the entry point of the command handler.

Affected products

  • Linux Linux Kernel 5.18 to 6.6.131, 6.7 to 6.12.80, 6.13 to 6.18.21, 6.19 to 6.19.11

Timeline

  • 2026-03-21: other: Patch authored
  • 2026-04-22: disclosed: CVE published

References

Related threats