Skip to main content

Linux kernel ksmbd EUVDEUVD-2026-24640

| CVE-2026-31432 HIGH
Out-of-bounds Write (CWE-787)
2026-04-22 Linux GHSA-f75p-6q8j-p2f2
8.8
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

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

  1. Access
    Obtain low-privilege SMB credentials
  2. Delivery
    Connect to ksmbd service over network
  3. Exploit
    Craft compound SMB2 request (READ + QUERY_INFO)
  4. Execution
    Trigger buffer overflow in security descriptor synthesis
  5. Persist
    Corrupt kernel memory structures
  6. Impact
    Execute arbitrary code or crash system

Vulnerability Assessment

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

2 techniques across 2 tactics: Execution, Privilege Escalation

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 low-privilege credentials (CVSS PR:L) to a Linux system running the ksmbd kernel module (not Samba). Target system must have ksmbd enabled and accessible over the network (CVSS AV:N). Exploitation depends on specific deployment conditions: ksmbd must be actively serving SMB shares, target files must have POSIX ACLs configured (triggering security descriptor synthesis in build_sec_desc), and the attacker must craft compound requests with precise buffer consumption in the first command to trigger the overflow in the second QUERY_INFO operation. The vulnerability does not affect default Linux installations using Samba for SMB services, significantly limiting real-world exposure. Ksmbd adoption is primarily in specialized environments like containerized storage solutions or embedded Linux NAS devices. No user interaction required (CVSS UI:N) once network access and authentication are achieved.

Impact

CVSS 8.8 (High) reflects the technical severity: network-accessible, low complexity attack requiring only low-privilege authenticated access with potential for complete system compromise (C:H/I:H/A:H). However, real-world risk is substantially lower based on multiple factors. EPSS 0.01% (1st percentile) indicates minimal observed exploitation activity. The vulnerability requires authenticated SMB access to a ksmbd-enabled Linux system, which is a relatively narrow attack surface since most production SMB deployments use Samba rather than the newer ksmbd implementation. The attack vector requires precise timing of compound requests where the first command consumes specific buffer amounts, adding exploitation complexity beyond the CVSS AC:L rating. No CISA KEV listing, no public POC, and availability of vendor patches across multiple kernel branches further reduce urgency. Priority should be moderate for organizations running ksmbd in production (apply patches during normal maintenance windows), but low for environments using Samba or not exposing SMB services. The CVSS score alone would suggest critical priority, but exploitation conditions, limited ksmbd adoption, low EPSS, and patch availability indicate this is manageable through standard patching cycles rather than emergency response.

Exploit ScenarioDerived

An attacker with valid low-privilege SMB credentials connects to a Linux server running ksmbd. They craft a compound SMB2 request containing a READ operation designed to consume most of the allocated response buffer, immediately followed by a QUERY_INFO request for security descriptor information on a file with complex POSIX ACLs. When ksmbd processes the QUERY_INFO, it underestimates the size needed to synthesize a Windows security descriptor from the ACLs, writing beyond the allocated buffer boundary. This out-of-bounds write corrupts adjacent kernel memory structures, potentially allowing the attacker to execute arbitrary code in kernel context or crash the system.

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's ksmbd server allows authenticated remote attackers with low-privilege SMB access to corrupt memory and potentially execute arbitrary code or crash the system. The vulnerability triggers when processing compound SMB2 requests (e.g., READ + QUERY_INFO for security descriptors) where the first command consumes most of the response buffer, causing ksmbd to write beyond allocated memory when building security descriptors from POSIX ACLs. Vendor patches are available for kernel versions 6.12.81, 6.18.22, 6.19.12, and 7.0. EPSS score of 0.01% suggests low observed exploitation probability, and no public exploit code or active exploitation has been identified at time of analysis.

RemediationAI

