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-2023-38431

CVE-2023-38431: Linux Kernel Buffer Overflow Vulnerability

CVE-2023-38431 is a buffer overflow flaw in Linux Kernel's ksmbd component that causes out-of-bounds reads due to improper validation. This article covers technical details, affected versions, impact, and mitigation.

Published: February 4, 2026

CVE-2023-38431 Overview

An out-of-bounds read vulnerability was discovered in the Linux kernel before version 6.3.8. The vulnerability exists in fs/smb/server/connection.c within the ksmbd (kernel SMB server) component. The flaw occurs because ksmbd does not validate the relationship between the NetBIOS header's length field and the SMB header sizes via pdu_size in the ksmbd_conn_handler_loop function, allowing attackers to trigger an out-of-bounds read condition.

Critical Impact

This vulnerability enables remote attackers to read sensitive kernel memory contents or cause a denial of service condition without authentication over the network.

Affected Products

  • Linux Kernel (versions before 6.3.8)
  • NetApp SolidFire & HCI Management Node
  • NetApp H300s
  • NetApp H410s
  • NetApp H500s
  • NetApp H700s

Discovery Timeline

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

Technical Details for CVE-2023-38431

Vulnerability Analysis

This vulnerability is classified as CWE-125 (Out-of-bounds Read). The issue lies in the ksmbd connection handler where insufficient validation occurs between the NetBIOS header length field and actual SMB header sizes. When processing incoming SMB protocol data units (PDUs), the ksmbd_conn_handler_loop function uses the pdu_size value derived from the NetBIOS header without properly verifying that it corresponds to the actual SMB packet structure.

The ksmbd component is the in-kernel SMB3 server implementation introduced in Linux kernel 5.15 to provide better performance than user-space Samba implementations. Due to its kernel-level operation, vulnerabilities in ksmbd can have severe consequences including kernel memory disclosure and system crashes.

Root Cause

The root cause of this vulnerability is improper input validation in the SMB protocol handling code. Specifically, the pdu_size value extracted from the NetBIOS header is trusted without verifying that it accurately reflects the boundaries of the SMB data structure. This allows an attacker to craft malicious SMB packets where the NetBIOS length field specifies a size larger than the actual SMB data, causing the kernel to read beyond the allocated buffer boundaries.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Establishing a connection to a system running the ksmbd service (typically on TCP port 445)
  2. Sending a specially crafted SMB packet with a manipulated NetBIOS header length field
  3. The kernel processes the malformed packet and reads memory beyond the intended buffer boundaries
  4. This can result in information disclosure of sensitive kernel memory or a kernel panic causing denial of service

The vulnerability is particularly concerning because ksmbd operates in kernel space, meaning successful exploitation could expose kernel memory contents including credentials, encryption keys, or other sensitive data structures.

Detection Methods for CVE-2023-38431

Indicators of Compromise

  • Unusual SMB traffic patterns with malformed NetBIOS headers on port 445
  • Kernel crash logs or panic events related to ksmbd or SMB server operations
  • Memory access violations logged in kernel ring buffer (dmesg) referencing fs/smb/server/connection.c
  • Unexpected system reboots on servers running ksmbd services

Detection Strategies

  • Monitor network traffic for anomalous SMB packets with mismatched header length values
  • Implement intrusion detection rules to identify malformed SMB protocol communications
  • Review kernel logs for out-of-bounds read warnings or ksmbd-related errors
  • Deploy endpoint detection solutions capable of monitoring kernel-level memory access patterns

Monitoring Recommendations

  • Enable detailed logging for ksmbd service operations where available
  • Monitor for repeated connection attempts to SMB services from unusual sources
  • Set up alerts for kernel panic events or unexpected ksmbd service terminations
  • Implement network segmentation to restrict SMB service access to trusted hosts only

How to Mitigate CVE-2023-38431

Immediate Actions Required

  • Update the Linux kernel to version 6.3.8 or later immediately
  • If immediate patching is not possible, disable ksmbd service if not required
  • Restrict network access to SMB services using firewall rules
  • Monitor systems for signs of exploitation attempts

Patch Information

The vulnerability has been addressed in Linux kernel version 6.3.8. The fix is available in commit 368ba06881c395f1c9a7ba22203cf8d78b4addc0 which adds proper validation of the relationship between the NetBIOS header length and SMB header sizes. Organizations should reference the Linux Kernel ChangeLog 6.3.8 for complete patch details.

For NetApp products, refer to the NetApp Security Advisory ntap-20230824-0011 for vendor-specific patching guidance.

The kernel commit implementing the fix can be reviewed at the Linux Kernel Git Repository.

Workarounds

  • Disable the ksmbd kernel module if the in-kernel SMB server is not required: modprobe -r ksmbd
  • Use firewall rules to restrict access to TCP port 445 from untrusted networks
  • Consider using user-space Samba instead of ksmbd until patching is complete
  • Implement network-level IDS/IPS rules to detect and block malformed SMB packets
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

# Restrict SMB access via iptables (allow only trusted network)
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
  • TypeBuffer Overflow

  • Vendor/TechLinux Kernel

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.07%

  • 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.8

  • NetApp Security Advisory ntap-20230824-0011
  • Vendor Resources
  • Linux Kernel Commit 368ba06
  • Related CVEs
  • CVE-2026-31449: Linux Kernel Buffer Overflow Vulnerability

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

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

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