Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to ksmbd share (guest or creds)
-
DeliveryIssue SMB2 QUERY_DIRECTORY on target dir
-
ExploitConcurrently rename dir and rmdir old parent
-
ExecutionWorker dereferences freed parent dentry
-
PersistNull-ptr-deref / slab use-after-free
-
ImpactKernel crash or memory corruption
Vulnerability Assessment
| Exploitation Conditions | Requires the target host to run the in-kernel ksmbd SMB server (CONFIG_SMB_SERVER) with a share exported and reachable by the attacker; the attacker needs an SMB session that may be guest or authenticated (PR:L). The attacker, or any concurrent writer with write access, must rename the directory being listed under a new parent AND delete the original parent during the SMB2 QUERY_DIRECTORY operation. Limiting factors: this is a race condition (timing-dependent, may require multiple attempts), ksmbd is not enabled in default Linux installations, and the directory must be actively enumerated at the moment the rename+rmdir occurs. |
| Impact | Signals are moderate and internally consistent rather than alarming. The provided CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N, C:H/I:H/A:H = 8.8) reflects a remotely reachable, low-privilege flaw with high impact, but the mechanism is a use-after-free/null-ptr-deref reached through a race (concurrent rename + rmdir during directory listing), which argues for higher attack complexity than the input's AC:L. EPSS is low (0.17%, 6th percentile) and there is NO KEV listing and no public exploit reference in the input - only vendor patch commits - so exploitation status is 'no public exploit identified at time of analysis.' Exploiting a kernel slab-UAF for anything beyond a crash is non-trivial, so realistic near-term risk is denial-of-service (kernel oops/panic) with theoretical escalation to memory disclosure or code execution. The vuln.today priority is 'this_week,' consistent with 'patch on normal expedited cadence, not an emergency.' The key limiting factor not captured by the network CVSS vector is that this only affects hosts running the in-kernel ksmbd SMB server with an exported share - verify whether ksmbd is actually enabled before prioritizing. |
| Exploit ScenarioDerived | An SMB client with guest or authenticated access to a ksmbd share lists a directory while, concurrently, that directory is renamed under a new parent and the old parent is rmdir'd, so the worker dereferences a freed parent dentry. This produces a kernel null-ptr-deref and slab-use-after-free (observed on a KASAN build), most reliably causing a crash/DoS. No public exploit is identified; success depends on winning a race, so attack complexity is high. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 22, 2026
Directory enumeration in the in-kernel ksmbd SMB server can dereference a freed parent dentry, giving an SMB client a slab use-after-free that leads to kernel memory corruption or denial of service. The flaw affects Linux kernels built with CONFIG_SMB_SERVER where ksmbd serves an exported share; the attacker needs an SMB session - guest or authenticated (CVSS PR:L) - and must list a directory while that directory is concurrently renamed under a new parent and its former parent is removed. Exploitation is timing-dependent (assessed AC:H, score 8.8 in the CVE record versus 8.8 in our assessed vector with high complexity), ksmbd is not enabled in default installations, and no public exploit code has been identified at time of analysis; EPSS is low at 0.17% (6th percentile).
RemediationAI
Vendor-released patch: apply the ksmbd fix in Linux 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1 (stable commits https://git.kernel.org/stable/c/32934b13b1a63c86d2fa68df0bfb28c51ce38879, https://git.kernel.org/stable/c/93566781118cdff874023d5ca4e7b8054baaec31, https://git.kernel.org/stable/c/b62ef8cfec9351662e42cbf7da2d743068699bba, https://git.kernel.org/stable/c/171df27077fb49b4af2c53ad2cedcd0e39664fe8), or pick up the distro kernel errata carrying those stable releases; details are also at https://nvd.nist.gov/vuln/detail/CVE-2026-99540. Prioritisation is 'this_week': the race is timing-dependent and ksmbd is off by default, so hosts that do not load ksmbd (CONFIG_SMB_SERVER) need no action beyond normal kernel maintenance. Where an immediate kernel update is not possible, the exposure is tied to running ksmbd, so confirming whether the module is loaded and, if it is not required, keeping it unloaded removes the attack surface at the cost of in-kernel SMB service - moving that sharing workload to a patched SMB implementation carries the trade-off of a separate service to maintain.
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 SMB3 server implemented in the Linux kernel (CONFIG_SMB_SERVER). When responding to an SMB2 QUERY_DIRECTORY request, ksmbd_populate_dot_dotdot_entries() synthesises the "." and ".." entries, taking the latter from the open directory's d_parent and handing that pointer to ksmbd_vfs_fill_dentry_attrs(), which reaches vfs_getattr() and vfs_getxattr() (via ksmbd_vfs_get_dos_attrib_xattr) on the referenced inode. The code did not hold a reference on that parent dentry. If a concurrent rename moves the enumerated directory under a new parent, the old parent drops its last reference; a subsequent rmdir leaves it as a negative dentry with d_inode cleared, and after the RCU grace period the dentry itself is freed while the ksmbd worker still holds the raw pointer - a classic lifetime/reference-counting defect (CWE was not assigned in the feed; the observed failure modes are null-ptr-deref and slab-use-after-free under KASAN). The upstream fix converts the path to the dentry reference-counting APIs: dget_parent() for the parent, a matching dget() on ".", and dput() once ksmbd_vfs_fill_dentry_attrs() returns or the pattern does not match.
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:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-reachable via SMB with guest/authenticated access (PR:L); the trigger is an explicitly described concurrent rename/rmdir race, so AC:H; kernel UAF justifies high C/I/A.
Primary rating from Vendor (Linux).
CVSS VectorVendor: Linux
Lifecycle Timeline
4DescriptionCVE.org
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix parent dentry lifetime in directory enumeration
ksmbd_populate_dot_dotdot_entries() builds the ".." entry from the open directory's d_parent and passes that pointer to ksmbd_vfs_fill_dentry_attrs() without taking a reference. That pointer is only valid while the directory stays under this parent. If a concurrent rename moves the directory elsewhere, the old parent loses its last reference; a following rmdir then turns it into a negative dentry with d_inode cleared, and after the RCU grace period the dentry itself is freed. The worker still holds the raw pointer and dereferences d_inode through vfs_getattr() and vfs_getxattr().
A remote SMB client, authenticated or guest, triggers this by listing a directory while that directory is moved under a new parent and the old parent is deleted. It can be done by the client itself with write access or by other concurrent writers, triggering null-ptr-deref and slab-use-after-free on a KASAN build.
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] Workqueue: ksmbd-io handle_ksmbd_work RIP: 0010:xattr_permission+0x9d/0x160 Call Trace: vfs_getxattr+0x9c/0x1b0 ksmbd_vfs_getxattr+0x82/0x100 ksmbd_vfs_get_dos_attrib_xattr+0x7f/0x130 ksmbd_vfs_fill_dentry_attrs+0x435/0x650 ksmbd_populate_dot_dotdot_entries+0x25e/0x630 smb2_query_dir+0xcf9/0x1a20 handle_ksmbd_work+0x5f1/0x1c80 process_one_work+0x90b/0x19d0
Fix by using the dentry reference counting APIs: take the parent with dget_parent(), take a matching dget() on ".", and dput() the dentry once ksmbd_vfs_fill_dentry_attrs() has returned or the pattern does not match.
Executive ViewAI
CVE-2026-99540 is a high-severity flaw in the Linux kernel's ksmbd SMB server that could allow an SMB client to crash or corrupt kernel memory, leading to denial of service or potential system compromise. While ksmbd is not enabled by default and exploitation requires precise timing with no public exploit currently identified, any organization running ksmbd-enabled file shares-especially those exposed to untrusted networks-faces operational disruption and data integrity risks. Leadership should prioritize patching affected systems to maintain service availability and protect sensitive data.
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-130264
GHSA-75r5-7cvh-h27p
NVD
CVE.org
EPSS
VulDB
Exploit-DB