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

CVE-2025-38561: Linux Kernel Race Condition Vulnerability

CVE-2025-38561 is a race condition flaw in Linux Kernel's ksmbd affecting Preauh_HashValue handling during session setup. This article covers the technical details, affected versions, security impact, and mitigation.

Published: April 15, 2026

CVE-2025-38561 Overview

CVE-2025-38561 is a race condition vulnerability in the Linux kernel's ksmbd (Kernel SMB Direct) component. The vulnerability exists in the handling of Preauth_HashValue during SMB session setup operations. When a client sends multiple session setup requests simultaneously to ksmbd, a race condition can occur in the Preauth_HashValue processing logic, potentially leading to memory corruption and system instability.

Critical Impact

This race condition vulnerability can be exploited locally to cause a denial of service condition, potentially crashing the kernel or causing system instability on systems running the ksmbd SMB server.

Affected Products

  • Linux Kernel (multiple versions)
  • Debian Linux 11.0

Discovery Timeline

  • 2025-08-19 - CVE-2025-38561 published to NVD
  • 2026-01-07 - Last updated in NVD database

Technical Details for CVE-2025-38561

Vulnerability Analysis

This vulnerability is classified as CWE-362 (Race Condition), specifically affecting the session authentication mechanism in the ksmbd kernel module. The ksmbd component implements the SMB3 protocol directly in the Linux kernel for high-performance file sharing. During the session setup phase, the Preauth_HashValue structure is used to maintain cryptographic state for pre-authentication integrity verification.

The flaw occurs because the code prematurely frees sess->Preauth_HashValue during the session setup phase while other concurrent operations may still be accessing the same memory. When multiple session setup requests are processed simultaneously, one thread may free the hash value while another thread is still reading or writing to it, creating a classic use-after-free scenario through race condition.

The vulnerability requires local access and has high attack complexity due to the precise timing needed to trigger the race condition. Successful exploitation results in a denial of service through kernel memory corruption or crash, though no confidentiality or integrity impacts are expected based on the attack surface.

Root Cause

The root cause is improper memory management in the session setup handler. The Preauth_HashValue memory was being freed during the session setup phase, when multiple concurrent requests could still reference this memory. The fix defers the deallocation of sess->Preauth_HashValue to the connection termination phase, where it can be safely freed along with the rest of the session data, ensuring no concurrent access is possible.

Attack Vector

The attack requires local access to a system running the ksmbd kernel module. An attacker would need to:

  1. Have local access to a system with ksmbd enabled and configured
  2. Send multiple concurrent SMB session setup requests
  3. Time the requests to trigger the race condition where one thread frees the Preauth_HashValue while another is still accessing it

The vulnerability is triggered through the SMB3 session establishment process, where the pre-authentication integrity hash is calculated and stored. The race window exists between the point where the hash value is being processed and when it might be freed by a concurrent operation.

Detection Methods for CVE-2025-38561

Indicators of Compromise

  • Kernel panic or oops messages related to ksmbd module operations
  • Unexpected crashes in systems running SMB file sharing services
  • Memory corruption warnings in kernel logs referencing ksmbd session handling
  • Abnormal number of SMB session setup requests in network logs

Detection Strategies

  • Monitor kernel logs for ksmbd-related crash reports or memory access violations
  • Implement system monitoring to detect unusual patterns of SMB session establishment requests
  • Use kernel debugging tools to track memory allocation and deallocation patterns in the ksmbd module
  • Deploy network monitoring to identify rapid successive SMB session setup attempts from local sources

Monitoring Recommendations

  • Enable kernel crash dump analysis for forensic investigation of any ksmbd-related incidents
  • Configure alerting on kernel oops or panic events involving the ksmbd module
  • Monitor system stability metrics on servers running ksmbd file sharing services
  • Review SMB access logs for unusual session establishment patterns

How to Mitigate CVE-2025-38561

Immediate Actions Required

  • Apply the latest kernel patches that address this vulnerability
  • Consider temporarily disabling ksmbd if not actively required while patches are applied
  • Restrict local access to systems running ksmbd to trusted users only
  • Implement network segmentation to limit exposure of SMB services

Patch Information

Multiple patches have been released to address this vulnerability across different kernel versions. The fix modifies the memory management approach for Preauth_HashValue, ensuring it is only freed during connection termination rather than during session setup. The following kernel patches are available:

  • Kernel Patch Submission 44a3059
  • Kernel Patch Submission 6613887
  • Kernel Patch Submission 7d7c0c5
  • Kernel Patch Submission b69fd87
  • Kernel Patch Submission edeecc7
  • Kernel Patch Submission fbf5c08

Additional information is available from the Zero Day Initiative Advisory ZDI-25-916 and Debian LTS Security Announcement.

Workarounds

  • If ksmbd is not required, disable the ksmbd kernel module: rmmod ksmbd or blacklist it in /etc/modprobe.d/
  • Use Samba userspace implementation instead of ksmbd for SMB file sharing if kernel-based SMB is not essential
  • Implement strict access controls to limit which users can initiate SMB connections
  • Consider using firewall rules to rate-limit SMB session establishment requests
bash
# Disable ksmbd module if not needed
sudo rmmod ksmbd

# Blacklist ksmbd to prevent automatic loading
echo "blacklist ksmbd" | sudo tee /etc/modprobe.d/ksmbd-blacklist.conf

# Check kernel version and update if necessary
uname -r
sudo apt update && sudo apt upgrade linux-image-$(uname -r)

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

  • Vulnerability Details
  • TypeRace Condition

  • Vendor/TechLinux Kernel

  • SeverityMEDIUM

  • CVSS Score4.7

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-362
  • Technical References
  • Zero Day Initiative Advisory ZDI-25-916

  • Debian LTS Security Announcement
  • Vendor Resources
  • Kernel Patch Submission 44a3059

  • Kernel Patch Submission 6613887

  • Kernel Patch Submission 7d7c0c5

  • Kernel Patch Submission b69fd87

  • Kernel Patch Submission edeecc7

  • Kernel Patch Submission fbf5c08
  • Related CVEs
  • CVE-2026-43342: Linux Kernel Race Condition Vulnerability

  • CVE-2026-43340: Linux Kernel Race Condition Vulnerability

  • CVE-2026-43353: Linux Kernel Race Condition Vulnerability

  • CVE-2026-43318: Linux Kernel Race Condition Vulnerability
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