Skip to main content

Linux Kernel CVE-2026-31613

| EUVDEUVD-2026-25506 HIGH
Out-of-bounds Read (CWE-125)
2026-04-24 Linux GHSA-3w37-m4pg-q585
8.1
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Connect to malicious SMB server
  2. Delivery
    Request file triggering symlink
  3. Exploit
    Receive crafted STATUS_STOPPED_ON_SYMLINK response
  4. Execution
    Trigger OOB read in symlink_data()
  5. Persist
    UTF-16 decode heap memory
  6. Impact
    Leak kernel memory via readlink(2)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires victim to initiate an SMB client connection to an attacker-controlled or compromised SMB server, specifically attempting to access a resource that triggers symlink resolution. The vulnerability is in the SMB client code path handling STATUS_STOPPED_ON_SYMLINK error responses with SMB 3.1.1 error contexts. Attack vector is network-based (AV:N) with no authentication required on the attacker's SMB server (PR:N), but mandatory user interaction (UI:R) limits automated exploitation - the victim must actively connect to the malicious share and attempt to access a symlink. Default Linux kernel configurations with SMB client support compiled or loaded as module (cifs.ko) are vulnerable when mounting external SMB shares. The attack does NOT work against SMB servers - only affects SMB client implementations. Exploitation is limited by: user must have permissions to mount SMB shares or access already-mounted shares; the specific code path requires symlink traversal attempts; and the attacker must control or intercept SMB server responses. Network-level authentication (Kerberos, NTLM) to the SMB share does not prevent exploitation as the vulnerability occurs during error response parsing after initial connection establishment.

Impact

Real-world risk is moderate despite the High CVSS score of 8.1. The CVSS vector (AV:N/AC:L/PR:N/UI:R) indicates network-accessible exploitation with low complexity but requires user interaction - specifically, a user must attempt to access a symlink on a malicious SMB share. The attack requires the attacker to control an SMB server that the victim connects to, limiting the attack surface to man-in-the-middle scenarios or deliberately connecting to attacker-controlled shares. EPSS score of 0.02% (5th percentile) suggests this vulnerability is not being actively exploited in the wild and has low attractiveness to mass-exploitation campaigns. No CISA KEV listing, indicating no confirmed active exploitation. The technical impact is significant: confidentiality breach through kernel heap memory disclosure to userspace, and potential availability impact through memory corruption. However, this is NOT a remote code execution vulnerability - the impact is limited to information disclosure and DoS. The vulnerability requires SMB client usage, which is common in enterprise environments but less so in cloud-native or containerized deployments. Priority should be moderate: apply patches during normal maintenance windows for systems that mount external SMB shares, but urgent patching is warranted for endpoints regularly connecting to untrusted SMB servers.

Exploit ScenarioDerived

An attacker operates a malicious SMB server or performs a man-in-the-middle attack on SMB traffic. A victim user attempts to access a file on the attacker-controlled share (e.g., browsing a network drive, automated backup accessing remote share, clicking a SMB link). The attacker's SMB server responds to a CREATE request with a crafted STATUS_STOPPED_ON_SYMLINK error containing manipulated ErrorDataLength values that position error context pointers near buffer boundaries. The victim's Linux kernel SMB client processes the response with insufficient bounds checking in symlink_data(), reading 1-7 bytes past the buffer end to access ErrorId and ErrorDataLength fields. Out-of-bounds heap memory is UTF-16-decoded and returned to the victim's userspace application through readlink(2), potentially exposing sensitive kernel memory contents including cryptographic keys, file paths, or other process data. If POC exploit code exists for this specific CVE is not confirmed from available data.

Act Now Prioritize within 24-48h. Why: Active threat signals + CRITICAL/HIGH severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 27, 2026

Out-of-bounds heap read in Linux kernel SMB client allows malicious SMB servers to leak kernel memory to userspace via crafted symlink error responses. When processing STATUS_STOPPED_ON_SYMLINK errors in SMB 3.1.1, inadequate bounds checking in smb2_check_message() and symlink_data() allows server-controlled ErrorDataLength values to trigger reads beyond buffer boundaries. The leaked heap bytes are UTF-16-decoded into the symlink target and exposed through readlink(2) syscalls (confidentiality impact), with potential for denial-of-service through memory corruption (availability impact). CVSS 8.1 (High) requires user interaction. EPSS score is very low at 0.02% (5th percentile), indicating minimal observed exploitation activity. Patches available in kernel versions 6.18.24, 6.19.14, and 7.0.1.

RemediationAI

