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-31715

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

CVE-2026-31715 is a use-after-free flaw in the Linux Kernel's f2fs filesystem that causes NULL pointer dereference during unmount. This article covers the technical details, affected versions, impact, and mitigation.

Published: May 7, 2026

CVE-2026-31715 Overview

CVE-2026-31715 is a use-after-free vulnerability [CWE-416] in the Linux kernel's Flash-Friendly File System (f2fs) implementation. The flaw resides in the f2fs_write_end_io() write completion handler and was reproduced by both the xfstestsgeneric/107 case and syzbot. A race between concurrent checkpoint write completions and a filesystem unmount causes f2fs_in_warm_node_list() to dereference a NULL sbi->node_inode, leading to a kernel NULL pointer dereference and panic.

Critical Impact

A local authenticated user can trigger a kernel panic on systems mounting f2fs volumes, resulting in denial of service and potential memory corruption with high confidentiality, integrity, and availability impact.

Affected Products

  • Linux Kernel (mainline, multiple stable branches)
  • Linux Kernel 7.1-rc1
  • Distributions shipping f2fs support prior to the fix commits

Discovery Timeline

  • 2026-05-01 - CVE-2026-31715 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-31715

Vulnerability Analysis

The vulnerability stems from a race window between f2fs write bio completion and superblock teardown. When f2fs_write_checkpoint issues F2FS_WB_CP_DATA writes, the bio completion path runs f2fs_write_end_io(), which calls dec_page_count(sbi, F2FS_WB_CP_DATA) and wakes waiters on sbi->cp_wait. The unmount path waits via f2fs_wait_on_all_pages(sbi, F2FS_WB_CP_DATA) before proceeding to f2fs_put_super(), which executes iput(sbi->node_inode) and assigns sbi->node_inode = NULL.

A concurrent bio completion can still be executing inside f2fs_write_end_io() after the page count reaches zero. When that callback subsequently calls f2fs_in_warm_node_list() to determine whether the folio belongs to the node inode, it dereferences the now-NULL sbi->node_inode pointer and panics.

Root Cause

The ordering inside f2fs_write_end_io() decrements sbi->nr_pages[F2FS_WB_CP_DATA] before invoking f2fs_in_warm_node_list(). This allows the unmount thread, which is gated only on the page count, to free node_inode while the completion handler is still using it. The result is a classic use-after-free against an inode object whose lifetime is shorter than the bio completion path expects.

Attack Vector

Exploitation requires local access with permissions to mount, write to, and unmount an f2fs volume. An attacker schedules checkpoint-class writes against an f2fs filesystem and races a concurrent unmount to cause f2fs_put_super() to release node_inode while a write bio completion is still in flight. The fix reorders operations so that f2fs_in_warm_node_list() runs before dec_page_count(), closing the race window. Detailed code changes are documented in the upstream patch series.

See the Linux Kernel Commit 7be222d for the corrective patch.

Detection Methods for CVE-2026-31715

Indicators of Compromise

  • Kernel panic stack traces referencing f2fs_write_end_io, f2fs_in_warm_node_list, or is_node_folio during or shortly after f2fs unmount operations.
  • Unexpected system crashes on hosts running f2fs workloads alongside xfstests or fuzzing tools such as syzkaller.
  • dmesg entries showing NULL pointer dereferences with faulting addresses near the f2fs write completion path.

Detection Strategies

  • Inventory running kernels and identify hosts with f2fs mounted that are not on a kernel containing commits 188bb65, 2d9c4a4, 7be222d, or 963d2e2.
  • Monitor kernel crash dumps and kdump artifacts for the signature panic in f2fs_write_end_io().
  • Correlate filesystem mount, unmount, and crash events on endpoints to identify race-condition triggering activity.

Monitoring Recommendations

  • Forward /var/log/kern.log and journalctl -k output to a central logging or SIEM platform for kernel oops and panic detection.
  • Track unprivileged or container processes performing repeated f2fs mount/unmount sequences, which may indicate triggering attempts.
  • Alert on any process spawning mount -t f2fs followed by abnormal termination or kernel panic events on the same host.

How to Mitigate CVE-2026-31715

Immediate Actions Required

  • Apply the upstream stable kernel update containing commits 188bb65f247a, 2d9c4a4ed4ee, 7be222de96c0, and 963d2e24d9d9.
  • Restrict the ability to mount f2fs filesystems to trusted administrators by tightening CAP_SYS_ADMIN allocations and user namespace policies.
  • Audit container and sandbox configurations to ensure unprivileged users cannot mount arbitrary f2fs images.

Patch Information

The fix calls f2fs_in_warm_node_list() before decrementing sbi->nr_pages[F2FS_WB_CP_DATA], ensuring sbi->node_inode is still valid throughout the bio completion. Patches are available in upstream stable trees: Linux Kernel Commit 188bb65, Linux Kernel Commit 2d9c4a4, and Linux Kernel Commit 963d2e2. Distribution vendors should ship rebuilt kernels containing these commits.

Workarounds

  • Avoid using f2fs on multi-tenant or untrusted-user systems until the patched kernel is deployed.
  • Disable the f2fs kernel module via modprobe.d blacklisting where the filesystem is not required.
  • Prevent unprivileged mount operations by removing SYS_ADMIN capability from container runtimes and restricting /etc/fstab user mount options.
bash
# Configuration example: blacklist f2fs where not required
echo 'blacklist f2fs' | sudo tee /etc/modprobe.d/blacklist-f2fs.conf
sudo update-initramfs -u
# Verify the running kernel includes the fix
uname -r
modinfo f2fs | grep -E 'filename|version'

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

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.01%

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

  • Linux Kernel Commit 2d9c4a4

  • Linux Kernel Commit 963d2e2
  • Related CVEs
  • CVE-2026-31745: Linux Kernel Use-After-Free Vulnerability

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

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

  • CVE-2026-43056: 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