Skip to main content

ksmbd CVE-2026-31612

| EUVDEUVD-2026-25505 HIGH
2026-04-24 Linux GHSA-mgh3-34fv-3j84
7.5
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

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

  1. Access
    Network scan for SMB ports
  2. Delivery
    Establish SMB2 session
  3. Exploit
    Send crafted EA query with oversized EaNameLength
  4. Execution
    Trigger OOB read in smb2_get_ea()
  5. Persist
    Extract leaked heap memory
  6. Impact
    Repeat with varying lengths to map heap contents

Vulnerability Assessment

Exploitation Conditions

Requires ksmbd SMB server service to be explicitly enabled and running on target Linux system - ksmbd is not enabled by default in major distributions including Ubuntu, Debian, RHEL, or SUSE. Service must be network-accessible on SMB ports TCP 139 or 445. Target kernel must be vulnerable version prior to patches (pre-6.12.83, pre-6.18.24, pre-6.19.14, or pre-7.0.1 depending on branch). Exploitation requires ability to establish SMB2 protocol session and send SMB2_QUERY_INFO requests with extended attribute queries. CVSS vector AV:N/AC:L/PR:N/UI:N indicates remote unauthenticated exploitation against reachable services, but practical exploitation is limited by ksmbd deployment rarity. Non-default service requirement and specialized use case (typically NAS appliances or dedicated file servers) substantially reduces attack surface compared to vulnerabilities in universally deployed kernel components.

Impact

CVSS 7.5 (AV:N/AC:L/PR:N/UI:N) indicates network-accessible exploitation requiring no authentication or user interaction, suggesting high theoretical severity. However, real-world risk is substantially lower: EPSS score of 0.02% (5th percentile) indicates very low probability of exploitation in the wild. No CISA KEV listing confirms lack of active exploitation. The vulnerability requires ksmbd service to be enabled and exposed - ksmbd is not default in most distributions and primarily used in specialized file server deployments. Information disclosure impact is limited to slow heap memory leakage rather than code execution or system compromise. Attack complexity is actually higher than CVSS AC:L suggests, as exploitation requires crafting precise SMB2 protocol messages and repeated requests to extract meaningful data. The network vector (AV:N) is accurate but scope is limited to systems explicitly running ksmbd. Patches available across all active kernel branches (6.12.x, 6.18.x, 6.19.x, 7.0.x) significantly reduce window of exposure. Priority: Medium for ksmbd users, Low for general Linux deployments where ksmbd is disabled.

Exploit ScenarioDerived

Remote attacker identifies Linux file server running ksmbd service on ports 139/445 through network scanning. Attacker establishes SMB2 session and sends crafted SMB2_QUERY_INFO request for extended attributes with EaNameLength field set to value exceeding actual buffer size (e.g., 0x1000 bytes when buffer is 64 bytes). The smb2_get_ea() function uses this malicious length in strncmp(), causing out-of-bounds read into adjacent heap memory. By iterating with varied EaNameLength values and analyzing server responses, attacker extracts uninitialized heap contents potentially containing sensitive data from other kernel operations such as encryption keys, authentication tokens, or file contents from concurrent operations. No public POC confirmed at time of analysis.

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

Information disclosure in Linux kernel's ksmbd SMB server allows remote unauthenticated attackers to leak uninitialized heap memory via malformed SMB2 requests. The vulnerability exists in smb2_get_ea() which fails to validate EaNameLength from client requests before using it in strncmp(), enabling heap content extraction. With EPSS score of 0.02% and no KEV listing, exploitation likelihood remains low despite CVSS 7.5 rating. Patches available across kernel versions 6.12.83, 6.18.24, 6.19.14, and 7.0.1.

RemediationAI

Upgrade Linux kernel to patched versions: 6.12.83 or later in 6.12.x branch, 6.18.24 or later in 6.18.x branch, 6.19.14 or later in 6.19.x branch, or 7.0.1 or later in 7.0.x branch. Verify patch application by checking for commits 551dfb15b182, 243b206bcb5a, 3363a770b193, or dfc6878d14ac depending on kernel branch at https://git.kernel.org/stable/. If immediate patching is not feasible, disable ksmbd service entirely with 'systemctl stop ksmbd && systemctl disable ksmbd' - this eliminates attack surface but breaks SMB file sharing functionality for Windows clients. Alternative compensating control: restrict network access to ksmbd service (TCP ports 139/445) via firewall rules to trusted client IP ranges only, reducing exposure but not eliminating vulnerability for allowed clients. Side effect: network restrictions may break legitimate SMB access from blocked ranges. For production file servers, patching is strongly preferred over workarounds due to protocol complexity and potential for bypass.

Affected VersionsENISA

Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <243b206bcb5a7137e8bddd57b2eec81e1ebd3859
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <551dfb15b182abad4600eaf7b37e6eb7000d5b1b
Linux patch: 7.0.1
Linux patch: 6.19.14
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <3363a770b193f555f29d76ddf4ced3305c0ccf6d
Linux patch: 6.12.83
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <dfc6878d14acafffbe670bf2576620757a10a3d8
Linux patch: 6.18.24

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

ksmbd is the in-kernel SMB3 server implementation for Linux, introduced as a modern alternative to Samba's CIFS VFS for serving files to Windows clients. This vulnerability affects the SMB2 extended attribute (EA) handling code path where smb2_get_ea() processes client requests. The function receives an EA request structure containing EaNameLength field controlled by the client, then uses this untrusted length value directly in strncmp() without boundary validation against the actual received buffer size. Since EaNameLength can exceed the real buffer bounds, strncmp() may read beyond allocated memory into adjacent uninitialized heap regions. This classic out-of-bounds read condition (similar to CWE-125) allows incremental heap memory disclosure through crafted SMB2 EA requests. The vulnerability lies in ksmbd's SMB2 protocol parsing layer where kernel-mode code directly processes network input without adequate input sanitization.

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 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
SUSE HIGH

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

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

Lifecycle Timeline

4
Patch released
Apr 29, 2026 - 17:00 nvd
Patch available
CVSS changed
Apr 27, 2026 - 15:22 NVD
7.5 (HIGH)
Patch available
Apr 24, 2026 - 16:16 EUVD
CVE Published
Apr 24, 2026 - 14:42 nvd
HIGH 7.5

DescriptionCVE.org

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

ksmbd: validate EaNameLength in smb2_get_ea()

smb2_get_ea() reads ea_req->EaNameLength from the client request and passes it directly to strncmp() as the comparison length without verifying that the length of the name really is the size of the input buffer received.

Fix this up by properly checking the size of the name based on the value received and the overall size of the request, to prevent a later strncmp() call to use the length as a "trusted" size of the buffer. Without this check, uninitialized heap values might be slowly leaked to the client.

Executive ViewAI

Why It Matters

CVE-2026-31612 is a remote information disclosure vulnerability in Linux kernel's ksmbd SMB server that allows unauthenticated attackers to extract uninitialized heap memory through malformed SMB2 requests, potentially exposing sensitive data from systems running affected kernel versions. Organizations operating Linux servers with ksmbd enabled should prioritize kernel patching to prevent unauthorized data exfiltration, particularly in environments handling sensitive workloads or multi-tenant deployments.

Business Impact: High
Compensating Controls

Apply vendor patch. Until patched: Restrict network access to SMB ports (TCP 445, UDP 137-139) using firewall rules to limit exposure to trusted internal networks only; disable ksmbd if SMB service is not required; monitor for suspicious SMB2 traffic patterns.

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
Yes
Human Impact
High

Priority Score

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

Attack Technique

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