Skip to main content

Linux ksmbd CVE-2026-99389

| EUVDEUVD-2026-130047 HIGH
2026-11-19 Linux GHSA-rjh6-wp8w-j3h5
7.5
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to ksmbd-exported SMB share
  2. Delivery
    Create directory with ~2048-byte name
  3. Exploit
    Enumerate directory to trigger UTF-16 conversion
  4. Execution
    Overflow under-sized kernel buffer
  5. Impact
    Corrupt adjacent kernel heap memory

Vulnerability Assessment

Exploitation Conditions

Requires the in-kernel ksmbd SMB server to be enabled and actively exporting a share (not a default configuration on most Linux systems). An attacker needs an authenticated SMB session (PR:L) with permission to create a directory whose name, when converted from ASCII to UTF-16, exceeds the PATH_MAX cap - the description's example is a 2048-byte ASCII name expanding to 4098 bytes. The overflow is reached on the directory-enumeration path. Limiting factors: ksmbd is uncommon versus userspace Samba, authentication is required, and the CVSS marks attack complexity High, reflecting the need to craft a name of sufficient length; the precise trigger beyond the name-length condition is as described in the commit and not further detailed.

Impact

This is a kernel heap out-of-bounds write in ksmbd, the in-kernel SMB server: ksmbd_convert_dir_info_name() allocates only PATH_MAX (4096) bytes but a 2048-byte ASCII directory name expands to 4098 bytes as UTF-16, so the conversion writes past the buffer. Severity signals are mixed. The provided CVSS is 7.5 (AV:N/AC:H/PR:L/UI:N) with C:H/I:H/A:H, indicating a network-reachable but authenticated and high-complexity flaw with kernel-level impact. EPSS is low at 0.22% (13th percentile), there is no CISA KEV listing, and no PoC or exploit reference appears in the input (references are only the stable fix commits and the NVD/EUVD page), so exploitation status is: no public exploit identified at time of analysis. The vuln.today decision label is 'this_week', consistent with a real-but-not-emergency priority. The key practical dampener is reach: ksmbd must be explicitly enabled and exporting a share, which is uncommon compared with userspace Samba, and exploitation requires an authenticated SMB session (PR:L). Note also a data conflict: the input tag is 'Information Disclosure', but the description explicitly states the code 'writes past the end of that buffer' - this is a memory-corruption / out-of-bounds write, not an information-disclosure primitive; verify tag classification.

Exploit ScenarioDerived

An authenticated SMB client connected to a ksmbd-exported share creates a directory whose name is long enough (around 2048 ASCII bytes) that its UTF-16 conversion exceeds PATH_MAX. When that directory is enumerated, ksmbd_convert_dir_info_name() under-allocates and writes the converted name past the end of the kernel buffer, corrupting adjacent kernel heap memory. No public PoC is referenced, and the CVSS AC:H reflects the non-trivial precondition of crafting a sufficiently long name.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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 22, 2026

A heap out-of-bounds write exists in ksmbd, the in-kernel SMB server shipped with the Linux kernel, where ksmbd_convert_dir_info_name() caps its UTF-16 conversion buffer at PATH_MAX (4096 bytes) while a 2048-byte ASCII directory name expands to 4098 bytes including the terminator, so the conversion writes past the end of the allocation on the directory-enumeration path. Only systems that have ksmbd enabled and actively exporting a share are exposed, and an attacker must hold an authenticated SMB session (CVSS PR:L) with permission to create a sufficiently long directory name, which is why attack complexity is rated High (AC:H); impact on confidentiality, integrity and availability is High. No public exploit code or PoC reference appears in the available intelligence, the issue is not in CISA KEV, and EPSS is 0.22% (13th percentile), so real-world exploitation has not been observed and the vuln.today priority is this_week rather than act_now.

RemediationAI

