Skip to main content

Linux ksmbd CVE-2026-68099

| EUVDEUVD-2026-55480 MEDIUM
2026-08-10 Linux GHSA-xjwm-2vhv-89mg
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to ksmbd SMB service
  2. Delivery
    Request NT ACL construction with many ACEs
  3. Exploit
    Overflow 16-bit pndacl->size field
  4. Execution
    Emit truncated malformed ACL on wire
  5. Impact
    Out-of-bounds read crashes kernel on re-parse

Vulnerability Assessment

Exploitation Conditions

Requires a host running the ksmbd in-kernel SMB server (CONFIG_SMB_SERVER), which is not built or enabled by default in most distributions, actively serving shares. An authenticated SMB session (PR:L) must drive DACL construction in set_ntacl_dacl() or set_posix_acl_entries_dacl() with enough Access Control Entries that the cumulative DACL size exceeds the 16-bit on-wire size field, forcing the check_add_overflow() break path that leaves pndacl->size under-reporting the bytes written. Limiting factors: ksmbd must be explicitly enabled and exposed, the attacker needs a valid authenticated SMB account, and the attacker must be able to cause an abnormally large ACL (>~64 KB of ACEs) to be built - a non-default, hard-to-reach condition that substantially narrows realistic exploitation beyond the raw CVSS score.

Impact

The signals point to a low-to-moderate, non-urgent priority. CVSS is 5.5 (medium) with the NVD vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - the only claimed impact is availability (A:H), consistent with an out-of-bounds read crashing the kernel rather than code execution or data theft. EPSS is 0.17% (6th percentile), indicating very low predicted exploitation; there is no CISA KEV listing and no public exploit identified at time of analysis, so there is no evidence of active or impending exploitation. The vuln.today Decision label is 'this_month', i.e. patch on a routine monthly cadence, not an emergency. One notable conflict: NVD scores this AV:L (local), yet the vulnerable code is ksmbd, the in-kernel SMB server, which is reached by network SMB clients - the mechanism (a malformed on-wire NT ACL re-parsed 'by clients or ksmbd itself') implies a network-reachable trigger, so the AV:L attack-vector metric appears understated; verify reachability with the specific deployment. The trigger also requires overflowing a 16-bit DACL size field, meaning an attacker must induce construction of an ACL exceeding ~64 KB of ACEs, a demanding and non-default condition that further lowers real-world risk.

Exploit ScenarioDerived

An authenticated SMB client connected to a host running the ksmbd in-kernel server induces the server to build an NT or POSIX DACL containing enough ACEs that the cumulative size overflows the 16-bit pndacl->size field. The overflow path breaks the ACE loop but the truncated size is still written, so the emitted ACL under-reports the bytes actually present; when that malformed ACL is re-parsed by ksmbd or a client, the size mismatch drives out-of-bounds reads that can crash the kernel (A:H). No public exploit identified at time of analysis.

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 – Nov 30, 2026

ksmbd, the in-kernel SMB server in the Linux kernel, mis-accounts the size of a constructed NT ACL when the cumulative DACL exceeds the 16-bit on-wire size field, because check_add_overflow() writes the truncated sum into the size variable even on the overflow path. The resulting ACL under-reports the bytes actually written, so the malformed ACL can drive out-of-bounds reads when ksmbd or an SMB client re-parses it. Exposure is confined to hosts that explicitly build and enable CONFIG_SMB_SERVER and serve shares; exploitation further requires an authenticated SMB session (PR:L) able to force an abnormally large ACL (roughly >64 KB of ACEs), so the reachable attack surface is considerably narrower than the scored severity suggests. EPSS is 0.17% (6th percentile), there is no KEV entry and no public exploit identified at time of analysis, and vendor patches are available for the affected stable branches.

RemediationAI

Vendor-released patches are available: upgrade to Linux 6.6.148, 6.12.101, 6.18.42, 7.1.6 or 7.2-rc5 (or later), or apply the referenced stable commits (git.kernel.org/stable/c/0bf38372821b1526f31538a7d9811844c55c7f38, 847ecd4eb3c117c3d2f13f1e7ab506543aad8183, bc90144ce8bb7fcf05ad9417c7adb4e9509d9e13, bbf0a8e931204ecdab494a88d43b0a24a04285c5, f4fcd0c1a243d449307b887fafee23921e9db5ab, 8f3a7a499a7d9bb1c0f33fe78c4a4594d7e307f4). Distribution kernels should be updated via their own advisories - the Ubuntu notices USN-8887-1, USN-8888-1 and USN-8889-1 carry the corresponding fixes. Because the flaw only exists in the in-kernel SMB server, hosts that do not need it can reduce exposure by not building or loading ksmbd (CONFIG_SMB_SERVER) and not exposing ksmbd-managed shares, accepting the loss of in-kernel SMB file sharing in exchange; where ksmbd is required, restrict SMB access to trusted authenticated accounts so that unprivileged sessions cannot drive large DACL construction.

