Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-31457

CVE-2026-31457: Linux Kernel Use-After-Free Vulnerability

CVE-2026-31457 is a use-after-free vulnerability in the Linux kernel's DAMON sysfs component that causes NULL pointer dereference. This article covers technical details, affected versions, and mitigation.

Published: April 23, 2026

CVE-2026-31457 Overview

A NULL pointer dereference vulnerability has been discovered in the Linux kernel's DAMON (Data Access MONitor) subsystem within the sysfs interface. The vulnerability exists in the damon_sysfs_repeat_call_fn() function, which fails to verify that contexts->nr is non-zero before accessing array elements. This allows an attacker with local access to trigger a kernel crash by setting nr_contexts to 0 via sysfs while DAMON is actively running.

Critical Impact

Local attackers can cause a kernel panic and system crash by manipulating DAMON sysfs parameters during runtime, leading to denial of service conditions on affected Linux systems.

Affected Products

  • Linux kernel versions with DAMON sysfs interface enabled
  • Systems using DAMON for memory access monitoring
  • Linux distributions with kernel memory management features active

Discovery Timeline

  • 2026-04-22 - CVE-2026-31457 published to NVD
  • 2026-04-23 - Last updated in NVD database

Technical Details for CVE-2026-31457

Vulnerability Analysis

The vulnerability resides in the DAMON (Data Access MONitor) sysfs interface within the Linux kernel's memory management subsystem. The damon_sysfs_repeat_call_fn() function calls three subordinate functions—damon_sysfs_upd_tuned_intervals(), damon_sysfs_upd_schemes_stats(), and damon_sysfs_upd_schemes_effective_quotas()—without first validating that the contexts->nr value is greater than zero.

When a user with appropriate privileges writes the value 0 to /sys/kernel/mm/damon/admin/kdamonds/0/contexts/nr_contexts while DAMON is actively running, the subsequent function calls attempt to dereference contexts_arr[0], which results in a NULL pointer dereference. This causes an immediate kernel panic, crashing the system.

Root Cause

The root cause is a missing bounds check in damon_sysfs_repeat_call_fn(). The function assumes that contexts->nr will always be at least 1 when DAMON is running, but the sysfs interface allows users to modify this value to 0 at runtime. The absence of validation before array access creates a race condition where legitimate runtime configuration changes can trigger undefined behavior.

Attack Vector

The vulnerability can be exploited by a local attacker with write access to the DAMON sysfs interface. The attacker must have sufficient privileges to write to /sys/kernel/mm/damon/admin/kdamonds/0/contexts/nr_contexts. As demonstrated in the CVE description, the attack can be reproduced using the DAMON user-space tool (damo) combined with direct sysfs manipulation:

  1. Start DAMON monitoring with a refresh interval using the damo tool
  2. Write the value 0 to the nr_contexts sysfs parameter
  3. The kernel attempts to access an uninitialized array element, triggering a NULL pointer dereference

The exploit requires local access and elevated privileges to the sysfs interface, but no authentication bypass is needed if the attacker already has appropriate system access.

Detection Methods for CVE-2026-31457

Indicators of Compromise

  • Kernel panic messages referencing damon_sysfs_repeat_call_fn() or related DAMON functions
  • System crashes immediately following writes to /sys/kernel/mm/damon/admin/kdamonds/*/contexts/nr_contexts
  • Unexpected NULL pointer dereference oops messages in kernel logs involving memory management subsystems
  • Repeated system reboots correlated with DAMON monitoring activity

Detection Strategies

  • Monitor sysfs writes to DAMON configuration paths, particularly nr_contexts parameters being set to zero
  • Implement kernel log monitoring for NULL pointer dereference messages in mm/damon/sysfs components
  • Track process activity accessing /sys/kernel/mm/damon/admin/ directory structure
  • Deploy auditd rules to log modifications to DAMON sysfs parameters

Monitoring Recommendations

  • Configure centralized logging for kernel panic events and oops messages
  • Implement real-time alerting on unexpected system restarts affecting systems with DAMON enabled
  • Monitor for suspicious use of the damo user-space tool or direct sysfs manipulation scripts
  • Enable kernel crashdump analysis to identify root causes of memory management-related crashes

How to Mitigate CVE-2026-31457

Immediate Actions Required

  • Apply the official kernel patches from the Linux kernel stable branches immediately
  • Restrict access to DAMON sysfs interfaces to only trusted administrators
  • Monitor systems for attempted exploitation using the detection strategies outlined above
  • Consider temporarily disabling DAMON if patching is not immediately possible and the feature is not critical

Patch Information

The Linux kernel maintainers have released patches to address this vulnerability by adding the missing contexts->nr check in damon_sysfs_repeat_call_fn(). The patches are available through the following commits:

  • Linux Kernel Commit 3527e9f
  • Linux Kernel Commit 652cd064
  • Linux Kernel Commit 6557004a

Organizations should update to kernel versions containing these commits or apply the patches to their current kernel builds.

Workarounds

  • Restrict write access to /sys/kernel/mm/damon/admin/ using filesystem permissions or mandatory access control (SELinux/AppArmor)
  • Disable the DAMON sysfs interface if not required by setting CONFIG_DAMON_SYSFS=n during kernel compilation
  • Use access control lists (ACLs) to limit which users and processes can modify DAMON parameters
  • Implement runtime monitoring to detect and block writes of value 0 to nr_contexts parameters
bash
# Restrict DAMON sysfs access to root only
chmod 700 /sys/kernel/mm/damon/admin/
# Alternative: Use ACL to restrict specific users
setfacl -R -m u:monitoring_user:r /sys/kernel/mm/damon/admin/

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechLinux Kernel

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.02%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Linux Kernel Commit 3527e9f

  • Linux Kernel Commit 652cd064

  • Linux Kernel Commit 6557004a
  • Related CVEs
  • CVE-2026-31475: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-31469: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-31444: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-31473: Linux Kernel Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English