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

CVE-2023-38429: Linux Kernel Buffer Overflow Vulnerability

CVE-2023-38429 is a buffer overflow flaw in the Linux kernel's ksmbd component that causes an off-by-one error leading to out-of-bounds access. This article covers the technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2023-38429 Overview

CVE-2023-38429 is a critical off-by-one error vulnerability in the Linux kernel's ksmbd (in-kernel SMB server) component. The flaw exists in fs/ksmbd/connection.c where an off-by-one error in memory allocation within the ksmbd_smb2_check_message function may lead to out-of-bounds memory access. This vulnerability affects Linux kernel versions prior to 6.3.4 and can be exploited remotely without authentication.

Critical Impact

This out-of-bounds access vulnerability in the Linux kernel's ksmbd component can be exploited over the network without authentication, potentially allowing attackers to compromise system confidentiality, integrity, and availability.

Affected Products

  • Linux Kernel versions before 6.3.4
  • Systems running ksmbd (in-kernel SMB server)
  • NetApp products using affected Linux kernel versions

Discovery Timeline

  • 2023-07-18 - CVE-2023-38429 published to NVD
  • 2025-01-03 - Last updated in NVD database

Technical Details for CVE-2023-38429

Vulnerability Analysis

This vulnerability is classified as CWE-193 (Off-by-one Error), a common memory corruption issue that occurs when a loop iterates one time too many or too few, or when off-by-one calculations result in incorrect buffer sizes. In the context of ksmbd, the off-by-one error occurs during memory allocation operations related to SMB2 message checking.

The ksmbd module is the in-kernel implementation of the SMB3 file sharing protocol in Linux, designed to provide high-performance SMB services directly within the kernel. The vulnerability in ksmbd_smb2_check_message allows for out-of-bounds memory access, which can potentially be leveraged by remote attackers to read or write adjacent memory regions.

Since this vulnerability can be exploited remotely over the network without requiring authentication or user interaction, systems exposing ksmbd services to untrusted networks are at significant risk. Successful exploitation could lead to information disclosure, denial of service, or potentially remote code execution depending on the memory layout and adjacent data structures.

Root Cause

The root cause is an off-by-one error in the memory allocation logic within fs/ksmbd/connection.c. When the ksmbd_smb2_check_message function processes SMB2 messages, it performs a buffer size calculation that is off by one byte. This miscalculation results in an undersized buffer allocation, causing subsequent operations to access memory beyond the allocated boundary.

Attack Vector

The attack vector is network-based, targeting systems running the ksmbd SMB server. An attacker can send specially crafted SMB2 messages to a vulnerable system to trigger the off-by-one condition. The vulnerability can be exploited without any privileges or user interaction, making it particularly dangerous for internet-facing or exposed SMB services.

The exploitation flow involves:

  1. Attacker identifies a Linux system running ksmbd with an exposed SMB port
  2. Attacker crafts malicious SMB2 messages designed to trigger the off-by-one allocation error
  3. The vulnerable ksmbd_smb2_check_message function allocates an undersized buffer
  4. Subsequent memory operations access data beyond the allocated boundary
  5. Depending on memory layout, this can result in information disclosure, memory corruption, or system crash

Detection Methods for CVE-2023-38429

Indicators of Compromise

  • Unexpected crashes or kernel panics related to ksmbd or SMB services
  • Anomalous SMB2 traffic patterns or malformed SMB2 requests in network logs
  • Memory corruption indicators in kernel logs referencing fs/ksmbd/connection.c
  • Unusual system behavior following SMB connection attempts from unknown sources

Detection Strategies

  • Monitor kernel logs for ksmbd-related errors or memory access violations using dmesg and journalctl
  • Deploy network intrusion detection systems (IDS) with rules to detect malformed SMB2 packets
  • Implement file integrity monitoring on critical kernel modules and ksmbd configuration
  • Use SentinelOne's kernel-level monitoring to detect anomalous memory access patterns in ksmbd

Monitoring Recommendations

  • Enable enhanced logging for ksmbd services to capture connection and message processing events
  • Configure network monitoring to alert on SMB traffic from untrusted sources
  • Regularly review system logs for signs of exploitation attempts or ksmbd instability
  • Implement SentinelOne Singularity platform for real-time kernel threat detection and response

How to Mitigate CVE-2023-38429

Immediate Actions Required

  • Upgrade the Linux kernel to version 6.3.4 or later immediately
  • If patching is not immediately possible, disable ksmbd services on affected systems
  • Restrict network access to SMB ports (445/TCP) using firewall rules to trusted networks only
  • Review and audit systems for any signs of compromise before and after patching

Patch Information

The vulnerability has been addressed in Linux kernel version 6.3.4. The fix is documented in commit 443d61d1fa9faa60ef925513d83742902390100f in the upstream Linux kernel repository. Organizations should apply this patch by upgrading to kernel version 6.3.4 or later.

For detailed patch information, refer to:

  • Linux Kernel ChangeLog 6.3.4
  • Linux Commit 443d61d
  • NetApp Security Advisory NTAP-20250103-0009

Workarounds

  • Disable ksmbd kernel module using modprobe -r ksmbd if SMB services are not required
  • Use Samba userspace implementation as an alternative to ksmbd until patching is complete
  • Implement network segmentation to isolate systems running ksmbd from untrusted networks
  • Deploy application-layer firewalls to filter and inspect SMB traffic
bash
# Disable ksmbd module and prevent loading at boot
sudo modprobe -r ksmbd
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 10.0.0.0/8 -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.8

  • EPSS Probability0.05%

  • 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-193
  • Technical References
  • Linux Kernel ChangeLog 6.3.4

  • NetApp Security Advisory NTAP-20250103-0009
  • Vendor Resources
  • Linux Commit 443d61d
  • Related CVEs
  • CVE-2026-23448: Linux Kernel Buffer Overflow Vulnerability

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

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

  • CVE-2026-31402: 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