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
    • 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-2025-71237

CVE-2025-71237: Linux Kernel nilfs2 DoS Vulnerability

CVE-2025-71237 is a denial of service flaw in the Linux kernel nilfs2 filesystem that causes system hangs through FITRIM command exploitation. This post covers technical details, affected versions, and mitigation.

Published: February 20, 2026

CVE-2025-71237 Overview

CVE-2025-71237 is an integer underflow vulnerability in the Linux kernel's nilfs2 filesystem implementation. The vulnerability occurs when a user executes the FITRIM command, causing an underflow during the calculation of nblocks when end_block is too small. Since nblocks is of type sector_t (which is u64), a negative value becomes an extremely large positive integer, leading to the block layer function __blkdev_issue_discard() taking an excessively long time to process the bio chain.

Critical Impact

This vulnerability allows local users to cause a denial of service condition by triggering a system hang. The ns_segctor_sem lock remains held for an extended period, preventing other tasks from acquiring it and resulting in system unresponsiveness.

Affected Products

  • Linux Kernel with nilfs2 filesystem support
  • Systems utilizing FITRIM operations on nilfs2 filesystems
  • Linux distributions with vulnerable kernel versions

Discovery Timeline

  • 2026-02-18 - CVE CVE-2025-71237 published to NVD
  • 2026-02-19 - Last updated in NVD database

Technical Details for CVE-2025-71237

Vulnerability Analysis

The vulnerability resides in the nilfs2 filesystem's handling of the FITRIM ioctl command, which is used for SSD TRIM operations. When processing this command, the kernel calculates the number of blocks (nblocks) to be trimmed. If the ending block value provided by the user is too small (typically smaller than the 4KiB range), the calculation can result in an integer underflow.

The core issue stems from the unsigned nature of the sector_t type used for nblocks. When the subtraction operation produces what should be a negative result, the unsigned 64-bit integer wraps around to a massive positive value. This causes __blkdev_issue_discard() to attempt processing an astronomically large bio chain, effectively hanging the system.

The stack trace from syzbot's report shows the segctord kernel thread stuck in a D (uninterruptible sleep) state attempting to acquire the ns_segctor_sem write lock in nilfs_transaction_lock(), demonstrating the lock contention caused by this vulnerability.

Root Cause

The root cause is improper validation of the FITRIM range parameters before performing arithmetic operations. The code fails to verify that the ending block is large enough to produce a valid (non-negative) nblocks value. Additionally, depending on the usage of segment 0, attempting a discard request beyond the device size may be possible when the ending block is too small.

Attack Vector

A local attacker with the ability to execute FITRIM ioctl commands on a nilfs2 filesystem can exploit this vulnerability. The attack involves crafting FITRIM parameters with an end_block value that is intentionally too small, triggering the integer underflow condition.

The vulnerability is exploited through the following mechanism: when the FITRIM command is issued with malformed parameters, the calculation of nblocks underflows, causing the block layer to process an effectively infinite bio chain while holding the ns_segctor_sem lock, preventing other filesystem operations and causing a system hang.

Detection Methods for CVE-2025-71237

Indicators of Compromise

  • System processes stuck in uninterruptible sleep (D state) related to nilfs2 operations
  • Kernel threads showing nilfs_transaction_lock or nilfs_segctor_thread in stack traces
  • System unresponsiveness following FITRIM operations on nilfs2 filesystems
  • Elevated CPU usage from block layer discard processing

Detection Strategies

  • Monitor for processes in D state with nilfs2-related stack traces using tools like ps or /proc/[pid]/stack
  • Implement auditd rules to track FITRIM ioctl calls on nilfs2 mounted filesystems
  • Deploy kernel tracing (ftrace/eBPF) to monitor nilfs2 FITRIM operations with suspicious parameters
  • Review system logs for segctord thread warnings or lock contention messages

Monitoring Recommendations

  • Configure alerting for sustained high CPU usage in kernel block layer functions
  • Monitor for abnormal lock hold times on nilfs2 semaphores
  • Implement watchdog timers to detect and recover from system hangs
  • Track FITRIM ioctl usage patterns for anomalous small range parameters

How to Mitigate CVE-2025-71237

Immediate Actions Required

  • Apply the latest kernel patches that address this vulnerability
  • Restrict access to FITRIM ioctl operations to trusted users only
  • Consider temporarily disabling FITRIM operations on nilfs2 filesystems until patched
  • Monitor systems using nilfs2 for signs of exploitation attempts

Patch Information

The Linux kernel maintainers have released patches to address this vulnerability. The fix implements a conservative strategy that safely ignores invalid FITRIM range parameters, treating them as a no-op operation. When the start and len values are too small, the patched code exits successfully and assigns the discarded size (0 in this case) to range->len without performing any trimming or throwing an error.

Multiple kernel stable branches have received patches:

  • Kernel Patch Note 2438982
  • Kernel Patch Note 4aa45f8
  • Kernel Patch Note 6457d3e
  • Kernel Patch Note b8c5ee2
  • Kernel Patch Note ba18e5f
  • Kernel Patch Note df1e207
  • Kernel Patch Note ea22786

Workarounds

  • Restrict FITRIM ioctl access using filesystem permissions or security modules (SELinux/AppArmor)
  • Disable user access to FITRIM operations via appropriate capabilities restrictions
  • Monitor and audit nilfs2 filesystem operations for suspicious activity
  • Consider migrating critical workloads to alternative filesystems until patching is complete
bash
# Configuration example
# Restrict FITRIM capabilities using capabilities(7)
# Remove CAP_SYS_ADMIN from untrusted processes
setcap -r /path/to/untrusted/binary

# Mount nilfs2 with restricted options (review for your environment)
mount -t nilfs2 -o noexec,nosuid /dev/sdX /mnt/nilfs2

# Monitor for nilfs2 lock contention
cat /proc/locks | grep nilfs

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechLinux Kernel

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.02%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Kernel Patch Note 2438982

  • Kernel Patch Note 4aa45f8

  • Kernel Patch Note 6457d3e

  • Kernel Patch Note b8c5ee2

  • Kernel Patch Note ba18e5f

  • Kernel Patch Note df1e207

  • Kernel Patch Note ea22786
  • Related CVEs
  • CVE-2026-23446: Linux Kernel aqc111 Driver DoS Vulnerability

  • CVE-2026-23451: Linux Kernel Bonding Driver DoS Flaw

  • CVE-2026-23460: Linux Kernel ROSE Protocol DoS Vulnerability

  • CVE-2026-23459: Linux Kernel DOS 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