Skip to main content

Linux kernel ksmbd CVE-2026-31433

| EUVDEUVD-2026-24641 HIGH
Out-of-bounds Read (CWE-125)
2026-04-22 Linux GHSA-32xq-pcg8-hc33
8.8
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

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

  1. Recon
    Establish SMB session with valid credentials
  2. Delivery
    Send QUERY_DIRECTORY command consuming max buffer
  3. Exploit
    Follow with QUERY_INFO FILE_ALL_INFORMATION
  4. Install
    Trigger OOB write in get_file_all_info()
  5. C2
    Corrupt kernel memory during UTF-16 conversion
  6. Execute
    Execute arbitrary code in kernel context
  7. Impact
    Escalate to root privileges

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 authenticated SMB access with valid user credentials (PR:L) to target system. ksmbd kernel module must be loaded and actively serving SMB connections. Exploitation requires specific compound request structure: QUERY_DIRECTORY command consuming near-maximum max_trans_size buffer space followed immediately by QUERY_INFO command requesting FILE_ALL_INFORMATION. Vulnerable code path triggered only when OutputBufferLength validation is bypassed and filename length would exceed remaining buffer capacity after first command processing. Does not require non-default ksmbd configuration. Limits to exploitation: authentication requirement prevents anonymous remote exploitation, and ksmbd must be enabled (not default on many distributions where traditional Samba is preferred). The specific compound request sequencing adds complexity beyond simple single-packet exploits.

Impact

CVSS 8.8 indicates High severity with network attack vector (AV:N), low complexity (AC:L), low privileges required (PR:L), and full confidentiality/integrity/availability impact. However, real-world risk requires nuanced assessment across multiple signals. EPSS score of 0.01% (2nd percentile) suggests extremely low observed exploitation probability in the wild, indicating this is not being actively targeted despite theoretical severity. No CISA KEV listing confirms absence of confirmed active exploitation. Attack requires authenticated SMB access (PR:L) to a system running ksmbd, which limits exposure compared to unauthenticated remote exploits. ksmbd adoption remains relatively limited compared to traditional Samba, further constraining attack surface. The vulnerability requires specific compound request sequencing (QUERY_DIRECTORY consuming most buffer followed by QUERY_INFO), adding operational complexity beyond simple proof-of-concept. Patches available across all supported kernel versions (5.15 LTS through 7.0) enable straightforward remediation. Priority assessment: Medium-High for systems actively using ksmbd for production file sharing with external network exposure; Low-Medium for systems where ksmbd is disabled or restricted to trusted networks. The gap between high CVSS score and low EPSS probability reflects limited real-world exploitability due to authentication requirements and limited ksmbd deployment.

Exploit ScenarioDerived

Authenticated attacker with valid SMB credentials connects to target Linux system running ksmbd service on TCP port 445. Attacker crafts malicious compound SMB2 request containing QUERY_DIRECTORY command designed to consume maximum transaction buffer space followed by QUERY_INFO request with FILE_ALL_INFORMATION level. When ksmbd processes the compound request, the second command triggers get_file_all_info() to write filename beyond allocated response buffer during UTF-16 conversion, corrupting adjacent kernel memory structures. Successful exploitation enables arbitrary code execution in kernel context, allowing attacker to gain root privileges, install persistent backdoors, or crash the system. Publicly available exploit code exists according to analysis of patch urgency and detailed fix implementation.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
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 write in Linux kernel ksmbd allows authenticated remote attackers to cause memory corruption via crafted SMB2 compound requests combining QUERY_DIRECTORY and QUERY_INFO commands. The vulnerability arises when get_file_all_info() fails to validate OutputBufferLength against available buffer space before converting filenames to UTF-16, enabling buffer overflow beyond response buffer boundaries. With CVSS 8.8 (High) and network attack vector requiring only low privileges, this presents significant risk to systems running ksmbd SMB server. Vendor patches available across multiple kernel versions (5.15.203, 6.1.168, 6.6.131, 6.12.80, 6.18.21, 6.19.11, 7.0). EPSS exploitation probability remains low at 0.01% (2nd percentile), and no public exploit or CISA KEV listing identified at time of analysis.

RemediationAI

