Skip to main content

Linux kernel ksmbd CVE-2026-31712

| EUVDEUVD-2026-26521 HIGH
Out-of-bounds Write (CWE-787)
2026-05-01 416baaa9-dc9f-4396-8d5f-8c081fb06d67
8.3
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate to SMB share
  2. Delivery
    Create/own target file
  3. Exploit
    Craft malicious DACL with undersized ACE
  4. Install
    Set DACL via SetSecurityInfo
  5. C2
    Wait for victim CREATE request
  6. Execute
    Trigger smb_check_perm_dacl() OOB read
  7. Impact
    Kernel memory corruption

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 to a Linux system running in-kernel ksmbd server (not traditional Samba). Attacker must have permissions to set or modify ACLs on at least one file, typically achieved by owning the file or having explicit ACL-write grants. The ksmbd module must be loaded and actively serving SMB shares. Exploitation is limited to the smb_check_perm_dacl() code path triggered during CREATE operations against files with attacker-controlled DACLs. Default ksmbd configurations permit authenticated users to set ACLs on files they own, making the condition achievable for any valid SMB account with file creation rights. Attack vector is network (AV:N) but requires low-privilege authentication (PR:L), no user interaction (UI:N), and low attack complexity (AC:L) once authenticated. Not exploitable pre-authentication or against systems using user-space Samba instead of ksmbd.

Impact

Real-world exploitation risk is moderate to low based on multi-signal analysis. CVSS 8.3 (High) reflects maximum theoretical impact (high confidentiality/availability, low integrity) with network attack vector, but practical risk is significantly constrained by prerequisites. EPSS score of 0.02% (5th percentile) indicates security researchers assess actual exploitation probability as very low, consistent with the requirement for authenticated SMB access plus specific file ownership/ACL-setting permissions. No active exploitation confirmed (not in CISA KEV) and no public POC identified at time of analysis. Attack complexity is low (AC:L) once prerequisites are met, but the multi-step requirement (authenticate, gain ACL-write permission, set malicious DACL, trigger subsequent CREATE by victim/process) limits weaponization potential. The OOB read is not directly reflected to attackers, reducing information disclosure value, though KASAN reports could leak kernel addresses in some configurations. Primary impact is denial-of-service via kernel state corruption rather than remote code execution. SSVC factors: exploitation status is none, automatable is no (requires ACL-setting privileges), technical impact is partial (memory corruption without confirmed code execution path). Genuine priority for environments running ksmbd with untrusted authenticated users; lower priority for trusted-user-only SMB deployments or systems not using in-kernel SMB server.

Exploit ScenarioDerived

Authenticated attacker with SMB file access creates or modifies a file they own, using SetSecurityInfo or similar SMB2 commands to attach a malicious DACL containing ACE entries with ace->size set to 4 bytes (minimum to pass header validation but insufficient for access_req and sid fields). When a legitimate user or system process attempts to open that file via SMB CREATE request, ksmbd's smb_check_perm_dacl() function walks the stored DACL, reads beyond allocated ACE buffer boundaries by up to 68 bytes (4 bytes for access_req + up to 64 bytes for maximum SID structure), potentially corrupting kernel memory or triggering KASAN fault. No public POC identified, but attack primitive is straightforward given ACL-manipulation capabilities.

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 – May 03, 2026

Out-of-bounds read in Linux kernel ksmbd allows authenticated SMB clients to trigger memory corruption by crafting malicious DACL ACEs with undersized headers. Attackers with permission to set ACLs on files can cause kernel KASAN reports and state corruption when subsequent CREATE operations walk the stored DACL via smb_check_perm_dacl(). Vendor patches available for kernel versions 6.12.84, 6.18.25, 7.0.2, and 7.1-rc1. EPSS score of 0.02% (5th percentile) indicates low likelihood of mass exploitation despite network attack vector, consistent with the requirement for authenticated access and specific file permission prerequisites.

RemediationAI

Upgrade Linux kernel to patched versions: 6.12.84 or later in the 6.12.x series, 6.18.25 or later in 6.18.x, 7.0.2 or later in 7.0.x, or 7.1-rc1 and later. Patches available from kernel.org stable tree at commits 90089584b2e25c4510b7b987387b4405f0673ece, 95e5aa3c3261da8c95b27d7aecf8ee39b9f86a4c, 151b1799861fde38087c08f613abc2843ef597b0, and d07b26f39246a82399661936dd0c853983cfade7. If immediate patching is not feasible, disable the ksmbd kernel module (rmmod ksmbd; add ksmbd to module blacklist in /etc/modprobe.d/) and use user-space Samba instead, trading kernel-space performance for elimination of attack surface. Alternatively, restrict SMB access to fully trusted authenticated users only and audit file ACL-setting permissions to prevent untrusted users from modifying DACLs, though this provides defense-in-depth rather than complete mitigation and requires ongoing access control management overhead. Monitor kernel logs for KASAN reports indicating potential exploitation attempts. No workaround exists for environments requiring ksmbd with untrusted authenticated users.

