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

CVE-2025-68817: Linux Kernel ksmbd Use-After-Free Flaw

CVE-2025-68817 is a use-after-free vulnerability in the Linux kernel ksmbd component that occurs under high concurrency when a freed tree-connection object is accessed. This article covers technical details, impact, and mitigations.

Updated: January 22, 2026

CVE-2025-68817 Overview

A use-after-free vulnerability has been identified in the Linux kernel's ksmbd (in-kernel SMB3 server) subsystem. The flaw exists in the ksmbd_tree_connect_put function, where under high concurrency conditions, a tree-connection object (tcon) can be freed on a disconnect path while another execution path still holds a reference to the object and subsequently attempts to execute put or write operations on the already-freed memory.

This race condition vulnerability in the kernel's SMB server implementation can lead to memory corruption, kernel crashes, and potentially allow attackers to achieve privilege escalation or execute arbitrary code in kernel context.

Critical Impact

Use-after-free vulnerability in the Linux kernel ksmbd subsystem can be exploited under high concurrency to cause memory corruption, denial of service, or potentially achieve privilege escalation on affected systems.

Affected Products

  • Linux kernel with ksmbd (in-kernel SMB3 server) enabled
  • Systems running kernel versions prior to the security patches
  • Network file servers using ksmbd for SMB3 protocol support

Discovery Timeline

  • 2026-01-13 - CVE CVE-2025-68817 published to NVD
  • 2026-01-13 - Last updated in NVD database

Technical Details for CVE-2025-68817

Vulnerability Analysis

The vulnerability is a classic use-after-free condition that manifests in the ksmbd subsystem, which provides in-kernel SMB3 server functionality for the Linux kernel. The core issue stems from improper synchronization when handling tree-connection objects during concurrent disconnect and reference operations.

When a client disconnects from an SMB share, the kernel initiates cleanup of the associated tree-connection object. However, if another thread or execution path is simultaneously holding a reference to the same object and attempts to perform operations on it (such as calling *_put() or write functions), a race condition occurs. The first path frees the memory while the second path still believes it has a valid reference, leading to use-after-free when the second path attempts to access the now-freed memory.

This type of vulnerability is particularly dangerous in kernel context as it can lead to arbitrary kernel memory corruption, allowing an attacker to potentially escalate privileges or execute code in ring 0.

Root Cause

The root cause is a race condition in the reference counting mechanism for tree-connection objects within ksmbd. The vulnerability arises from insufficient synchronization between the code paths that handle:

  1. Tree connection teardown during client disconnect
  2. Concurrent operations that hold and release references to the same tree-connection object

The lack of proper locking or atomic operations when decrementing the reference count and freeing the object allows for a window where one thread can free the object while another thread still assumes it is valid.

Attack Vector

An attacker can exploit this vulnerability by establishing multiple SMB connections to a ksmbd server and orchestrating rapid connect/disconnect operations with concurrent file operations. The high concurrency environment increases the likelihood of triggering the race condition.

The exploitation scenario involves:

  1. Establishing multiple SMB3 connections to a vulnerable ksmbd server
  2. Performing file or share operations that acquire references to tree-connection objects
  3. Simultaneously initiating disconnect operations from other connections
  4. Racing the disconnect with the ongoing operations to trigger the use-after-free

Successful exploitation could allow an attacker to corrupt kernel memory, potentially leading to privilege escalation from a remote authenticated user to root-level access, or causing a denial of service through kernel panic.

Detection Methods for CVE-2025-68817

Indicators of Compromise

  • Kernel panic or oops messages referencing ksmbd functions, particularly ksmbd_tree_connect_put
  • Unexpected ksmbd daemon crashes or restarts under high load conditions
  • KASAN (Kernel Address Sanitizer) reports indicating use-after-free in ksmbd code paths
  • Unusual memory corruption errors in kernel logs associated with SMB server operations

Detection Strategies

  • Monitor kernel logs for KASAN use-after-free reports referencing ksmbd subsystem functions
  • Deploy kernel debugging tools to detect memory corruption patterns associated with race conditions
  • Implement network monitoring for unusual patterns of rapid SMB connect/disconnect sequences
  • Use crash dump analysis to identify ksmbd-related kernel panics indicating potential exploitation attempts

Monitoring Recommendations

  • Enable KASAN in development and testing environments to catch use-after-free conditions
  • Configure syslog to forward kernel messages to a centralized SIEM for analysis
  • Monitor SMB server performance metrics for anomalous connection patterns
  • Set up alerts for ksmbd process crashes or kernel oops conditions

How to Mitigate CVE-2025-68817

Immediate Actions Required

  • Apply the security patches from the Linux kernel stable branches immediately
  • If patching is not immediately possible, consider disabling ksmbd and using userspace SMB implementations (like Samba) as an alternative
  • Restrict network access to SMB services to trusted hosts only
  • Monitor systems for signs of exploitation or unusual ksmbd behavior

Patch Information

The Linux kernel maintainers have released patches to address this use-after-free vulnerability. The fix improves synchronization in the tree-connection reference counting mechanism to prevent the race condition. Multiple commits have been applied to the stable kernel branches:

  • Kernel Git Commit 063cbbc
  • Kernel Git Commit 21a3d01
  • Kernel Git Commit b39a183
  • Kernel Git Commit d092de8
  • Kernel Git Commit d649774

Update to a kernel version that includes these patches to fully remediate the vulnerability.

Workarounds

  • Disable ksmbd kernel module if not required: modprobe -r ksmbd
  • Use userspace Samba implementation instead of the in-kernel ksmbd for SMB3 services
  • Implement network-level access controls to limit SMB access to trusted networks and hosts
  • Reduce the attack surface by limiting concurrent SMB connections through firewall rate limiting
bash
# Disable ksmbd kernel module
sudo modprobe -r ksmbd

# Prevent ksmbd from loading at boot
echo "blacklist ksmbd" | sudo tee /etc/modprobe.d/blacklist-ksmbd.conf

# Alternatively, use iptables to limit SMB connection rates
sudo iptables -A INPUT -p tcp --dport 445 -m connlimit --connlimit-above 50 -j DROP

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

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

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update
  • Related CVEs
  • CVE-2026-31475: Linux Kernel Use-After-Free Vulnerability

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

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

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