Upgrade to patched Linux kernel versions: 6.18.24, 6.19.14, 7.0.1, or later stable releases that include the upstream fixes. Distribution-specific packages should be applied via package managers (apt/yum/dnf) once vendors backport the patches. Until patching is complete, implement these compensating controls: (1) Restrict SMB client connections to only trusted, authenticated SMB servers through firewall rules (ports 445/TCP, 139/TCP) - this reduces attack surface but limits functionality if untrusted share access is required. (2) Disable SMB client functionality entirely if not operationally necessary (blacklist cifs.ko kernel module) - side effect is loss of all Windows file share access. (3) Use mount options to restrict symlink traversal (nosymfollow mount option if kernel version supports it) - may break legitimate symlink functionality in shares. (4) Deploy network segmentation to isolate systems mounting external SMB shares from critical infrastructure - reduces blast radius but requires network architecture changes. The primary fix involves correcting loop bounds checks to require full context headers to fit, validating symlink header boundaries, and calculating substitute name offsets based on actual sym->PathBuffer position rather than fixed SMB2_SYMLINK_STRUCT_SIZE offset. Git commits referenced above contain the complete patch details.

Affected VersionsENISA

Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <a66ef2e7ed837325c5600f8617d5ee0a0a149fdd
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <e0dd90d14cbbf318157ea8e3fb62ee68a28655ed
Linux patch: 6.18.24
Linux patch: 6.19.14
Linux patch: 7.0.1
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <781902e069f4ecb6c3b83502f181972c1446110a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability affects the Linux kernel's CIFS/SMB client implementation, specifically the error handling path when parsing SMB2/SMB3 symlink error responses (STATUS_STOPPED_ON_SYMLINK). The SMB2 protocol uses error contexts in responses, and the kernel's symlink_data() function walks these contexts with insufficient bounds validation. The root cause is multiple buffer overflow vulnerabilities (tagged as such) where server-controlled length fields (ErrorDataLength, ErrorContextCount) are trusted without validating that subsequent reads remain within allocated memory. The vulnerable code path involves smb2_check_message(), symlink_data(), and smb2_parse_symlink_response(). The flaw manifests when ErrorDataLength positions a pointer within 1-7 bytes of the buffer end, causing the next loop iteration to read ErrorId (offset +4) and ErrorDataLength (offset 0) past the boundary. Additionally, SMB2_SYMLINK_STRUCT_SIZE calculation assumes ErrorContextCount==0, creating incorrect offset calculations when error contexts are present. Each non-matching context shifts the symlink data 8 + ALIGN(ErrorDataLength, 8) bytes deeper, causing substitute name reads to exceed iov_len boundaries.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Linux) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
SUSE HIGH
Red Hat 7.1 MEDIUM

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High

Lifecycle Timeline

4
Patch released
Apr 28, 2026 - 15:13 nvd
Patch available
CVSS changed
Apr 27, 2026 - 15:22 NVD
8.1 (HIGH)
Patch available
Apr 24, 2026 - 16:16 EUVD
CVE Published
Apr 24, 2026 - 14:42 nvd
HIGH 8.1

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

smb: client: fix OOB reads parsing symlink error response

When a CREATE returns STATUS_STOPPED_ON_SYMLINK, smb2_check_message() returns success without any length validation, leaving the symlink parsers as the only defense against an untrusted server.

symlink_data() walks SMB 3.1.1 error contexts with the loop test "p < end", but reads p->ErrorId at offset 4 and p->ErrorDataLength at offset

  1. When the server-controlled ErrorDataLength advances p to within 1-7

bytes of end, the next iteration will read past it. When the matching context is found, sym->SymLinkErrorTag is read at offset 4 from p->ErrorContextData with no check that the symlink header itself fits.

smb2_parse_symlink_response() then bounds-checks the substitute name using SMB2_SYMLINK_STRUCT_SIZE as the offset of PathBuffer from iov_base. That value is computed as sizeof(smb2_err_rsp) + sizeof(smb2_symlink_err_rsp), which is correct only when ErrorContextCount == 0.

With at least one error context the symlink data sits 8 bytes deeper, and each skipped non-matching context shifts it further by 8 + ALIGN(ErrorDataLength, 8). The check is too short, allowing the substitute name read to run past iov_len. The out-of-bound heap bytes are UTF-16-decoded into the symlink target and returned to userspace via readlink(2).

Fix this all up by making the loops test require the full context header to fit, rejecting sym if its header runs past end, and bound the substitute name against the actual position of sym->PathBuffer rather than a fixed offset.

Because sub_offs and sub_len are 16bits, the pointer math will not overflow here with the new greater-than.

Executive ViewAI

Why It Matters

A high-severity out-of-bounds memory read vulnerability in the Linux kernel SMB client (CVE-2026-31613) allows malicious SMB servers to leak sensitive kernel memory to unprivileged users through crafted symlink responses. Organizations with Linux systems accessing SMB shares face potential data exposure and denial-of-service risks; immediate patching is critical for systems in untrusted network environments or connected to external SMB services.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not feasible: (1) Restrict SMB client usage to trusted, internal SMB servers only via firewall rules and host-based access controls; (2) Disable SMB 3.1.1 support where possible and enforce older, less-affected protocol versions if operationally feasible; (3) Monitor kernel logs for abnormal memory access patterns and readlink() syscall anomalies; (4) Apply principle of least privilege to limit unprivileged user access to SMB mounts.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat Yes
Deciding rule
Active threat signals + CRITICAL/HIGH severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: +10
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

Threat IntelligenceMISP

CISA Advisories
Sources: CISA (public domain)

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy