Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain CIFS mount capability on host
-
DeliveryInvoke SMB mount with oversized UNC path
-
ExploitOverflow fixed unc_path buffer in SMB2_tcon()
-
ExecutionCorrupt adjacent kernel slab objects
-
ImpactEscalate to kernel code execution or crash
Vulnerability Assessment
| Exploitation Conditions | Requires the ability to perform a CIFS/SMB client mount with an attacker-controlled UNC path (the tree/unc= mount option) whose length exceeds MAX_SHARENAME_LENGTH, triggering a slab-out-of-bounds write when cifs_strtoUTF16() writes into the fixed-size unc_path buffer; the bug exists only on kernels after commit 62a1a439e0fd removed the UNC length check. Limiting factors: exploitation is bounded by who may mount CIFS filesystems - normally CAP_SYS_ADMIN, obtainable by root or within an unprivileged user namespace where that is permitted - and the CIFS client (cifs.ko) must be in use; there is no indication a remote SMB server can trigger this, since the overflowing data is the locally supplied mount path, not server-returned data. |
| Impact | Signals conflict and must be reconciled. The input CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, 9.8) describes remote, unauthenticated, network exploitation - but the described mechanism contradicts this: the overflow is in the SMB2_tcon() client routine and is driven by the user-controlled UNC mount path (tree), which is supplied when a CIFS filesystem is mounted, not by a remote peer. Mounting a CIFS share with an attacker-chosen UNC requires mount capability (CAP_SYS_ADMIN, possibly via unprivileged user namespaces), so realistic exploitation is local and privilege-dependent rather than remote/unauthenticated - the AV:N/PR:N vector appears to be a generic NVD auto-score and overstates reachability; verify with the kernel/CIFS maintainers. Supporting this, EPSS is low (0.24%, 16th percentile), there is no KEV listing and no public exploit identified, indicating this is not currently seeing widespread exploitation. Counterbalancing the de-rating: the product is the Linux kernel (ubiquitous), the technical impact is a kernel-heap slab-out-of-bounds write (full C/I/A on success), and the vuln.today decision label is act_now with a vendor patch available. Net assessment: a genuinely serious kernel memory-corruption bug that should be patched promptly on CIFS-client hosts, but the realistic risk is local privilege escalation or local DoS, not the internet-facing 9.8 that the raw CVSS implies. |
| Exploit ScenarioDerived | A local user (or a process in a user namespace holding mount capability) invokes a CIFS/SMB mount supplying a crafted UNC path longer than MAX_SHARENAME_LENGTH. During tree connect, cifs_strtoUTF16() writes the oversized UTF-16 path past the end of the fixed 672-byte unc_path heap buffer, corrupting adjacent slab objects and enabling kernel-heap exploitation or a crash. No public exploit code is identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 22, 2026
A heap slab-out-of-bounds write in the Linux kernel CIFS/SMB client (cifs.ko) lets a user who can mount a CIFS filesystem with an oversized, attacker-controlled UNC path (the tree/unc= mount option) corrupt kernel heap memory, with assessed impact of high confidentiality, integrity and availability loss. Only kernels built after commit 62a1a439e0fd ("cifs: clean up handling of unc= option") removed the UNC length check are affected; vendor fixes are available in 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1. Exploitation requires mount privileges (CAP_SYS_ADMIN, or an unprivileged user namespace where permitted) and local control of the mount string - there is no indication a remote SMB server can supply the overflowing data - and no public exploit code was identified at time of analysis; EPSS is 0.24% (16th percentile). Note the scoring conflict: NVD rates this AV:N/PR:N (9.8) while the assessed vector is AV:L/PR:L (8.8-equivalent severity class), and the priority label is act_now, so patching should be scheduled promptly for any host that mounts CIFS shares or permits unprivileged user namespaces.
RemediationAI
Vendor-released patch: upgrade to Linux 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1 (or the equivalent backport carrying stable commits 75fd4c72aa3dcfabb318144636f416be6796d423, acf25a7be39dccdbf60fdf3d437dd7832fa4b6d3, d26f7fbca42532c6c79efdceb4bd5198e1849314 or 73cc469b0ff7551f8537ea919709973e6dc4f514), applying distribution kernel updates in preference to standalone mainline builds. Because the priority label is act_now, treat this as a scheduled near-term update for any host whose kernel includes commit 62a1a439e0fd and that mounts CIFS/SMB shares. Where an immediate kernel update is not possible, compensating controls are: prevent unprivileged user namespaces from being used to gain mount capability (for example setting user.max_user_namespaces=0 or the distribution's unprivileged_userns_clone knob), at the cost of breaking unprivileged container runtimes and sandboxing tools; restrict CIFS mount rights to trusted administrators so untrusted users cannot supply the unc=/tree= string, which narrows exposure but does not remove it for privileged operators; keep locally specified UNC paths within MAX_SHARENAME_LENGTH so the fixed-size unc_path buffer cannot be overrun and within MAX_TREE_SIZE to avoid strscpy() truncation and reconnect/failover failures; and, on hosts with no CIFS requirement, block loading of cifs.ko (modprobe blacklist), accepting that legitimate SMB client functionality will be unavailable. Advisory details are at https://nvd.nist.gov/vuln/detail/CVE-2026-99385 and the git.kernel.org stable commit links above.
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
The flaw lives in SMB2_tcon() in the kernel's SMB2/3 client, which negotiates a tree connect when a CIFS filesystem is mounted. The function allocated unc_path as a fixed buffer of MAX_SHARENAME_LENGTH * 2 bytes (672 bytes, i.e. 336 UTF-16 code units) but passed the user-controlled UNC path length straight to cifs_strtoUTF16(), a conversion helper that assumes the destination is large enough and writes strlen(tree) + 1 UTF-16 code units. Commit 62a1a439e0fd removed the earlier length validation on the unc= mount option while the fixed-size allocation in SMB2_tcon() remained, so a mount path longer than MAX_SHARENAME_LENGTH overruns the slab object. The same commit-era code truncates tree names longer than MAX_TREE_SIZE via strscpy() into cifs_tcon::tree_name, which additionally causes later reconnects or failovers to fail. This is a classic out-of-bounds heap write class of defect (no CWE identifier is supplied in the source data); the trigger is a locally supplied mount string rather than server-returned data, which is why the exploitation path is gated by the ability to perform the mount. The fix validates that tree length does not exceed MAX_TREE_SIZE (returning -EINVAL) and then dynamically sizes unc_path to accommodate all UTF-16 code units for in-range paths.
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
Sources disagree (Medium–Critical)AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Trigger is a locally supplied CIFS mount UNC path requiring mount capability, so AV:L and PR:L; a kernel-heap overflow yields full C/I/A, hence H/H/H.
vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.
CVSS VectorVendor: Linux
Lifecycle Timeline
4DescriptionCVE.org
In the Linux kernel, the following vulnerability has been resolved:
smb: client: fix buffer overflow in SMB2_tcon()
In SMB2_tcon(), unc_path is allocated with a fixed buffer size of MAX_SHARENAME_LENGTH * 2 bytes (672 bytes). However, the user-controlled UNC path (tree) length is passed to cifs_strtoUTF16(), which assumes the destination buffer is large enough and writes strlen(tree) + 1 UTF-16 code units.
Commit 62a1a439e0fd ("cifs: clean up handling of unc= option") removed the length check on UNC mount options, allowing mount paths to exceed MAX_SHARENAME_LENGTH while retaining the fixed-size buffer allocation in SMB2_tcon(). Consequently, an oversized UNC string causes cifs_strtoUTF16() to write past the end of the heap object, resulting in a slab-out-of-bounds write. Furthermore, if a tree exceeds MAX_TREE_SIZE characters, strscpy() truncates it in cifs_tcon::tree_name, causing subsequent reconnects or failovers to fail.
Fix this by first verifying that the length of tree does not exceed MAX_TREE_SIZE, returning -EINVAL if it does. Then, dynamically allocate unc_path based on the length of tree so that it safely accommodates all UTF-16 code units for paths within MAX_TREE_SIZE.
[pc: remove unused MAX_SHARENAME_LENGTH]
Executive ViewAI
CVE-2026-99385 is a critical Linux kernel vulnerability in the CIFS/SMB client that allows local users with mount privileges to corrupt kernel memory, potentially leading to system compromise through high confidentiality, integrity, and availability loss. Organizations running affected kernels (built after the UNC length check removal) on servers or workstations are at risk, especially in multi-tenant or containerized environments where unprivileged users may mount filesystems. Leadership should prioritize patching because exploitation, while requiring local access, can result in full system takeover and data breach.
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
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.
EUVD-2026-130043
GHSA-wpgh-9h8m-65v9
NVD
CVE.org
EPSS
VulDB
Exploit-DB