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
    • 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-2026-31613

CVE-2026-31613: Linux Kernel Buffer Overflow Vulnerability

CVE-2026-31613 is a buffer overflow vulnerability in the Linux kernel affecting SMB client symlink parsing that enables out-of-bounds reads. This article covers technical details, affected versions, impact, and mitigation.

Published: April 30, 2026

CVE-2026-31613 Overview

CVE-2026-31613 is an Out-of-Bounds Read vulnerability in the Linux kernel's SMB client implementation. The flaw exists in the symlink error response parsing logic, where insufficient length validation in smb2_check_message() allows a malicious or compromised SMB server to trigger out-of-bounds heap reads. When a CREATE request returns STATUS_STOPPED_ON_SYMLINK, the kernel fails to properly validate response lengths, potentially leaking sensitive heap memory contents back to userspace via the readlink(2) system call.

Critical Impact

A malicious SMB server can exploit this vulnerability to leak kernel heap memory to unprivileged users. The leaked data is UTF-16 decoded and returned through readlink(), potentially exposing sensitive information including credentials, cryptographic keys, or other security-critical data from kernel memory.

Affected Products

  • Linux Kernel (multiple versions with SMB client support)
  • Systems mounting SMB/CIFS shares from untrusted servers
  • Enterprise environments with network file sharing configurations

Discovery Timeline

  • 2026-04-24 - CVE CVE-2026-31613 published to NVD
  • 2026-04-28 - Last updated in NVD database

Technical Details for CVE-2026-31613

Vulnerability Analysis

The vulnerability exists in the SMB 3.1.1 client implementation, specifically in how the kernel parses error context data when processing symlink error responses. When smb2_check_message() processes a STATUS_STOPPED_ON_SYMLINK response, it returns success without performing adequate length validation on the error response structure. This places the entire burden of security validation on the symlink parsers, which also contain flaws.

The symlink_data() function walks SMB 3.1.1 error contexts using a loop test p < end, but this check is insufficient. The function reads p->ErrorId at offset 4 and p->ErrorDataLength at offset 0. When a server-controlled ErrorDataLength value advances the pointer p to within 1-7 bytes of end, the next loop iteration reads past the allocated buffer boundary.

Furthermore, when a matching error context is found, sym->SymLinkErrorTag is read at offset 4 from p->ErrorContextData without verifying that the symlink header structure fits within the remaining buffer space. This allows an attacker controlling the server to craft responses that trigger out-of-bounds reads.

The smb2_parse_symlink_response() function compounds the issue by using SMB2_SYMLINK_STRUCT_SIZE (computed as sizeof(smb2_err_rsp) + sizeof(smb2_symlink_err_rsp)) as the offset for bounds-checking the substitute name. This calculation is only correct when ErrorContextCount == 0. With one or more error contexts present, the actual symlink data sits 8 bytes deeper, plus an additional 8 + ALIGN(ErrorDataLength, 8) bytes for each skipped non-matching context. This incorrect offset calculation allows the substitute name read to exceed iov_len, causing heap bytes to be read out-of-bounds, UTF-16 decoded, and returned to userspace.

Root Cause

The root cause is a combination of missing and incorrect boundary validation in the SMB client symlink error parsing code:

  1. Insufficient loop termination check: The loop test p < end does not ensure the full context header (8 bytes) fits before reading structure fields
  2. Missing symlink header validation: No check verifies that sym->SymLinkErrorTag and the symlink header fit within the remaining buffer
  3. Incorrect offset calculation: The bounds check for substitute name uses a fixed offset that doesn't account for error context headers, resulting in an undersized boundary check

Attack Vector

This vulnerability is exploitable over the network by a malicious SMB server. An attacker must either operate a rogue SMB server or compromise an existing one that the victim connects to. The attack flow is:

  1. Victim system mounts an SMB share from the attacker-controlled server
  2. A user or application on the victim system attempts to access a path that triggers a symlink resolution
  3. The malicious server responds with a crafted STATUS_STOPPED_ON_SYMLINK error containing malformed error context structures
  4. The Linux kernel's SMB client parses the response, reading past allocated buffer boundaries
  5. Out-of-bounds heap data is UTF-16 decoded and returned to userspace via readlink(2)

The attacker can potentially extract sensitive kernel heap contents by repeatedly triggering this condition and analyzing the returned symlink target strings. User interaction is required (mounting an SMB share or accessing files), but no authentication to the server is required from the attacker's perspective.

Detection Methods for CVE-2026-31613

Indicators of Compromise

  • Anomalous readlink() system calls returning unusually long or malformed symlink targets from SMB-mounted filesystems
  • Kernel log messages indicating SMB protocol errors or memory access violations during symlink resolution
  • Unexpected network traffic patterns with SMB servers responding with frequent STATUS_STOPPED_ON_SYMLINK errors
  • Memory corruption detection alerts (KASAN) indicating out-of-bounds reads in SMB client code paths

Detection Strategies

  • Deploy kernel memory sanitizers (KASAN) in development and testing environments to detect out-of-bounds access patterns
  • Monitor SMB client operations for unusual error response handling, particularly around symlink operations
  • Implement network-level inspection for anomalous SMB error responses with crafted ErrorDataLength values
  • Configure auditd rules to log readlink() operations on CIFS/SMB mounted filesystems

Monitoring Recommendations

  • Enable kernel tracing for SMB/CIFS operations to capture symlink resolution events and associated error responses
  • Deploy endpoint detection and response (EDR) solutions capable of monitoring kernel-level memory access patterns
  • Establish baselines for normal SMB traffic patterns and alert on deviations in error response frequencies
  • Monitor for signs of information leakage through symlink resolution paths

How to Mitigate CVE-2026-31613

Immediate Actions Required

  • Apply the latest kernel patches from Linux kernel stable branches immediately
  • Audit all SMB/CIFS mount configurations and assess trust levels of connected servers
  • Consider temporarily unmounting shares from untrusted or internet-facing SMB servers until patches are applied
  • Enable KASAN in test environments to detect exploitation attempts

Patch Information

The vulnerability has been addressed in multiple kernel stable branches. The fix ensures that loop tests require the full context header to fit before processing, rejects symlink structures whose headers extend past the buffer end, and bounds-checks substitute names against the actual position of sym->PathBuffer rather than using an incorrect fixed offset.

Apply patches from the following kernel commits:

  • Kernel commit 3df690bba28e
  • Kernel commit 781902e069f4
  • Kernel commit a66ef2e7ed83
  • Kernel commit e0dd90d14cbb

Workarounds

  • Unmount SMB shares from untrusted or potentially compromised servers until the kernel can be patched
  • Use VPN or network segmentation to limit SMB server exposure to trusted network segments only
  • Configure firewall rules to restrict SMB traffic to known, trusted server IP addresses
  • Disable SMB/CIFS mounting entirely if not required for operations until patches are deployed
bash
# Temporarily unmount suspicious SMB shares
umount -t cifs /mnt/untrusted_share

# Block SMB traffic from untrusted sources (example iptables rule)
iptables -A INPUT -p tcp --dport 445 -s ! trusted_network/24 -j DROP

# Verify current kernel version and plan upgrade
uname -r

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

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.05%

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

  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Linux Kernel Commit Update
  • Related CVEs
  • CVE-2026-43490: Linux Kernel ksmbd Buffer Overflow Flaw

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

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

  • CVE-2026-43341: Linux Kernel Buffer Overflow Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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