Vendor-released patches are available: upgrade to Linux 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1 depending on your branch, or apply the corresponding stable commit (e736ee3660eac5922729a9b3c55cecd74611663c, 93d1fbe38f0c1f230fdd24410353b1fd9e5883d3, c8a4c381fd68895bbb077df9b5322c8987b31cf5, f1f37834eaba5904103af1f18afe3510c7e9dc71) from https://git.kernel.org/stable/ and the NVD record at https://nvd.nist.gov/vuln/detail/CVE-2026-99389; consult your distribution's kernel advisory for the exact rebuilt package version. Where an immediate kernel update is not possible, the most effective mitigation is to stop exposing the vulnerable code at all by not loading ksmbd - blacklist or do not install the ksmbd module and use userspace Samba instead - with the trade-off that in-kernel SMB sharing is lost and clients must be pointed at the replacement service. If ksmbd must stay enabled, restrict the exported shares to trusted, authenticated accounts and limit which users can create directories, which reduces exposure but does not remove the underlying flaw since the overflow is reachable by any authenticated session permitted to create a long enough directory name. Note that updating the kernel is the only complete fix; the configuration changes above are compensating controls only.

Affected VersionsENISA

Linux patch: 6.12.117
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <93d1fbe38f0c1f230fdd24410353b1fd9e5883d3
Linux patch: 0
Linux patch: 7.3.2
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <c8a4c381fd68895bbb077df9b5322c8987b31cf5
Linux 5.15
Linux patch: 7.4-rc1
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <f1f37834eaba5904103af1f18afe3510c7e9dc71
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <e736ee3660eac5922729a9b3c55cecd74611663c
Linux patch: 6.18.61

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 SMB/CIFS server implementation that runs inside the Linux kernel rather than in userspace like Samba, so a buffer-handling error in its directory-listing code corrupts kernel heap memory. When ksmbd enumerates directory entries it converts on-disk ASCII/byte names into UTF-16 for the SMB response; because each input byte can become one UTF-16 code unit (two bytes), the required output size is up to twice the input length plus a terminator. The buggy routine hard-capped that allocation at PATH_MAX (4096 bytes), which is insufficient for a 2048-byte ASCII name that needs 4098 bytes with the terminator, producing a write of a few bytes beyond the end of the kmalloc'd buffer. The upstream fix removes the fixed cap, sizes the buffer as one UTF-16 code unit per input byte plus the terminator, and switches to kmalloc_array() so the size arithmetic is overflow-checked. The CPE data identifies the Linux kernel as the affected product, and no CWE identifier was supplied with the record, so the root-cause classification here is derived from the commit description (incorrect buffer-size computation leading to an out-of-bounds write) rather than an assigned CWE. The precise trigger conditions beyond the name-length requirement are as described in the upstream commit and are not further detailed in the available sources.

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

Reachable over the network via ksmbd but needs an authenticated SMB session (PR:L) and a crafted long directory name (AC:H); kernel heap corruption yields high C/I/A, scope unchanged.

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

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

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

Lifecycle Timeline

4
CVSS changed
Nov 22, 2026 - 11:22 NVD
7.5 (HIGH)
Patch available
Nov 19, 2026 - 16:18 EUVD
CVE Published
Nov 19, 2026 - 14:23 cve.org
HIGH 7.5
CVE Published
Nov 19, 2026 - 14:23 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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

smb: server: size directory name conversion buffer correctly

A 2048-byte ASCII directory name needs 4098 bytes when converted to UTF-16, including the terminator. ksmbd_convert_dir_info_name() caps its allocation at PATH_MAX and writes past the end of that buffer.

Allocate space for one UTF-16 code unit per input byte plus the terminator. Use kmalloc_array() to check the size calculation.

Executive ViewAI

Why It Matters

A heap out-of-bounds write vulnerability in the Linux kernel's ksmbd SMB server affects organizations that have enabled ksmbd and are actively exporting shares. An attacker with an authenticated SMB session and permission to create a long directory name could write beyond allocated memory, potentially compromising confidentiality, integrity, and availability of the affected system. However, no public exploit exists and exploitation has not been observed, so immediate action is not required but patching should be prioritized within the standard cycle.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Medium
Linux kernel is ubiquitous, but ksmbd SMB server is an optional, rarely-enabled component
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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
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
Medium

Priority Score

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

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