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
    • 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-2023-3866

CVE-2023-3866: Linux Kernel Privilege Escalation Flaw

CVE-2023-3866 is a privilege escalation vulnerability in Linux Kernel's ksmbd that allows NULL pointer dereferencing through improper session validation. This article covers technical details, affected versions, and mitigation.

Published: February 4, 2026

CVE-2023-3866 Overview

CVE-2023-3866 is a Null Pointer Dereference vulnerability discovered in the Linux kernel's ksmbd (kernel SMB server daemon) component. The vulnerability exists in the handling of compound SMB2 requests, where insufficient validation of session ID and tree ID can lead to a denial of service condition.

When processing compound requests, if the first operation is an SMB2 ECHO request, ksmbd bypasses session and tree validation. This causes work->sess and work->tcon to remain NULL. If a subsequent request in the compound sequence attempts to access these NULL pointers, it triggers a kernel NULL pointer dereference error, resulting in a system crash.

Critical Impact

Local attackers with low privileges can trigger a kernel crash through specially crafted SMB2 compound requests, causing denial of service on affected Linux systems running ksmbd.

Affected Products

  • Linux Kernel (multiple versions)
  • Linux Kernel 6.4-rc1 through 6.4-rc7
  • Systems running ksmbd SMB server daemon

Discovery Timeline

  • August 16, 2025 - CVE CVE-2023-3866 published to NVD
  • November 18, 2025 - Last updated in NVD database

Technical Details for CVE-2023-3866

Vulnerability Analysis

The vulnerability resides in the ksmbd component, which implements an in-kernel SMB server for the Linux kernel. The flaw is classified as CWE-476 (NULL Pointer Dereference), occurring during the processing of compound SMB2 requests.

In the SMB2 protocol, compound requests allow multiple operations to be batched together in a single network transaction. The ksmbd implementation has special handling for SMB2 ECHO requests, which are simple keep-alive messages that don't require session or tree context.

The issue arises because when an SMB2 ECHO request is the first operation in a compound request, ksmbd skips the standard session and tree validation. However, subsequent operations in the same compound request may still attempt to access the session (work->sess) or tree connection (work->tcon) structures. Since these were never initialized due to the ECHO bypass, they remain NULL pointers, and any access results in a kernel crash.

This vulnerability requires local access to the system and low privileges to exploit, but can cause complete system unavailability through kernel panic.

Root Cause

The root cause is missing validation logic in the compound request handler. The ksmbd code fails to ensure that session and tree connection structures are properly validated for all operations in a compound request sequence, not just the first operation. When the first operation is an SMB2 ECHO (which legitimately doesn't require these structures), the validation is bypassed entirely, leaving subsequent operations vulnerable to NULL pointer dereference.

Attack Vector

The attack vector is local, requiring an authenticated attacker with low-level privileges to send specially crafted SMB2 compound requests to the ksmbd server. The attack proceeds as follows:

  1. The attacker constructs an SMB2 compound request with an ECHO request as the first operation
  2. Subsequent operations in the compound require session or tree connection context
  3. When ksmbd processes the compound, it bypasses validation for the ECHO request
  4. Processing of subsequent operations attempts to dereference NULL work->sess or work->tcon pointers
  5. The kernel crashes with a NULL pointer dereference, causing denial of service

The vulnerability does not allow code execution or information disclosure, but can be repeatedly exploited to keep a system unavailable.

Detection Methods for CVE-2023-3866

Indicators of Compromise

  • Kernel panic messages referencing ksmbd or SMB2 compound request handling
  • System crashes or unexpected reboots on systems running ksmbd
  • NULL pointer dereference errors in kernel logs related to work->sess or work->tcon
  • Unusual patterns of SMB2 ECHO requests in compound operations

Detection Strategies

  • Monitor kernel logs for NULL pointer dereference errors in ksmbd module
  • Implement network monitoring to detect unusual SMB2 compound request patterns
  • Configure crash dump analysis to identify ksmbd-related kernel panics
  • Deploy endpoint detection solutions capable of identifying kernel exploit attempts

Monitoring Recommendations

  • Enable detailed ksmbd logging to capture compound request processing events
  • Set up automated alerts for kernel panic events on systems running SMB file sharing
  • Implement network intrusion detection rules for malformed SMB2 compound requests
  • Monitor system uptime and availability for unexpected restart patterns

How to Mitigate CVE-2023-3866

Immediate Actions Required

  • Update to a patched version of the Linux kernel containing the session/tree ID validation fix
  • Consider disabling ksmbd if not required for business operations
  • Restrict network access to SMB services to trusted hosts only
  • Monitor affected systems for signs of exploitation attempts

Patch Information

The Linux kernel maintainers have released patches to address this vulnerability. The fix adds proper validation of session ID and tree ID for all operations in compound requests, ensuring that requests requiring session or tree context are properly validated regardless of preceding operations.

Patches are available through the following kernel Git commits:

  • Kernel Git Commit 5005bcb
  • Kernel Git Commit 854156d
  • Kernel Git Commit d1066c1
  • Kernel Git Commit eb94740

Workarounds

  • Disable the ksmbd kernel module if in-kernel SMB server functionality is not required: modprobe -r ksmbd
  • Use Samba userspace daemon as an alternative SMB server implementation
  • Implement firewall rules to restrict SMB port access (ports 445, 139) to trusted networks only
  • Apply kernel live patching solutions if available for your distribution
bash
# Disable ksmbd module
sudo modprobe -r ksmbd

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

# Restrict SMB access via firewall (iptables example)
sudo iptables -A INPUT -p tcp --dport 445 -s 192.168.1.0/24 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 445 -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

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.01%

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

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update
  • Related CVEs
  • CVE-2026-23417: Linux Kernel Privilege Escalation Flaw

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

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

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