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-2025-71223

CVE-2025-71223: Linux Kernel SMB Privilege Escalation Flaw

CVE-2025-71223 is a privilege escalation vulnerability in the Linux kernel SMB server involving a refcount leak in smb2_open(). This article covers the technical details, affected versions, security impact, and mitigation.

Published: February 20, 2026

CVE-2025-71223 Overview

A reference count leak vulnerability has been identified in the Linux kernel's SMB server implementation (ksmbd). The vulnerability exists in the smb2_open() function where a failure in ksmbd_vfs_getattr() does not properly release the reference count of ksmbd_file, leading to a memory leak condition.

Critical Impact

This memory leak vulnerability in the Linux kernel SMB server can lead to resource exhaustion and potential denial of service conditions on affected systems running ksmbd.

Affected Products

  • Linux kernel with ksmbd (kernel SMB server) enabled
  • Systems using in-kernel SMB file sharing functionality
  • Server deployments utilizing ksmbd for Windows file sharing compatibility

Discovery Timeline

  • 2026-02-14 - CVE CVE-2025-71223 published to NVD
  • 2026-02-18 - Last updated in NVD database

Technical Details for CVE-2025-71223

Vulnerability Analysis

The vulnerability resides in the smb2_open() function within the ksmbd (kernel SMB server) subsystem of the Linux kernel. When processing SMB2 open requests, the function allocates and initializes a ksmbd_file structure, incrementing its reference count. However, when a subsequent call to ksmbd_vfs_getattr() fails, the error handling path does not properly decrement this reference count before returning.

This creates a reference count leak where the ksmbd_file object is never properly freed, even though the open operation has failed. Over time, repeated failed operations can accumulate leaked references, consuming kernel memory that cannot be reclaimed.

Root Cause

The root cause is improper reference count management in the error handling path of smb2_open(). The function acquires a reference to a ksmbd_file object early in its execution but fails to release this reference when ksmbd_vfs_getattr() returns an error. This violates the kernel's reference counting discipline, which requires that every acquired reference must be explicitly released on all code paths, including error paths.

Attack Vector

The vulnerability can be triggered through SMB2 protocol interactions with a ksmbd server. An attacker with network access to an SMB share served by ksmbd could potentially craft requests that cause ksmbd_vfs_getattr() to fail repeatedly, gradually exhausting kernel memory through accumulated reference leaks. This could lead to denial of service conditions on the affected server.

The exploitation does not require authentication if anonymous access is permitted, though in most configurations, SMB authentication would be required before reaching the vulnerable code path.

Detection Methods for CVE-2025-71223

Indicators of Compromise

  • Gradual increase in kernel memory usage on systems running ksmbd
  • SMB server performance degradation over time without corresponding increase in legitimate workload
  • Kernel memory allocation failures or out-of-memory conditions on SMB servers
  • Unusual patterns of failed SMB2 open operations in server logs

Detection Strategies

  • Monitor kernel memory utilization trends on systems running ksmbd SMB server functionality
  • Implement alerting on increasing slab memory consumption, particularly in ksmbd-related caches
  • Review SMB server logs for patterns of repeated failed open operations from specific sources
  • Use kernel tracing tools to monitor reference count operations in ksmbd module

Monitoring Recommendations

  • Deploy memory monitoring on all systems with ksmbd enabled to detect gradual resource exhaustion
  • Implement network monitoring for anomalous SMB traffic patterns that could indicate exploitation attempts
  • Configure automated alerts when kernel memory usage exceeds baseline thresholds
  • Regularly review system logs for ksmbd-related error messages indicating getattr failures

How to Mitigate CVE-2025-71223

Immediate Actions Required

  • Apply the latest kernel patches that address the reference count leak in smb2_open()
  • Consider temporarily disabling ksmbd if not actively required until patches are applied
  • Implement network access controls to limit SMB access to trusted hosts only
  • Monitor affected systems for signs of memory exhaustion while awaiting patch deployment

Patch Information

The Linux kernel maintainers have released patches to address this vulnerability. The fix ensures that the reference count of ksmbd_file is properly released when ksmbd_vfs_getattr() fails. Multiple stable kernel branches have received this fix:

  • Kernel Git Commit 2456fde
  • Kernel Git Commit 39ca11f
  • Kernel Git Commit 4665e52
  • Kernel Git Commit f416c55

Update to a kernel version containing one of these commits to remediate the vulnerability.

Workarounds

  • Disable ksmbd module if SMB server functionality is not required (modprobe -r ksmbd)
  • Use Samba userspace implementation instead of ksmbd for SMB file sharing
  • Implement firewall rules to restrict SMB access to trusted networks and hosts
  • Schedule regular system restarts to clear accumulated leaked memory as a temporary measure
bash
# Disable ksmbd module if not required
sudo modprobe -r ksmbd

# Verify ksmbd is not loaded
lsmod | grep ksmbd

# Block external SMB access via firewall (example using iptables)
sudo iptables -A INPUT -p tcp --dport 445 -s ! 10.0.0.0/8 -j DROP

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

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.02%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Kernel Git Commit 2456fde

  • Kernel Git Commit 39ca11f

  • Kernel Git Commit 4665e52

  • Kernel Git Commit f416c55
  • Related CVEs
  • CVE-2026-31413: Linux Kernel BPF Privilege Escalation

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

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

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