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

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

CVE-2026-31608 is a use-after-free flaw in the Linux Kernel SMB server that causes a double-free condition in smb_direct_free_sendmsg. This article covers technical details, affected versions, impact, and mitigation.

Updated: May 16, 2026

CVE-2026-31608 Overview

CVE-2026-31608 is a double-free vulnerability [CWE-415] in the Linux kernel's ksmbd SMB server implementation. The flaw resides in the SMB Direct (RDMA) transport code, where smb_direct_free_sendmsg() is invoked twice on the same send message buffer. The first free occurs inside smb_direct_flush_send_list(), and a redundant second free occurs after post_sendmsg() migrates the message to the batch list. An unauthenticated remote attacker reaching the SMB Direct interface can trigger memory corruption in kernel space, leading to denial of service or potential code execution.

Critical Impact

A network-reachable attacker can corrupt kernel heap memory through a double-free in the in-kernel SMB server, with no authentication or user interaction required.

Affected Products

  • Linux Kernel — ksmbd SMB server module (SMB Direct/RDMA transport)
  • Distributions shipping vulnerable upstream kernels prior to the fix commits
  • Systems exposing ksmbd over RDMA-capable network interfaces

Discovery Timeline

  • 2026-04-24 - CVE-2026-31608 published to NVD
  • 2026-04-29 - Last updated in NVD database

Technical Details for CVE-2026-31608

Vulnerability Analysis

The vulnerability exists in the ksmbd kernel module, which implements an in-kernel SMB3 file server. Within the SMB Direct transport layer, send messages are tracked through linked lists and freed via smb_direct_free_sendmsg(). The function smb_direct_flush_send_list() already releases each send message it processes. After a refactor moved sendmsg handling to a batch list inside post_sendmsg(), the caller continued to invoke smb_direct_free_sendmsg() on the same buffer that had already been freed by the flush path. This produces a classic double-free condition against kernel-allocated memory.

Double-free conditions in the kernel slab allocator can corrupt freelist pointers, enable arbitrary kernel write primitives through heap layout manipulation, and ultimately permit privilege escalation or kernel code execution. Because the affected code path is reachable over the network without authentication during SMB Direct session setup and message exchange, the attack surface is exposed to any host that can negotiate an RDMA connection with the target.

Root Cause

The root cause is a use-after-free style logic error introduced when send message lifecycle management was refactored to use a batch list. smb_direct_flush_send_list() retains ownership of frees for messages it walks, but the calling site in post_sendmsg() was not updated to drop its own call to smb_direct_free_sendmsg(). The result is two independent free operations on the same struct smb_direct_sendmsg allocation.

Attack Vector

Exploitation requires network reachability to a Linux host running ksmbd with SMB Direct enabled and an RDMA-capable transport such as InfiniBand or RoCE. An attacker initiates an SMB Direct connection and drives the server through the message flow that triggers the dual cleanup paths. No credentials, no user interaction, and no local access are required. Successful exploitation corrupts kernel memory and can crash the host or be developed into a remote kernel code execution primitive.

No public proof-of-concept exploit has been published. Technical detail for the fix is available in the upstream commits, including Kernel Git Commit 2ba03f46 and Kernel Git Commit 84ff995a.

Detection Methods for CVE-2026-31608

Indicators of Compromise

  • Kernel oops or panic messages referencing smb_direct_free_sendmsg, smb_direct_flush_send_list, or post_sendmsg in dmesg and /var/log/kern.log.
  • SLUB/SLAB allocator warnings such as double free or corruption, kernel BUG at mm/slub.c, or KASAN double-free reports on hosts running ksmbd.
  • Unexpected restarts of the ksmbd worker threads or the host itself coinciding with inbound SMB Direct connections.

Detection Strategies

  • Monitor kernel ring buffer output for crash signatures involving the ksmbd SMB Direct send path.
  • Inspect network telemetry for inbound RDMA/SMB Direct sessions on TCP/445 and associated RDMA ports from untrusted sources.
  • Verify kernel package versions against distribution advisories referencing the upstream fix commits.

Monitoring Recommendations

  • Forward kernel logs and KASAN output to a centralized logging or SIEM platform for correlation with network events.
  • Alert on repeated ksmbd module faults or RDMA transport resets that may indicate exploitation attempts.
  • Track exposure of port 445 and RDMA interfaces to untrusted networks and flag any new external exposure.

How to Mitigate CVE-2026-31608

Immediate Actions Required

  • Apply the upstream kernel patches referenced in the vendor advisories and rebuild or update affected kernel packages.
  • Disable the ksmbd module on hosts that do not require an in-kernel SMB server: modprobe -r ksmbd and blacklist it where appropriate.
  • Restrict SMB and SMB Direct access at the network layer to trusted management segments only.
  • Inventory all Linux hosts exposing ksmbd over RDMA-capable transports and prioritize them for patching.

Patch Information

The fix removes the duplicate call to smb_direct_free_sendmsg() after post_sendmsg() so that ownership of the freed message remains exclusively with smb_direct_flush_send_list(). Patches have been merged into the stable trees via the following commits: Kernel Git Commit 2ba03f46, Kernel Git Commit 6968c91f, Kernel Git Commit 830de6ee, and Kernel Git Commit 84ff995a. Consult your distribution's security tracker for backported package versions.

Workarounds

  • Unload the ksmbd kernel module on systems where it is not required for SMB file sharing.
  • Block inbound traffic to TCP/445 and RDMA listener ports from untrusted networks using host or perimeter firewalls.
  • Prefer userspace SMB servers such as Samba on hosts where the in-kernel server cannot be patched immediately.
bash
# Disable and blacklist ksmbd on systems that do not require it
sudo systemctl stop ksmbd 2>/dev/null || true
sudo modprobe -r ksmbd
echo "blacklist ksmbd" | sudo tee /etc/modprobe.d/blacklist-ksmbd.conf

# Restrict SMB exposure at the host firewall
sudo nft add rule inet filter input tcp dport 445 ip saddr != 10.0.0.0/8 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

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-415
  • Vendor Resources
  • Kernel Git Commit 2ba03f46

  • Kernel Git Commit 6968c91f

  • Kernel Git Commit 830de6ee

  • Kernel Git Commit 84ff995a
  • Related CVEs
  • CVE-2026-43328: Linux Kernel Use-After-Free Vulnerability

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

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

  • CVE-2026-43335: Linux Kernel Use-After-Free 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