Upgrade Linux kernel to patched versions: 6.12.81, 6.18.22, 6.19.12, or 7.0 or later, depending on your kernel branch. Patches are available from the kernel stable trees at https://git.kernel.org/stable/c/d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09, https://git.kernel.org/stable/c/075ea208c648cc2bcd616295b711d3637c61de45, https://git.kernel.org/stable/c/515c2daab46021221bdf406bef19bc90a44ec617, and https://git.kernel.org/stable/c/fda9522ed6afaec45cabc198d8492270c394c7bc. If immediate patching is not feasible, implement compensating controls: disable ksmbd module entirely if not required (unload ksmbd.ko, blacklist in modprobe.d) and use Samba for SMB file sharing instead, which eliminates exposure with no functional loss for most deployments. Alternatively, restrict SMB access to ksmbd services using firewall rules (block ports 445/139) to trusted networks only, though this does not prevent exploitation by authenticated attackers within the trust boundary. If ksmbd must remain enabled pre-patch, audit and minimize user privileges for SMB accounts, implement strict network segmentation, and enable kernel exploit mitigations (KASLR, SMEP, SMAP) if not already active. Note that disabling ksmbd requires service restart and may interrupt active SMB sessions; restricting network access may impact legitimate remote file access workflows.

Affected VersionsENISA

Linux 6.6
Linux 9f297df20d93411c0b4ddad7f88ba04a7cd36e77
Linux patch: 0
Linux patch: 6.18.22
Linux e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d <075ea208c648cc2bcd616295b711d3637c61de45
Linux patch: 6.12.81
Linux patch: 6.19.12
Linux e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d <d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09
Linux e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d <fda9522ed6afaec45cabc198d8492270c394c7bc
Linux f2283680a80571ca82d710bc6ecd8f8beac67d63
Linux e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d <515c2daab46021221bdf406bef19bc90a44ec617
Linux patch: 7.0

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

This vulnerability affects ksmbd, the in-kernel SMB server implementation introduced in Linux 5.15. The flaw resides in the SMB2 QUERY_INFO handler for security descriptors (smb2_get_info_sec function). When processing compound SMB2 requests, ksmbd allocates a response buffer shared across multiple commands. The vulnerability occurs because smb2_get_info_sec() validated available buffer space against the xattr-stored security descriptor size (ppntsd_size), but build_sec_desc() dynamically synthesizes Windows-style security descriptors from POSIX ACLs, often producing structures significantly larger than the xattr size. This size miscalculation leads to an out-of-bounds write when the synthesized descriptor exceeds remaining buffer space. The patch introduces smb_acl_sec_desc_scratch_len() to pre-calculate exact descriptor sizes, validates buffer availability using smb2_calc_max_out_buf_len(), and implements precise memory allocation with iov pinning to prevent buffer overflows.

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 OOB write in QUERY_INFO for compound requests

When a compound request such as READ + QUERY_INFO(Security) is received, and the first command (READ) consumes most of the response buffer, ksmbd could write beyond the allocated buffer while building a security descriptor.

The root cause was that smb2_get_info_sec() checked buffer space using ppntsd_size from xattr, while build_sec_desc() often synthesized a significantly larger descriptor from POSIX ACLs.

This patch introduces smb_acl_sec_desc_scratch_len() to accurately compute the final descriptor size beforehand, performs proper buffer checking with smb2_calc_max_out_buf_len(), and uses exact-sized allocation + iov pinning.

Executive ViewAI

Why It Matters

CVE-2026-31432 is a high-severity memory corruption vulnerability in Linux kernel's ksmbd SMB server that allows authenticated users with low-privilege network access to crash systems or potentially execute arbitrary code. Organizations running ksmbd-enabled Linux servers face immediate risk of denial-of-service and potential lateral movement; patching is required across all affected kernel versions to restore system stability and prevent exploitation.

Business Impact: High
Compensating Controls

Apply vendor patch. Interim mitigations pending patch deployment: restrict SMB access to trusted networks via firewall rules, disable ksmbd if not operationally required, implement network segmentation to limit low-privilege user access to affected systems, and maintain monitoring for unexpected system crashes or memory corruption errors.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% 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.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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