Affected VersionsENISA

Linux e1955a94b6f17f4b058afa955a6f187eb3ed7615 <0bf38372821b1526f31538a7d9811844c55c7f38
Linux 6.18.25 <6.18.42
Linux patch: 6.6.148
Linux patch: 7.1.6
Linux patch: 6.18.42
Linux ef7902be3f215b6bf7babe4dc9dd9a7d57dad7a7
Linux 6.12.84 <6.12.101
Linux patch: 7.2-rc5
Linux patch: 6.12.101
Linux 6.6.136 <6.6.148
Linux 6.1.175 <6.2
Linux 299f962c0b02d048fb45d248b4da493d03f3175d <bbf0a8e931204ecdab494a88d43b0a24a04285c5
Linux 7.0.2 <7.1
Linux 5e7b8f3c539d69b2ed5f2408e2f75e68ce7eef43 <847ecd4eb3c117c3d2f13f1e7ab506543aad8183
Linux 8d5729350b236896f51379588d9a690b7fafb8db <f4fcd0c1a243d449307b887fafee23921e9db5ab
Linux 41e53a773db6342ac9a689ee5ba635c31744c9f0
Linux patch: 0
Linux 299f962c0b02d048fb45d248b4da493d03f3175d <bc90144ce8bb7fcf05ad9417c7adb4e9509d9e13
Linux 7.1

Affected Packages

euvd linux fix: 6.2, 6.6.148, 6.12.101, 6.18.42, 7.1

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 builds NT and POSIX Access Control Lists for SMB shares in set_ntacl_dacl() and set_posix_acl_entries_dacl(), iterating ACE construction with fill_ace_for_sid()/memcpy() and using check_add_overflow() to guard the running size accumulator. Per the contract documented in include/linux/overflow.h, check_add_overflow() unconditionally stores the truncated sum in its destination even when it reports an overflow. The four guards in these two builders break out of the ACE loops on overflow, but the truncated *size value is then consumed at the end of set_ntacl_dacl() when pndacl->size is updated with the accumulated size. The committed on-wire NT ACL therefore advertises fewer bytes than were actually written, and re-parsing that inconsistent structure by clients or by ksmbd itself can produce out-of-bounds reads. The fix restores *size to its pre-addition value on each overflow branch (*size -= ace_sz, size -= nt_ace_size) so the emitted ACL is truncated but self-consistent. The commit message notes these were the only check_add_overflow() sites where an overflow path breaks a loop and the overflowed destination is subsequently consumed; neighbouring break-style cases either return -EINVAL (transport_ipc.c) or never consume the overflowed value (buildid.c). No CWE was assigned in the source data, though the behaviour is a size-accounting/validation defect rather than a classic memory-corruption primitive.

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.9 MEDIUM

ksmbd is network-reachable so AV:N; triggering a 16-bit size overflow needs a crafted oversized ACL (AC:H) from an authenticated SMB user (PR:L); OOB read yields a crash (A:H) and possible limited leak (C:L).

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

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
Nov 30, 2026 - 19:38 NVD
5.5 (MEDIUM)
Patch available
Aug 10, 2026 - 14:18 EUVD
CVE Published
Aug 10, 2026 - 11:58 cve.org
UNKNOWN (no severity yet)
CVE Published
Aug 10, 2026 - 11:58 nvd
MEDIUM 5.5

DescriptionNVD

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

ksmbd: restore DACL size on check_add_overflow() to avoid malformed ACL

check_add_overflow() unconditionally writes the truncated sum into *d even on overflow, per its contract in include/linux/overflow.h. The four check_add_overflow() guards in set_posix_acl_entries_dacl() and set_ntacl_dacl() break out of the ACE-building loops on overflow, but the truncated *size is then consumed downstream at the end of set_ntacl_dacl():

pndacl->size = cpu_to_le16(le16_to_cpu(pndacl->size) + size);

This produces an on-wire NT ACL whose pndacl->size under-reports the bytes actually written by the preceding fill_ace_for_sid()/memcpy() calls, yielding a malformed ACL that can trigger out-of-bounds reads when re-parsed by clients or ksmbd itself.

Restore *size to its pre-addition value on each overflow branch (via *size -= ace_sz / size -= nt_ace_size) so that after the break, *size once again holds the cumulative size of the successfully-written ACEs. The committed ACL is then truncated-but-self-consistent rather than malformed.

The ksmbd DACL builders are the only check_add_overflow() sites found where an overflow path breaks out of a loop and the destination value is consumed afterward. The other nearby break-style cases either return -EINVAL on overflow (transport_ipc.c) or break without consuming the overflowed destination value afterward (buildid.c).

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
Linux kernel is ubiquitous but ksmbd SMB server is optional and not enabled by default
Data Quality
5 sources
Confidence: Medium

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

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.

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