The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-31577

CVE-2026-31577: Linux Kernel Privilege Escalation Flaw

CVE-2026-31577 is a privilege escalation vulnerability in the Linux Kernel's nilfs2 filesystem that causes NULL pointer dereference. This article covers the technical details, affected versions, impact, and mitigation.

Updated: May 14, 2026

CVE-2026-31577 Overview

CVE-2026-31577 is a NULL pointer dereference vulnerability in the Linux kernel's nilfs2 filesystem. The flaw resides in nilfs_mdt_save_to_shadow_map(), which assumes the Disk Address Translation (DAT) inode's btree node cache (i_assoc_inode) is initialized before use. Because i_assoc_inode is initialized lazily during btree operations, invoking the NILFS_IOCTL_CLEAN_SEGMENTS ioctl immediately after mount triggers a general protection fault during garbage collection (GC). A local user with permission to issue the GC ioctl can crash the kernel, producing a denial-of-service condition on the affected host.

Critical Impact

A local attacker can trigger a kernel general protection fault through the nilfs2 GC ioctl path, causing a system crash and denial of service.

Affected Products

  • Linux Kernel (multiple stable branches; see referenced commits)
  • Systems mounting nilfs2 filesystems
  • Distributions shipping unpatched kernels with nilfs2 enabled

Discovery Timeline

  • 2026-04-24 - CVE-2026-31577 published to NVD
  • 2026-04-27 - Last updated in NVD database

Technical Details for CVE-2026-31577

Vulnerability Analysis

The nilfs2 filesystem maintains metadata files, including the DAT inode used for block address translation. The DAT inode owns a btree node cache referenced through i_assoc_inode. This cache is created lazily by nilfs_attach_btree_node_cache() on the first btree operation rather than at mount time.

During garbage collection, nilfs_mdt_save_to_shadow_map() copies dirty pages from metadata inodes into a shadow map. The function dereferences i_assoc_inode without checking whether the cache has been attached. When GC executes before any btree operation has touched the DAT inode, i_assoc_inode is still NULL.

The defect is classified as [CWE-476] NULL Pointer Dereference. The bug is reachable from user space through the NILFS_IOCTL_CLEAN_SEGMENTS ioctl, which drives the cleaner's segment reclamation logic.

Root Cause

The root cause is an ordering assumption mismatch. nilfs_mdt_save_to_shadow_map() assumes i_assoc_inode is non-NULL, while nilfs_dat_read() (called at mount) never forces initialization. If a user invokes the GC ioctl before any read or write touches the DAT btree, the kernel dereferences a NULL pointer and faults.

The upstream fix calls nilfs_attach_btree_node_cache() on the DAT inode inside nilfs_dat_read(), guaranteeing i_assoc_inode is initialized before any GC operation can run.

Attack Vector

Exploitation requires local access and the ability to mount a nilfs2 filesystem and issue ioctls against it. An attacker mounts a nilfs2 volume, then issues NILFS_IOCTL_CLEAN_SEGMENTS against the mount before any btree operation has executed. The kernel enters nilfs_mdt_save_to_shadow_map(), dereferences NULL, and triggers a general protection fault. No code execution or information disclosure has been demonstrated; the impact is limited to availability.

The vulnerability manifests in the nilfs_mdt_save_to_shadow_map() function in fs/nilfs2/mdt.c. See the linked kernel.org commits for the patch diff and call-site details.

Detection Methods for CVE-2026-31577

Indicators of Compromise

  • Kernel oops or general protection fault messages referencing nilfs_mdt_save_to_shadow_map in dmesg or /var/log/kern.log
  • Unexpected system crashes correlated with nilfs-clean or other userland callers of NILFS_IOCTL_CLEAN_SEGMENTS
  • Mount events for nilfs2 filesystems followed promptly by GC ioctl activity from unprivileged users

Detection Strategies

  • Monitor kernel ring buffer output for stack traces containing nilfs_mdt_save_to_shadow_map and nilfs_clean_segments
  • Audit mount syscalls for nilfs2 filesystem type, particularly on hosts where this filesystem is not expected
  • Track ioctl invocations via auditd rules targeting the nilfs2 cleaner interface to identify abnormal callers

Monitoring Recommendations

  • Forward kernel logs to a centralized log pipeline and alert on general protection fault signatures referencing nilfs2 symbols
  • Inventory hosts with the nilfs2 kernel module loaded using lsmod and prioritize patching
  • Establish baselines for legitimate nilfs2 usage so anomalous mount and ioctl sequences stand out

How to Mitigate CVE-2026-31577

Immediate Actions Required

  • Apply the Linux kernel update containing the upstream fix that calls nilfs_attach_btree_node_cache() from nilfs_dat_read()
  • Where patching is delayed, unload or blacklist the nilfs2 kernel module on systems that do not require it
  • Restrict mount permissions for nilfs2 volumes to trusted administrative users only

Patch Information

The fix is committed across multiple stable kernel branches. Reference the upstream commits for the exact patch content: Linux kernel commit 41de342278ae, commit 449ec5fc99f4, commit 4a4e0328edd9, commit 7318e3549518, commit 97fb7afec404, and commit c36e206f302f. Update to a kernel version that includes the corresponding backport from your distribution vendor.

Workarounds

  • Blacklist the nilfs2 module via /etc/modprobe.d/ to prevent loading on systems that do not require the filesystem
  • Remove or restrict access to nilfs2 userland tools (nilfs-clean, nilfs-utils) so unprivileged users cannot trigger the GC ioctl
  • Disable user-mounted removable media handlers for nilfs2 filesystem types until the patched kernel is deployed
bash
# Configuration example: blacklist the nilfs2 module
echo 'blacklist nilfs2' | sudo tee /etc/modprobe.d/blacklist-nilfs2.conf
sudo depmod -a
sudo update-initramfs -u
# Verify the module is not loaded
lsmod | grep nilfs2

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechLinux Kernel

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-476
  • Vendor Resources
  • Linux Kernel Commit Details

  • Linux Kernel Commit Details

  • Linux Kernel Commit Details

  • Linux Kernel Commit Details

  • Linux Kernel Commit Details

  • Linux Kernel Commit Details
  • Related CVEs
  • CVE-2026-43332: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-43344: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-43306: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-43351: Linux Kernel Privilege Escalation Flaw
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