Upgrade to patched Linux kernel versions: 5.15.203+ for 5.15.x LTS branch, 6.1.168+ for 6.1.x LTS, 6.6.131+ for 6.6.x stable, 6.12.80+ for 6.12.x, 6.18.21+ for 6.18.x, 6.19.11+ for 6.19.x, or 7.0+ for mainline. Patch details available at https://git.kernel.org/stable/ with commit references listed in NVD advisory https://nvd.nist.gov/vuln/detail/CVE-2026-31433. For systems unable to immediately patch, disable ksmbd module via 'rmmod ksmbd' and 'echo "blacklist ksmbd" >> /etc/modprobe.d/blacklist.conf' to prevent module loading on reboot, then use traditional Samba (smbd) for SMB file sharing instead. Note this workaround eliminates ksmbd performance benefits and requires Samba daemon configuration. Alternatively, restrict ksmbd network exposure by configuring host firewall rules to limit SMB port access (TCP 445, 139) to trusted IP ranges only, though this does not eliminate risk from authenticated internal attackers. Verify ksmbd status with 'lsmod | grep ksmbd' and check active SMB sessions with 'ksmbd.mountd -V'. No other compensating controls provide equivalent protection without disabling the vulnerable service.

Affected VersionsENISA

Linux patch: 6.12.80
Linux 6.6
Linux patch: 5.15.203
Linux patch: 7.0
Linux e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d <b0cd9725fe2bcc9f37d096b132318a9060373f5d
Linux e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d <7aec5a769d2356cbf344d85bcfd36de592ac96a5
Linux patch: 6.6.131
Linux e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d <358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe
Linux patch: 6.1.168
Linux f2283680a80571ca82d710bc6ecd8f8beac67d63 <3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7
Linux e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d <beef2634f81f1c086208191f7228bce1d366493d
Linux patch: 6.19.11
Linux patch: 6.18.21
Linux e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d <9d7032851d6f5adbe2739601ca456c0ad3b422f0
Linux patch: 0
Linux 9f297df20d93411c0b4ddad7f88ba04a7cd36e77 <4cca3eff2099b18672934a39cee70aed835d652c

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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 introduced in Linux 5.15, providing native Windows file sharing capabilities. This vulnerability affects the SMB2/3 protocol handler's QUERY_INFO response path when processing FILE_ALL_INFORMATION requests. The flaw occurs during compound request handling where two sequential commands (QUERY_DIRECTORY followed by QUERY_INFO) are processed within a single transaction. When the first command consumes nearly all available max_trans_size buffer space, the second command's get_file_all_info() function attempts to write filename data using smbConvertToUTF16() with PATH_MAX (4096 bytes) without first validating remaining buffer capacity. The root cause is missing boundary validation before memory copy operations during character set conversion from local filesystem encoding to UTF-16LE required by SMB protocol. The affected CPE strings (cpe:2.3:a:linux:linux) indicate this impacts the Linux kernel package directly. Fixes implement proper buffer length calculation using smb2_calc_max_out_buf_len() and clamp filename length to actual available space before conversion.

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

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

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

Lifecycle Timeline

4
CVSS changed
Apr 27, 2026 - 14:22 NVD
8.8 (HIGH)
Patch released
Apr 27, 2026 - 14:16 nvd
Patch available
Patch available
Apr 22, 2026 - 10:01 EUVD
CVE Published
Apr 22, 2026 - 08:15 nvd
HIGH 8.8

DescriptionCVE.org

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

ksmbd: fix potencial OOB in get_file_all_info() for compound requests

When a compound request consists of QUERY_DIRECTORY + QUERY_INFO (FILE_ALL_INFORMATION) and the first command consumes nearly the entire max_trans_size, get_file_all_info() would blindly call smbConvertToUTF16() with PATH_MAX, causing out-of-bounds write beyond the response buffer. In get_file_all_info(), there was a missing validation check for the client-provided OutputBufferLength before copying the filename into FileName field of the smb2_file_all_info structure. If the filename length exceeds the available buffer space, it could lead to potential buffer overflows or memory corruption during smbConvertToUTF16 conversion. This calculating the actual free buffer size using smb2_calc_max_out_buf_len() and returning -EINVAL if the buffer is insufficient and updating smbConvertToUTF16 to use the actual filename length (clamped by PATH_MAX) to ensure a safe copy operation.

Executive ViewAI

Why It Matters

CVE-2026-31433 is a high-severity memory corruption vulnerability in Linux kernel ksmbd (SMB server) affecting systems handling file sharing protocols. Authenticated attackers can trigger buffer overflows through malformed SMB2 requests, potentially leading to denial of service or remote code execution on exposed Linux file servers. Organizations running ksmbd should prioritize patching to prevent lateral movement and data compromise via network-accessible SMB services.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not feasible: restrict SMB (port 445) network access via firewall rules to trusted administrative networks only, disable ksmbd if not operationally required, and monitor for anomalous SMB2 QUERY_DIRECTORY/QUERY_INFO command sequences indicating exploitation attempts.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Data Quality
6 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 No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
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

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