Skip to main content

Linux Kernel ksmbd EUVDEUVD-2026-45824

| CVE-2026-64139 MEDIUM
Memory Leak (CWE-401)
2026-07-19 Linux GHSA-3c28-w5w6-mh56
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate to ksmbd SMB share with low-privilege credentials
  2. Delivery
    Create or locate file with large POSIX ACL entry count
  3. Exploit
    Issue repeated SMB DACL query requests for target file
  4. Install
    Trigger u16 overflow check in set_posix_acl_entries_dacl()
  5. C2
    Leak struct smb_sid kernel heap allocation per request
  6. Execute
    Exhaust kernel memory over sustained requests
  7. Impact
    Server denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
Exploitation Conditions

The target system must be running the Linux kernel with the ksmbd module loaded and actively configured as an SMB server - ksmbd is not enabled by default on any major distribution and requires deliberate setup (e.g., via ksmbd-tools and a smb.conf equivalent). The attacker must have at minimum low-privilege SMB access to the server, consistent with CVSS PR:L - unauthenticated exploitation is not indicated. Exploitation further requires the existence of a file accessible through the ksmbd share that has enough POSIX ACL entries to push the accumulated DACL byte count past the u16 limit (65535 bytes); the attacker may need to create this file or discover a pre-existing one. The vulnerability is strictly limited to kernel availability (memory exhaustion DoS) - no confidentiality or integrity impact is possible. The SMB client-side CIFS subsystem, Samba (userspace), and non-ksmbd SMB configurations are unaffected.

Impact

CVSS 5.5 (Medium) with vector AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H reflects a local, low-privilege, no-interaction attack with high availability impact and no confidentiality or integrity consequence. EPSS at 0.18% (8th percentile) confirms negligible current exploitation probability, and the absence of a CISA KEV entry and any confirmed POC further constrains real-world urgency. That said, the AV:L assignment warrants scrutiny: ksmbd is a network-facing SMB server, and if POSIX ACL entries can be set or manipulated through SMB protocol requests (rather than requiring direct local filesystem access), an authenticated remote attacker could trigger the leak over the network - this should be verified against the ksmbd codebase. For defenders: risk is real only if ksmbd is actively running; ksmbd is not enabled by default on most distributions and must be explicitly configured. The leak is deterministic and accumulates on every qualifying DACL request, making DoS achievable without exploitation of any memory-corruption primitive - a low skill-floor for any authenticated SMB user on the server.

Exploit ScenarioDerived

An attacker holding SMB credentials to a Linux server running ksmbd creates or identifies a file with enough POSIX ACL entries to trigger the u16 DACL size overflow check. By repeatedly issuing SMB security-descriptor query requests for that file, the attacker causes the kernel to leak one struct smb_sid allocation per request without recovery; over a sustained series of requests, kernel heap memory is progressively exhausted, degrading server stability and ultimately forcing a crash or reboot. No public exploit code is confirmed, but the deterministic nature of the overflow trigger means the attack requires no memory-corruption expertise.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 18, 2026

Kernel memory exhaustion via ksmbd's POSIX-to-DACL ACL conversion causes a reliable denial-of-service against Linux SMB servers. Commit 299f962c0b02 introduced check_add_overflow() guards in set_posix_acl_entries_dacl() to prevent u16 DACL size wrap-around, but the resulting break statements bypass the kfree(sid) cleanup calls, leaking one or more struct smb_sid kernel heap allocations each time the overflow check fires. EPSS is 0.18% (8th percentile), no KEV listing exists, and no public exploit code has been identified, but the leak is deterministic and repeatable on every DACL request against a file with sufficient POSIX ACL entries, making memory exhaustion straightforward for any attacker with SMB access to the server.

RemediationAI

