Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to ksmbd-exported SMB share
-
DeliveryCreate directory with ~2048-byte name
-
ExploitEnumerate directory to trigger UTF-16 conversion
-
ExecutionOverflow under-sized kernel buffer
-
ImpactCorrupt 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (Linux).
CVSS VectorVendor: Linux
Lifecycle Timeline
4DescriptionCVE.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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-130047
GHSA-rjh6-wp8w-j3h5
NVD
CVE.org
EPSS
VulDB
Exploit-DB