Skip to main content

Linux Kernel EUVDEUVD-2026-24796

| CVE-2026-31457 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-04-22 416baaa9-dc9f-4396-8d5f-8c081fb06d67 GHSA-p6jg-gm5j-8f2r
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Write sysfs parameter nr_contexts=0
  2. Delivery
    Trigger DAMON repeat_call_fn() timer callback
  3. Exploit
    Call damon_sysfs_upd_tuned_intervals() without bounds check
  4. Execution
    Dereference contexts_arr[0] NULL pointer
  5. Impact
    Kernel panic or daemon process termination

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 four specific conditions: (1) Linux kernel version vulnerable to the unpatched code path (6.17, 7.0-rc1 through rc5, or specific unpatched stable versions); (2) DAMON subsystem enabled in kernel configuration (CONFIG_DAMON=y); (3) DAMON daemon actively running with at least one kdamond thread (e.g., started via damo or direct sysfs kdamond/state write); (4) Local user with write access to /sys/kernel/mm/damon/admin/kdamonds/0/contexts/nr_contexts (non-root user in permissive sysfs permission model, or default root-writable-only scenarios). The vulnerability does NOT occur with DAMON disabled, statically configured (no nr_contexts changes), or with read-only sysfs permissions. The attack requires that nr_contexts be actively modified to zero while repeat_call_fn() callback is scheduled, making race condition timing a practical exploitation factor.

Impact

CVSS indicates local, low-complexity attack vector requiring limited privileges (PR:L) with no user interaction, yielding a severity score of 5.5 (Medium). However, the low EPSS score of 0.02% percentile 4 suggests minimal real-world exploitation likelihood, which contradicts typical medium-severity kernel DoS attacks. This discrepancy likely reflects that the attack requires simultaneous control of DAMON sysfs parameters and kernel version support for the vulnerable code path. The vulnerability is not listed in CISA KEV, indicating no confirmed active exploitation. The straightforward trigger mechanism (setting nr_contexts=0) is easily discoverable but the impact (process DoS, not code execution) and requirement for sysfs-writable configuration context limit exploitation scope. The low EPSS despite moderate CVSS suggests this affects isolated deployments where users have sysfs access and DAMON is actively running.

Exploit ScenarioDerived

An unprivileged local user with write access to the DAMON sysfs interface (e.g., via a shared research system or container with partial sysfs exposure) starts the DAMON daemon using damo tool or direct sysfs writes, then sets /sys/kernel/mm/damon/admin/kdamonds/0/contexts/nr_contexts to 0 while a background monitoring operation is active. The damon_sysfs_repeat_call_fn() timer callback fires, attempts to update tuned intervals using contexts_arr[0], dereferences a NULL pointer, and triggers a kernel panic or process termination (DoS).

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 05, 2026

Null pointer dereference in Linux kernel DAMON sysfs interface allows local authenticated users to cause denial of service by setting nr_contexts to zero while DAMON is running, triggering dereference of uninitialized context array pointers in damon_sysfs_repeat_call_fn(). The vulnerability requires local access and low-level privileges (non-root user with sysfs write access), with an EPSS exploitation probability of 0.02% indicating low real-world attack likelihood despite the straightforward trigger mechanism.

RemediationAI

Apply vendor-released patches from stable kernel backports: Linux 6.18.21, 6.19.11, or 7.0 and later (commits 3527e9fdc38570cea0f6ddb7a2c9303d4044b217, 652cd0641a763dd0e846b0d12814977fadb2b7d8, and 6557004a8b59c7701e695f02be03c7e20ed1cc15 available at https://git.kernel.org/stable/). The fix adds a missing bounds check in damon_sysfs_repeat_call_fn() to verify contexts->nr > 0 before dereferencing context array elements. Interim mitigation: restrict write access to /sys/kernel/mm/damon/admin/kdamonds/*/contexts/nr_contexts via filesystem permissions or SELinux policy to prevent unprivileged users from triggering the dereference. This mitigation trades off DAMON configuration flexibility for availability. Additionally, disable DAMON at boot time via kernel command line parameter if not actively required, eliminating the daemon context entirely.

Affected VersionsENISA

Linux 6.17
Linux d809a7c64ba8229286b333c0cba03b1cdfb50238 <6557004a8b59c7701e695f02be03c7e20ed1cc15
Linux patch: 0
Linux patch: 6.18.21
Linux d809a7c64ba8229286b333c0cba03b1cdfb50238 <652cd0641a763dd0e846b0d12814977fadb2b7d8
Linux d809a7c64ba8229286b333c0cba03b1cdfb50238 <3527e9fdc38570cea0f6ddb7a2c9303d4044b217
Linux patch: 6.19.11
Linux patch: 7.0

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 Linux kernel DAMON (Data Access Monitoring) subsystem exposes a sysfs interface for dynamic memory monitoring configuration at /sys/kernel/mm/damon/admin/. The damon_sysfs_repeat_call_fn() function, part of the mm/damon/sysfs subsystem, is responsible for periodically updating tuned intervals and scheme statistics without validating that the contexts array contains active context structures. When nr_contexts is modified to zero via sysfs while DAMON daemon threads are running, the function attempts to dereference contexts_arr[0] despite the empty context list, violating the bounds check that would normally prevent array access. This is a classic CWE-476 null pointer dereference in a kernel memory management subsystem.

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

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:22 NVD
5.5 (MEDIUM)
Patch released
Apr 23, 2026 - 16:17 nvd
Patch available
Patch available
Apr 22, 2026 - 16:02 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 in repeat_call_fn

damon_sysfs_repeat_call_fn() calls damon_sysfs_upd_tuned_intervals(), damon_sysfs_upd_schemes_stats(), and damon_sysfs_upd_schemes_effective_quotas() without checking contexts->nr. If nr_contexts is set to 0 via sysfs while DAMON is running, these functions dereference contexts_arr[0] and cause a NULL pointer dereference. Add the missing check.

For example, the issue can be reproduced using DAMON sysfs interface and DAMON user-space tool (damo) [1] like below.

$ sudo damo start --refresh_interval 1s $ echo 0 | sudo tee \ /sys/kernel/mm/damon/admin/kdamonds/0/contexts/nr_contexts

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% 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