Upgrade to a patched Linux stable kernel release: 6.6.142 or later (6.6 branch), 6.12.92 or later (6.12 branch), 7.0.11 or later (7.0 branch), or 6.18.34 or later (6.18 branch). Upstream fix commits are published at git.kernel.org - representative patches include eced48cb08f07393a5ea770fdd1026452883c3ad, 9d378e17c864da08c3a4df41dae92cfa6468b00a, af92ee994cc7f7e83a41c2025f32257a2f82a7ef, and related stable backports. Ubuntu administrators should apply USN-8593-1. If an immediate kernel update is operationally infeasible, the most effective compensating control is to unload ksmbd entirely (modprobe -r ksmbd or adding it to /etc/modprobe.d/blacklist.conf) - this eliminates the attack surface completely but terminates all ksmbd-served SMB shares. Alternatively, blocking inbound TCP port 445 at the host firewall (iptables -A INPUT -p tcp --dport 445 -j DROP) limits exposure to network-adjacent attackers, though local attackers with shell access can still trigger the leak if ksmbd remains loaded. Restricting which users may set extended POSIX ACLs on ksmbd-shared filesystems (via ACL mount options or filesystem policies) reduces the triggering surface but does not eliminate the vulnerability if pre-existing files already carry sufficient ACL entries.

Affected VersionsENISA

Linux ef7902be3f215b6bf7babe4dc9dd9a7d57dad7a7 <eced48cb08f07393a5ea770fdd1026452883c3ad
Linux 6.6.136 <6.6.142
Linux 8d5729350b236896f51379588d9a690b7fafb8db <9d378e17c864da08c3a4df41dae92cfa6468b00a
Linux 6.12.84 <6.12.92
Linux 7.0.2 <7.0.11
Linux 6.18.25 <6.18.34
Linux 5e7b8f3c539d69b2ed5f2408e2f75e68ce7eef43 <0e198f09cb2a554c04de0fea4e790f1250a943ca
Linux 41e53a773db6342ac9a689ee5ba635c31744c9f0
Linux e1955a94b6f17f4b058afa955a6f187eb3ed7615 <519fb0a42ce5d7e46935577309fb282a5f2c6ea3
Linux 299f962c0b02d048fb45d248b4da493d03f3175d <af92ee994cc7f7e83a41c2025f32257a2f82a7ef
Linux 6.1.175 <6.2

Affected Packages

euvd linux fix: 6.2, 6.6.142, 6.12.92, 6.18.34, 7.0.11

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 (Kernel SMB Daemon) is the in-kernel SMB3 server introduced in Linux 5.15, distinct from userspace Samba. The vulnerable function set_posix_acl_entries_dacl() translates POSIX filesystem ACL entries into Windows-style DACL security descriptors sent in SMB responses. For each ACE (Access Control Entry), the function allocates a struct smb_sid via kmalloc_obj(). The prior fix (commit 299f962c0b02) added check_add_overflow() guards to prevent the u16 accumulated DACL byte count from wrapping past 65535; however, the break exits that enforce this limit skip the corresponding kfree(sid) calls at the tail of each loop iteration. CWE-401 (Missing Release of Memory after Effective Lifetime) precisely describes this pattern: the resource is allocated, a guard fires, control exits before the free, and the allocation is permanently leaked within the running kernel. Affected CPE: cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*.

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

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.5 MEDIUM

Local vector with low-privilege access required to trigger DACL handling; no confidentiality or integrity impact, only kernel heap exhaustion via the memory leak.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 4.7 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

4
CVSS changed
Aug 18, 2026 - 12:53 NVD
5.5 (MEDIUM)
Patch available
Jul 19, 2026 - 17:03 EUVD
CVE Published
Jul 19, 2026 - 15:40 nvd
MEDIUM 5.5
CVE Published
Jul 19, 2026 - 15:40 cve.org
UNKNOWN (no severity yet)

DescriptionNVD

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

ksmbd: fix SID memory leak in set_posix_acl_entries_dacl() on overflow

Commit 299f962c0b02 ("ksmbd: use check_add_overflow() to prevent u16 DACL size overflow") added check_add_overflow() guards that break out of the ACE-building loops in set_posix_acl_entries_dacl() when the accumulated DACL size would wrap past 65535.

However, each iteration allocates a struct smb_sid via kmalloc_obj() at the top of the loop and relies on the kfree(sid) call at the end of the loop body (the 'pass_same_sid' label in the first loop, and the explicit kfree at the tail of the second loop) to release it. The newly introduced 'break' statements bypass those kfree() calls, leaking the sid buffer every time an overflow is detected.

A malicious or malformed file with enough POSIX ACL entries to trip the overflow check will leak one or more struct smb_sid allocations on every request that touches the file's DACL, providing a trivial kernel memory exhaustion vector.

Free sid before breaking out of the loops to plug the leak.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
Linux kernel is ubiquitous, but ksmbd requires explicit opt-in configuration.
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
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: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 16.0 Not-Affected

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