Skip to main content

Linux Kernel CVE-2026-31458

| EUVDEUVD-2026-24797 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-04-22 416baaa9-dc9f-4396-8d5f-8c081fb06d67 GHSA-rhx5-38hr-wvr9
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local privileged access
  2. Delivery
    Enable/start DAMON instance
  3. Exploit
    Write zero to contexts/nr_contexts sysfs file
  4. Execution
    Execute update_schemes state command
  5. Persist
    Trigger NULL pointer dereference
  6. Impact
    Kernel crash (denial of service)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerability requires five specific conditions: (1) DAMON must be compiled into the kernel (CONFIG_DAMON_SYSFS=y) and active, (2) the attacker must have local system access with CAP_SYS_ADMIN or equivalent capability to write to /sys/kernel/mm/damon/admin sysfs files, (3) a kdamond instance must be running (e.g., via 'damo start'), (4) the nr_contexts value for the kdamond must be set to exactly zero (vulnerability does not trigger if contexts exist or if DAMON is not running), and (5) the attacker must explicitly issue one of the affected state commands (update_schemes_stats, update_schemes_tried_regions, update_schemes_tried_bytes, update_schemes_effective_quotas, or update_tuned_intervals). Default Linux deployments without DAMON enabled or with properly restricted sysfs permissions are not vulnerable. The vulnerability does not affect unauthenticated remote users or unprivileged local users without CAP_SYS_ADMIN.

Impact

The risk assessment presents a clear disconnect between CVSS and real-world exploitability. CVSS 5.5 with AV:L/AC:L/PR:L indicates local, low-complexity exploitation by a low-privileged user, normally a moderate concern. However, EPSS 0.02% (5th percentile) and the detailed technical requirements substantially lower practical risk. The vulnerability requires: (1) local system access, (2) CAP_SYS_ADMIN or equivalent privilege to modify sysfs DAMON settings, (3) an active DAMON instance, and (4) explicit multi-step user action (start DAMON, set contexts to zero, issue specific state commands). The attack yields only denial of service (crash/hang), not privilege escalation or data exfiltration. No KEV listing and no public exploit code reported. This is a low-priority vulnerability suitable for standard maintenance patching rather than emergency response. Organizations should prioritize patching systems where unprivileged users might have DAMON sysfs write access or where local denial of service is a critical threat; most deployments lack DAMON enabled or restrict sysfs appropriately.

Exploit ScenarioDerived

A local user with CAP_SYS_ADMIN privilege (e.g., a container admin or system administrator) starts a DAMON instance via damo start, then echoes 0 to /sys/kernel/mm/damon/admin/kdamonds/0/contexts/nr_contexts to empty the contexts array. Next, the user echoes 'update_schemes_stats' or another affected command to the state file, causing the kernel to dereference a NULL pointer in the DAMON handler, triggering a kernel oops and denial of service. This requires multiple deliberate actions rather than a single malicious input, limiting accidental triggering.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 06, 2026

Denial of service via null pointer dereference in Linux kernel DAMON sysfs module allows local privileged users to crash the system by setting nr_contexts to zero while DAMON is running, then issuing state-change commands that dereference an empty contexts array without bounds checking. EPSS exploitation probability is minimal at 0.02%, reflecting the requirement for local privileged access and active DAMON configuration.

RemediationAI

Apply the vendor-released kernel patch from the stable branch matching your current version: Linux 6.6.131, 6.12.80, 6.18.21, 6.19.11, or 7.0 final release. The upstream fix adds bounds checking in damon_sysfs_handle_cmd() to verify kdamond->contexts->nr >= 1 before accessing contexts_arr[0], preventing NULL pointer dereference on all affected command paths (update_schemes_stats, update_schemes_tried_regions, update_schemes_tried_bytes, update_schemes_effective_quotas, update_tuned_intervals). For kernels not yet receiving patches, disable CONFIG_DAMON_SYSFS at compile time if DAMON is not required, or restrict sysfs access via filesystem permissions (chmod 600 on /sys/kernel/mm/damon/admin) and SELinux/AppArmor policies to prevent unprivileged users from modifying DAMON contexts. Patch references: https://git.kernel.org/stable/c/1bfe9fb5ed2667fb075682408b776b5273162615, https://git.kernel.org/stable/c/aba546061341b56e9ffb37e1eb661a3628b6ec12.

Affected VersionsENISA

Linux patch: 7.0
Linux 0ac32b8affb5a384253dbb8339bd2d0e91add0b7 <aba546061341b56e9ffb37e1eb661a3628b6ec12
Linux patch: 6.19.11
Linux patch: 6.6.131
Linux 0ac32b8affb5a384253dbb8339bd2d0e91add0b7 <1bfe9fb5ed2667fb075682408b776b5273162615
Linux 0ac32b8affb5a384253dbb8339bd2d0e91add0b7 <708033c231bd782858f4ddbb46ee874a5a5fbdab
Linux 0ac32b8affb5a384253dbb8339bd2d0e91add0b7 <1e8da792672481d603fa7cd0d815577220a3ee27
Linux 5.18
Linux patch: 6.12.80
Linux 0ac32b8affb5a384253dbb8339bd2d0e91add0b7 <bbe03ad3fb9e714191757ca7b41582f930be7be2
Linux patch: 0
Linux patch: 6.18.21

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in the Data Access MONitoring (DAMON) subsystem's sysfs interface, specifically in the damon_sysfs_handle_cmd() function and related code paths. DAMON is a Linux kernel module for monitoring memory access patterns. The sysfs interface allows privileged users to manage DAMON instances (kdamonds) and their associated contexts via /sys/kernel/mm/damon/admin/. The vulnerability is classified as CWE-476 (Null Pointer Dereference), arising from insufficient bounds checking on the contexts_arr array before access. Multiple command handlers (update_schemes_stats, update_schemes_tried_regions, update_schemes_tried_bytes, update_schemes_effective_quotas, update_tuned_intervals) directly dereference contexts_arr[0] without verifying that kdamond->contexts->nr >= 1, allowing a local privileged user to trigger a NULL pointer dereference by first reducing nr_contexts to zero via sysfs and then invoking these commands.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
SUSE MEDIUM
Red Hat 5.5 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
CVSS changed
May 05, 2026 - 21:37 NVD
5.5 (MEDIUM)
Patch released
Apr 23, 2026 - 16:17 nvd
Patch available
Patch available
Apr 22, 2026 - 16:33 EUVD
CVE Published
Apr 22, 2026 - 14:16 nvd
N/A

DescriptionNVD

In the Linux kernel, the following vulnerability has been resolved:

mm/damon/sysfs: check contexts->nr before accessing contexts_arr[0]

Multiple sysfs command paths dereference contexts_arr[0] without first verifying that kdamond->contexts->nr == 1. A user can set nr_contexts to 0 via sysfs while DAMON is running, causing NULL pointer dereferences.

In more detail, the issue can be triggered by privileged users like below.

First, start DAMON and make contexts directory empty (kdamond->contexts->nr == 0).

damo start

cd /sys/kernel/mm/damon/admin/kdamonds/0

echo 0 > contexts/nr_contexts

Then, each of below commands will cause the NULL pointer dereference.

echo update_schemes_stats > state

echo update_schemes_tried_regions > state

echo update_schemes_tried_bytes > state

echo update_schemes_effective_quotas > state

echo update_tuned_intervals > state

Guard all commands (except OFF) at the entry point of damon_sysfs_handle_cmd().

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy