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

CVE-2023-38427: Linux Kernel Buffer Overflow Vulnerability

CVE-2023-38427 is a buffer overflow flaw in the Linux kernel's ksmbd module that causes integer underflow and out-of-bounds reads. This article covers technical details, affected versions, security impact, and mitigation.

Published: February 4, 2026

CVE-2023-38427 Overview

CVE-2023-38427 is a critical vulnerability discovered in the Linux kernel affecting the ksmbd (in-kernel SMB server) component. The flaw exists in the deassemble_neg_contexts function within fs/smb/server/smb2pdu.c, where an integer underflow condition leads to an out-of-bounds read. This vulnerability affects Linux kernel versions prior to 6.3.8 and can be exploited remotely over the network without requiring authentication or user interaction.

Critical Impact

Remote attackers can exploit this integer underflow vulnerability to read sensitive kernel memory, potentially leading to information disclosure, denial of service, or further exploitation for arbitrary code execution in kernel context.

Affected Products

  • Linux Kernel (versions prior to 6.3.8)
  • NetApp H300S
  • NetApp H410S
  • NetApp H500S
  • NetApp H700S

Discovery Timeline

  • 2023-07-18 - CVE-2023-38427 published to NVD
  • 2025-05-05 - Last updated in NVD database

Technical Details for CVE-2023-38427

Vulnerability Analysis

The vulnerability resides in the ksmbd module, which provides in-kernel SMB3 server functionality for the Linux kernel. The deassemble_neg_contexts function in fs/smb/server/smb2pdu.c is responsible for parsing SMB2 negotiation contexts during the SMB connection establishment phase. Due to improper arithmetic operations when calculating buffer boundaries, an integer underflow can occur when processing maliciously crafted SMB2 negotiation requests.

When the underflow occurs, the resulting value wraps around to a large positive number, causing subsequent memory read operations to access memory beyond the intended buffer boundaries. This out-of-bounds read (CWE-125) can expose sensitive kernel memory contents to attackers and potentially crash the system.

Root Cause

The root cause of this vulnerability is insufficient validation of length fields during SMB2 negotiation context parsing. The deassemble_neg_contexts function performs arithmetic operations on user-controlled length values without properly checking for integer underflow conditions. When a malicious SMB client sends crafted negotiation packets with specially calculated length values, the subtraction operation results in an underflow, bypassing intended boundary checks and enabling out-of-bounds memory access.

Attack Vector

This vulnerability is exploitable over the network by any unauthenticated attacker who can establish a TCP connection to a system running the ksmbd service. The attack does not require any user interaction or prior privileges on the target system. An attacker can craft malicious SMB2 negotiation requests that trigger the integer underflow condition during the initial connection handshake phase.

The attack flow involves:

  1. Establishing a TCP connection to the target SMB service (typically port 445)
  2. Sending a crafted SMB2 NEGOTIATE request with manipulated context length fields
  3. Triggering the integer underflow in deassemble_neg_contexts
  4. Causing an out-of-bounds read that may leak kernel memory or crash the system

The vulnerability manifests during SMB2 negotiation context parsing in the deassemble_neg_contexts function. The flaw involves improper handling of length calculations that can result in integer underflow when processing maliciously crafted SMB packets. For technical details, refer to the Linux Kernel Commit f1a411873c.

Detection Methods for CVE-2023-38427

Indicators of Compromise

  • Unusual SMB traffic patterns with malformed negotiation contexts on port 445
  • Kernel crash dumps or oops messages referencing deassemble_neg_contexts or ksmbd functions
  • Unexpected kernel memory access violations in ksmbd module
  • System instability or unexpected reboots on systems running ksmbd service

Detection Strategies

  • Monitor kernel logs for ksmbd-related errors, crashes, or out-of-bounds access warnings
  • Implement network intrusion detection rules to identify malformed SMB2 NEGOTIATE packets
  • Deploy endpoint detection solutions capable of monitoring kernel module behavior
  • Use memory sanitizers (KASAN) in development/testing environments to detect out-of-bounds reads

Monitoring Recommendations

  • Enable ksmbd debug logging to capture detailed SMB protocol parsing information
  • Configure kernel crash dump collection for forensic analysis of potential exploitation attempts
  • Monitor network traffic for anomalous SMB2 negotiation patterns from untrusted sources
  • Implement alerting for kernel oops or panic events involving the ksmbd module

How to Mitigate CVE-2023-38427

Immediate Actions Required

  • Update Linux kernel to version 6.3.8 or later immediately
  • If immediate patching is not possible, disable the ksmbd kernel module using modprobe -r ksmbd
  • Restrict network access to SMB services using firewall rules to trusted networks only
  • Consider using userspace Samba instead of ksmbd if the in-kernel SMB server is not essential

Patch Information

The vulnerability has been addressed in Linux kernel version 6.3.8. The fix is documented in the Linux Kernel ChangeLog 6.3.8 and the specific commit can be found at Linux Kernel Commit f1a411873c. NetApp users should consult the NetApp Security Advisory NTAP-20230824-0011 for firmware updates.

Workarounds

  • Disable ksmbd module if not actively required: modprobe -r ksmbd && echo "blacklist ksmbd" >> /etc/modprobe.d/blacklist.conf
  • Implement network segmentation to limit SMB service exposure to trusted networks only
  • Use iptables/nftables to restrict port 445 access to authorized clients
  • Switch to userspace Samba server as an alternative to the in-kernel ksmbd implementation
bash
# Disable ksmbd module and prevent auto-loading
modprobe -r ksmbd
echo "blacklist ksmbd" >> /etc/modprobe.d/blacklist.conf

# Restrict SMB access to trusted network (example)
iptables -A INPUT -p tcp --dport 445 -s 192.168.1.0/24 -j ACCEPT
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.09%

  • 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-125
  • Technical References
  • Linux Kernel ChangeLog 6.3.8

  • NetApp Security Advisory NTAP-20230824-0011
  • Vendor Resources
  • Linux Kernel Commit f1a411873c
  • 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