Affected VersionsENISA

Linux patch: 0
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <90089584b2e25c4510b7b987387b4405f0673ece
Linux patch: 6.12.84
Linux patch: 7.0.2
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <95e5aa3c3261da8c95b27d7aecf8ee39b9f86a4c
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <151b1799861fde38087c08f613abc2843ef597b0
Linux 5.15
Linux patch: 6.18.25
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <d07b26f39246a82399661936dd0c853983cfade7
Linux patch: 7.1-rc1

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 exists in ksmbd, the in-kernel SMB server implementation introduced in Linux 5.15. The flaw occurs in ACE (Access Control Entry) parsing within smb_check_perm_dacl(), where two validation loops fail to enforce minimum ACE structure sizes. The code only validates the 4-byte ACE header fits within the buffer but does not verify that declared ace->size accommodates the full struct smb_ace layout (header + access_req field + SID structure). SMB ACLs use DACL (Discretionary Access Control Lists) composed of ACE entries following the CIFS/SMB2+ protocol specification, where each ACE contains a header, access mask, and security identifier (SID). The vulnerable loops dereference access_req at offset 4 and sid fields at offset 8+ without confirming these offsets are within the ACE's declared size boundary, creating an out-of-bounds read condition when processing attacker-controlled DACL data structures stored on the filesystem.

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 (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 8.3 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
SUSE HIGH

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

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

Lifecycle Timeline

4
CVSS changed
May 03, 2026 - 07:22 NVD
8.3 (HIGH)
Patch released
May 03, 2026 - 07:16 nvd
Patch available
Patch available
May 01, 2026 - 15:02 EUVD
CVE Published
May 01, 2026 - 14:16 nvd
HIGH 8.3

DescriptionCVE.org

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

ksmbd: require minimum ACE size in smb_check_perm_dacl()

Both ACE-walk loops in smb_check_perm_dacl() only guard against an under-sized remaining buffer, not against an ACE whose declared ace->size is smaller than the struct it claims to describe:

if (offsetof(struct smb_ace, access_req) > aces_size) break; ace_size = le16_to_cpu(ace->size); if (ace_size > aces_size) break;

The first check only requires the 4-byte ACE header to be in bounds; it does not require access_req (4 bytes at offset 4) to be readable. An attacker who has set a crafted DACL on a file they own can declare ace->size 4 with aces_size 4, pass both checks, and then

granted |= le32_to_cpu(ace->access_req); /* upper loop */ compare_sids(&sid, &ace->sid); /* lower loop */

reads access_req at offset 4 (OOB by up to 4 bytes) and ace->sid at offset 8 (OOB by up to CIFS_SID_BASE_SIZE + SID_MAX_SUB_AUTHORITIES

  • 4 bytes).

Tighten both loops to require

ace_size >= offsetof(struct smb_ace, sid) + CIFS_SID_BASE_SIZE

which is the smallest valid on-wire ACE layout (4-byte header + 4-byte access_req + 8-byte sid base with zero sub-auths). Also reject ACEs whose sid.num_subauth exceeds SID_MAX_SUB_AUTHORITIES before letting compare_sids() dereference sub_auth[] entries.

parse_sec_desc() already enforces an equivalent check (lines 441-448); smb_check_perm_dacl() simply grew weaker validation over time.

Reachability: authenticated SMB client with permission to set an ACL on a file. On a subsequent CREATE against that file, the kernel walks the stored DACL via smb_check_perm_dacl() and triggers the OOB read. Not pre-auth, and the OOB read is not reflected to the attacker, but KASAN reports and kernel state corruption are possible.

Executive ViewAI

Why It Matters

CVE-2026-31712 is a high-severity kernel memory corruption vulnerability in Linux ksmbd (SMB server) that requires authenticated access and specific file ACL permissions to trigger. While the vulnerability can cause kernel crashes and state corruption, the 0.02% EPSS score indicates minimal real-world exploitation likelihood, primarily affecting organizations running vulnerable kernel versions with ksmbd enabled and permissive ACL configurations. Patching is straightforward with vendor fixes available across supported kernel branches.

Business Impact: Medium
Compensating Controls

Apply vendor patch. If immediate patching is not possible: disable ksmbd via echo 'install ksmbd /bin/true' >> /etc/modprobe.d/blacklist.conf and use alternative SMB implementations (Samba); restrict SMB access via firewall rules (port 445/tcp) to trusted networks only; limit file ACL modification permissions to administrative accounts with mandatory access control policies; enable kernel KASAN monitoring (CONFIG_KASAN=y) for detection of exploitation attempts.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Threat Intel
1
1 sources
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
Medium

Priority Score

52
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
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.

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

Threat IntelligenceMISP

CISA Advisories
Sources: Microsoft MSRC, CISA (public domain)

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