A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-31399

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

CVE-2026-31399 is a use-after-free flaw in the Linux kernel nvdimm/bus component that occurs during asynchronous device initialization. This post covers technical details, affected versions, security impact, and mitigation.

Updated: May 16, 2026

CVE-2026-31399 Overview

CVE-2026-31399 is a use-after-free vulnerability in the Linux kernel's nvdimm/bus subsystem. The flaw resides in nd_async_device_register(), the function responsible for asynchronous registration of non-volatile memory devices. When device_add() fails during allocation, the device reference count drops to zero before the parent pointer is dereferenced, producing a use-after-free condition. The bug was identified through KASAN (Kernel Address Sanitizer) reporting by a researcher tracked as Dingisoul. The issue regresses a prior fix in commit b6eae0f61db2 ("libnvdimm: Hold reference on parent while scheduling async init"), which intended to keep the parent device alive during asynchronous initialization.

Critical Impact

A use-after-free in kernel memory may lead to denial of service or, under specific allocation conditions, kernel memory corruption affecting NVDIMM-equipped systems.

Affected Products

  • Linux kernel — nvdimm/bus subsystem (libnvdimm)
  • Multiple stable branches receiving backports per kernel.org commits
  • Systems with NVDIMM hardware that invoke nd_async_device_register()

Discovery Timeline

  • 2026-04-03 - CVE-2026-31399 published to NVD
  • 2026-04-18 - Last updated in NVD database

Technical Details for CVE-2026-31399

Vulnerability Analysis

The nvdimm subsystem registers devices asynchronously to reduce boot and hotplug latency. The function nd_async_device_register() schedules registration work and previously took a reference on the parent device to keep it valid until asynchronous registration completed. The fix in commit b6eae0f61db2 introduced that parent reference but did not account for failure paths inside device_add().

When device_add() fails because of an allocation error, the kernel drops the final reference on the child device. The child structure is freed before the code path attempts to access its parent pointer to release the parent reference. The result is a kernel-mode use-after-free [CWE-416] on memory that previously belonged to the device structure.

The remediation saves a local copy of the parent pointer prior to calling device_add(). The cleanup code then uses the saved pointer to drop the parent reference regardless of the outcome, eliminating the dangling access.

Root Cause

The root cause is an object lifetime mismatch. The parent pointer was accessed through the child device structure after that structure could already be freed. Reference-count ordering during the failure path of device_add() was not preserved by the original fix.

Attack Vector

Triggering the condition requires device_add() to fail during asynchronous NVDIMM registration. Such failures typically result from kernel memory allocation pressure. Local attackers with the ability to register or hotplug NVDIMM devices, or to induce allocation failures, could reach the vulnerable path. Remote exploitation is not indicated by the upstream commit data.

No public proof-of-concept exploit code is referenced in the disclosure. The vulnerability is described as a fix derived from KASAN instrumentation rather than an in-the-wild exploitation report.

Detection Methods for CVE-2026-31399

Indicators of Compromise

  • KASAN reports referencing nd_async_device_register or libnvdimm use-after-free conditions in dmesg or kernel logs
  • Kernel oops or panic traces involving the nvdimm/bus code path during device registration
  • Repeated allocation failures (-ENOMEM) coinciding with NVDIMM device add events

Detection Strategies

  • Compare the running kernel version against the fixed commits (2c638259, 6fc36c2a, 84af1985, 9a0fb16b, a226e5b4, a36cf138, a8aec142, e48bf8f1) on kernel.org
  • Audit kernel build configurations to confirm whether CONFIG_LIBNVDIMM is enabled on systems with persistent memory hardware
  • Review crash collection systems for stack traces originating in drivers/nvdimm/bus.c

Monitoring Recommendations

  • Collect and centralize kdump and kmsg output from NVDIMM-capable hosts for retrospective analysis
  • Alert on kernel panics and KASAN splats from production fleets via existing observability pipelines
  • Track NVDIMM hotplug and registration events to correlate with kernel instability

How to Mitigate CVE-2026-31399

Immediate Actions Required

  • Inventory Linux hosts with NVDIMM hardware and identify their running kernel versions
  • Apply the stable kernel update containing the upstream fix for nd_async_device_register()
  • Reboot affected systems after patch installation to ensure the corrected code path is active

Patch Information

The upstream remediation saves the parent device pointer locally before calling device_add(), so the cleanup logic can drop the parent reference whether registration succeeds or fails. The fix has been backported across multiple stable trees. Refer to the kernel.org commits, including Kernel Commit 2c638259, Kernel Commit 6fc36c2a, Kernel Commit 84af1985, Kernel Commit 9a0fb16b, Kernel Commit a226e5b4, Kernel Commit a36cf138, Kernel Commit a8aec142, and Kernel Commit e48bf8f1.

Workarounds

  • Disable the libnvdimm module on hosts that do not require NVDIMM functionality by blacklisting libnvdimm and dependent modules
  • Restrict local administrative access to limit who can trigger NVDIMM device registration or hotplug events
  • Where patching is delayed, monitor memory pressure to reduce the likelihood of allocation failures that trigger the vulnerable path
bash
# Verify running kernel and check for libnvdimm usage
uname -r
lsmod | grep -E 'libnvdimm|nd_'

# Optionally blacklist libnvdimm where NVDIMM is not required
echo 'blacklist libnvdimm' | sudo tee /etc/modprobe.d/blacklist-libnvdimm.conf
sudo update-initramfs -u

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.03%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Kernel Commit c/2c63825

  • Kernel Commit c/6fc36c2

  • Kernel Commit c/84af198

  • Kernel Commit c/9a0fb16

  • Kernel Commit c/a226e5b

  • Kernel Commit c/a36cf13

  • Kernel Commit c/a8aec14

  • Kernel Commit c/e48bf8f
  • Related CVEs
  • CVE-2026-46241: Linux Kernel Use-After-Free Vulnerability

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

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

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

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.

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