Skip to main content
Vulnerability Database/CVE-2026-31445

CVE-2026-31445: Linux Kernel Privilege Escalation Flaw

CVE-2026-31445 is a privilege escalation vulnerability in the Linux kernel's DAMON core that can cause memory corruption and NULL pointer dereference. This article covers technical details, affected versions, and mitigations.

Updated:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-31445 Overview

CVE-2026-31445 is a null pointer dereference vulnerability [CWE-476] in the Linux kernel's Data Access Monitor (DAMON) subsystem. The flaw resides in mm/damon/core and stems from the kernel using a partially updated damon_ctx object after damon_commit_ctx() fails due to an internal memory allocation error. When the commit destination becomes corrupted, DAMON continues to operate on the half-committed context, leading to unexpected behavior including potential null pointer dereference during damos_commit_dests() failure. The issue requires local access with low privileges and impacts system availability.

Critical Impact

A local low-privileged user can trigger a kernel null pointer dereference by inducing memory allocation failure during DAMON online parameter updates, causing a denial-of-service condition.

Affected Products

  • Linux Kernel 7.0-rc1 through 7.0-rc5
  • Linux Kernel stable branches prior to patched commits
  • Systems with DAMON (CONFIG_DAMON) enabled

Discovery Timeline

  • 2026-04-22 - CVE-2026-31445 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-31445

Vulnerability Analysis

DAMON (Data Access Monitor) is a Linux kernel subsystem for monitoring memory access patterns. One major use of damon_call() is to apply online parameter updates by invoking damon_commit_ctx() from within the callback function. The commit operation can fail for two reasons: invalid input parameters or internal memory allocation failures.

API callers validate parameters before calling damon_commit_ctx(), eliminating the first failure mode. However, allocation failures can still occur. When this happens, the destination damon_ctx may be left in a partially updated state. The function only guarantees that the object can be safely freed with damon_destroy_ctx(), not that it is usable.

If the kernel continues operating on this corrupted context, subsequent calls such as damos_commit_dests() can dereference null pointers, crashing the kernel.

Root Cause

The root cause is the absence of a corruption flag on the damon_ctx structure. After damon_commit_ctx() failed mid-update, callers had no mechanism to detect that the context was no longer safe to use. The kernel proceeded to execute additional damon_call_control->fn() callbacks and continued the kdamond_fn() main loop against a corrupted object.

Attack Vector

Exploitation requires local access with low privileges to interact with the DAMON sysfs or debugfs interfaces. An attacker triggers repeated online parameter commits under memory pressure to induce an allocation failure inside damon_commit_ctx(). Once the commit fails, continued DAMON operation on the half-committed context can result in a null pointer dereference and kernel panic. The vulnerability does not permit confidentiality or integrity compromise, only availability impact.

The upstream fix introduces a damon_ctx->maybe_corrupted field. damon_commit_ctx() sets this flag on failure, and both kdamond_call() and kdamond_fn() check it after each callback execution, aborting further processing when the context is marked corrupted.

Detection Methods for CVE-2026-31445

Indicators of Compromise

  • Kernel oops or panic messages referencing damos_commit_dests, damon_commit_ctx, or kdamond_fn in dmesg and /var/log/kern.log
  • Repeated kdamond kernel thread terminations or DAMON sysfs operations returning -ENOMEM
  • Unexpected DAMON configuration state mismatches between user-supplied parameters and active monitoring scheme behavior

Detection Strategies

  • Audit kernel version with uname -r and compare against the patched commits 1b247cd, 26f775a, and 9c495f9
  • Monitor for processes with CAP_SYS_ADMIN or root access writing repeatedly to /sys/kernel/mm/damon/admin/ under low-memory conditions
  • Enable kernel crash logging through kdump to capture stack traces involving DAMON functions

Monitoring Recommendations

  • Track kernel ring buffer events for null pointer dereference signatures originating in mm/damon/core.c
  • Alert on abnormal frequency of DAMON context commit operations from user space
  • Correlate kernel crash telemetry with memory pressure metrics to identify allocation-failure-driven exploitation

How to Mitigate CVE-2026-31445

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced by commits 1b247cd0654a, 26f775a054c3, and 9c495f9d3781 from kernel.org
  • Upgrade to a stable kernel release that includes the damon_ctx->maybe_corrupted fix
  • Restrict access to DAMON sysfs interfaces to trusted administrators only

Patch Information

The fix is committed upstream in three references: Kernel Git Commit 1b247cd, Kernel Git Commit 26f775a, and Kernel Git Commit 9c495f9. The patch introduces a maybe_corrupted flag on damon_ctx that is set when damon_commit_ctx() fails. kdamond_call() and kdamond_fn() consult this flag and abort further callbacks if the context is corrupted.

Workarounds

  • Disable DAMON by building the kernel without CONFIG_DAMON or by ensuring the DAMON sysfs interface is not exposed to unprivileged users
  • Tighten permissions on /sys/kernel/mm/damon/ to root-only access using filesystem ACLs or systemd tmpfiles rules
  • Avoid running online DAMON parameter updates on memory-constrained systems until the patch is applied
bash
# Verify kernel version and DAMON configuration
uname -r
grep CONFIG_DAMON /boot/config-$(uname -r)

# Restrict access to DAMON sysfs interface
chmod 700 /sys/kernel/mm/damon/admin
chown root:root /sys/kernel/mm/damon/admin

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.