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

CVE-2023-38426: Linux Kernel Buffer Overflow Vulnerability

CVE-2023-38426 is a buffer overflow flaw in the Linux kernel's ksmbd component that triggers an out-of-bounds read. This article covers the technical details, affected kernel versions, security impact, and mitigation strategies.

Published: February 4, 2026

CVE-2023-38426 Overview

CVE-2023-38426 is an out-of-bounds read vulnerability discovered in the Linux kernel's ksmbd (kernel SMB server) component. The vulnerability exists in the smb2_find_context_vals function when processing SMB2 create context values. When a create_context's name_len field is larger than the expected tag length, the function reads beyond the allocated buffer boundaries, potentially exposing sensitive kernel memory or causing system instability.

The ksmbd module provides in-kernel SMB3 file server functionality, enabling Linux systems to serve files using the SMB protocol without userspace daemons. This vulnerability affects Linux kernel versions prior to 6.3.4 and poses significant risks to systems with ksmbd enabled and exposed to untrusted networks.

Critical Impact

Remote attackers can exploit this vulnerability over the network without authentication to read sensitive kernel memory or cause denial of service conditions on affected Linux systems running ksmbd.

Affected Products

  • Linux Kernel versions before 6.3.4
  • NetApp SolidFire & HCI Management Node
  • NetApp SolidFire & HCI Storage Node
  • NetApp H300s, H410s, H500s, H700s Hardware Appliances

Discovery Timeline

  • 2023-07-18 - CVE-2023-38426 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-38426

Vulnerability Analysis

This vulnerability is classified as CWE-125 (Out-of-Bounds Read), affecting the ksmbd kernel module's SMB2 protocol handling. The flaw resides in how the smb2_find_context_vals function processes create context structures during SMB2 session establishment.

When an SMB2 create request contains a malformed create context with a name_len value exceeding the actual tag length, the function fails to properly validate these boundaries before performing memory read operations. This allows an attacker to trigger reads beyond the intended buffer, potentially accessing adjacent kernel memory regions.

The vulnerability can be exploited remotely over the network without requiring authentication, as the vulnerable code path can be reached during the initial SMB2 negotiation and session setup phases. This makes it particularly dangerous for systems with ksmbd exposed to untrusted networks.

Root Cause

The root cause stems from insufficient input validation in the smb2_find_context_vals function within the ksmbd module. The function processes SMB2 create context values by iterating through context entries and comparing tag names. However, when the name_len field in a create context structure exceeds the expected tag length, the comparison logic reads beyond the buffer boundaries without proper bounds checking.

The fix implemented in commit 02f76c401d17e409ed45bf7887148fcc22c93c85 adds proper validation to ensure that the name_len field does not exceed the tag length before performing memory comparisons, preventing the out-of-bounds read condition.

Attack Vector

The attack vector is network-based and requires no user interaction or prior authentication. An attacker can craft malicious SMB2 packets containing create context structures with oversized name_len values and send them to a vulnerable ksmbd server.

The exploitation flow involves:

  1. Establishing a network connection to an exposed ksmbd service (typically port 445)
  2. Initiating SMB2 protocol negotiation
  3. Sending a crafted SMB2 CREATE request with a malformed create context
  4. The name_len field is set to a value larger than the associated tag
  5. The vulnerable smb2_find_context_vals function processes the malformed context
  6. Memory beyond the intended buffer is read, causing information disclosure or denial of service

The vulnerability mechanism exists in the boundary validation logic within ksmbd's create context processing. When the name_len field exceeds the expected tag length, the kernel reads beyond allocated memory boundaries. For detailed technical analysis, see the Linux kernel commit.

Detection Methods for CVE-2023-38426

Indicators of Compromise

  • Unexpected ksmbd service crashes or kernel panics on systems with SMB3 server functionality enabled
  • Anomalous SMB2 CREATE requests with unusual create context structures in network traffic logs
  • Kernel log entries indicating memory access violations in ksmbd-related functions
  • Elevated network traffic to port 445 from untrusted sources targeting Linux systems

Detection Strategies

  • Monitor network traffic for malformed SMB2 packets with abnormally large name_len values in create context structures
  • Deploy network intrusion detection signatures targeting SMB2 protocol anomalies
  • Enable kernel crash dump analysis to identify exploitation attempts resulting in system instability
  • Implement SentinelOne Singularity platform for real-time kernel-level threat detection and behavioral analysis

Monitoring Recommendations

  • Configure system logging to capture ksmbd module events and errors
  • Enable auditd rules to monitor access to ksmbd-related kernel functions
  • Deploy network monitoring to track SMB traffic patterns and identify suspicious connection attempts
  • Use SentinelOne's Storyline technology to correlate kernel events with network activity for comprehensive threat visibility

How to Mitigate CVE-2023-38426

Immediate Actions Required

  • Upgrade Linux kernel to version 6.3.4 or later immediately on all affected systems
  • If patching is not immediately possible, disable ksmbd module using rmmod ksmbd or blacklist it in /etc/modprobe.d/
  • Implement network segmentation to restrict access to SMB services from untrusted networks
  • Apply firewall rules to limit port 445 access to authorized clients only

Patch Information

The vulnerability has been addressed in Linux kernel version 6.3.4. The fix is contained in commit 02f76c401d17e409ed45bf7887148fcc22c93c85, which adds proper boundary validation to the smb2_find_context_vals function.

Organizations should apply the patch by:

  • Upgrading to Linux kernel 6.3.4 or later through their distribution's package manager
  • For NetApp appliances, following the guidance in NetApp Security Advisory ntap-20230915-0010
  • Reviewing the Linux Kernel ChangeLog 6.3.4 for complete details

Workarounds

  • Disable the ksmbd kernel module if SMB server functionality is not required
  • Use userspace Samba implementations instead of ksmbd for SMB file sharing
  • Implement strict network access controls to limit exposure of SMB services
  • Deploy application-layer firewalls capable of inspecting and filtering malformed SMB2 packets
bash
# Disable ksmbd module
sudo rmmod ksmbd

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

# Restrict SMB port access (example using iptables)
sudo iptables -A INPUT -p tcp --dport 445 -s trusted_network/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
  • TypeBuffer Overflow

  • Vendor/TechLinux Kernel

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Technical References
  • Linux Kernel ChangeLog 6.3.4

  • NetApp Security Advisory ntap-20230915-0010
  • Vendor Resources
  • Linux Commit FS KSMBD
  • Related CVEs
  • CVE-2026-23407: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-23406: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-23397: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-23323: Linux Kernel Buffer Overflow Vulnerability
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