Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to writable ext4-backed ksmbd share
-
DeliveryOpen large directory on htree readdir path
-
ExploitOverlap QUERY_DIRECTORY with SET_INFO disposition on one FileId
-
ExecutionRace frees ext4 fname RB-tree node
-
ImpactTrigger kernel use-after-free, corruption or panic
Vulnerability Assessment
| Exploitation Conditions | Exploitation requires a specific, non-default stack: ksmbd must be running and exporting a writable share, the share must be backed by ext4, and the attacker must be an authenticated SMB client with both list and delete rights on a target directory. The directory must additionally be large enough to take ext4's dx (hashed htree) readdir path. The actual trigger is a timing race - the client must overlap an SMB2 QUERY_DIRECTORY request with an SMB2 SET_INFO request carrying FILE_DISPOSITION_INFORMATION on the same live FileId so the unlocked ksmbd_vfs_empty_dir() iterator collides with the locked QUERY_DIRECTORY iterator. Limiting factors that reduce real-world risk: authentication with delete rights is mandatory (PR:L, not unauthenticated), ksmbd is not enabled by default and is far less common than userspace Samba, the bug is ext4-specific and only manifests on the dx readdir path, and success depends on winning a non-deterministic kernel race window. |
| Impact | The provided CVSS base score of 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) places this in the high band, but the multi-source signals argue for measured, not emergency, urgency. EPSS is low at 0.16% (5th percentile), there is no CISA KEV listing, and no public exploit is identified - the working reproducer is explicitly held privately by maintainers. The vuln.today Decision label is this_week, consistent with a serious but non-actively-exploited kernel flaw that should be patched promptly rather than treated as an incident. Two signals conflict with the stated vector: the description defines a cross-worker race condition that must be won by overlapping two SMB requests on one FileId, and it is specific to ext4-backed shares on the dx (htree) readdir path - both of which raise real attack complexity above the AC:L in the supplied vector; I independently assess AC:H. The 'Information Disclosure' tag also understates impact, since a kernel use-after-free can corrupt memory and lead to crash or potential privilege escalation, not just disclosure. Net: a genuine kernel UAF worth scheduled patching, but the authentication requirement, non-default ksmbd service, ext4-specific trigger, and timing-dependent race make broad, automated, mass exploitation unlikely at this time. |
| Exploit ScenarioDerived | An authenticated SMB client holding list and delete rights on a writable ksmbd share backed by ext4 opens a directory large enough to use ext4's dx (htree) readdir path, then issues an SMB2 QUERY_DIRECTORY request overlapped with an SMB2 SET_INFO request carrying FILE_DISPOSITION_INFORMATION against the same live FileId. Because the emptiness check runs iterate_dir() on the same filp without holding fp->readdir_lock, the two iterators race and free an ext4 fname RB-tree node still in use, producing a kernel use-after-free (observed under KASAN before a panic). No public exploit code was identified; the reproducer is available privately to maintainers only, so reliable weaponization currently requires independent development and winning a timing race. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 22, 2026
Use-after-free in the Linux kernel's in-kernel ksmbd SMB server, reachable by an authenticated SMB client that holds both list and delete rights on a directory inside a writable, ext4-backed share. Overlapping an SMB2 QUERY_DIRECTORY request with an SMB2 SET_INFO request carrying FILE_DISPOSITION_INFORMATION on the same live FileId makes the unlocked ksmbd_vfs_empty_dir() iteration collide with the lock-protected QUERY_DIRECTORY iterator, corrupting ext4's per-file dx readdir cursor and fname RB tree. The trigger is a non-deterministic kernel race (assessed AC:H), the provided base score is 8.8, no confirmed public exploit code exists (the reporter's reproducer is held privately for maintainers), CISA KEV does not list it, and EPSS is 0.16% (5th percentile); vendor patches are 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1.
RemediationAI
Vendor-released patch: update to Linux 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1 depending on your branch; the corresponding stable commits are 818a9fd779443b931b05c025d85f29680efb26c2, 2a4b6ae380a9f5175f002c1921cf9cbc7ca536ba, 7220980b2423d06a0604516129bfa4cec8a697ae and 5ad61a34963f32fc1637d26e88cf6e02a3b99d08 (https://git.kernel.org/stable/c/5ad61a34963f32fc1637d26e88cf6e02a3b99d08), and the tracking record is https://nvd.nist.gov/vuln/detail/CVE-2026-99556. Until the kernel is updated, the exposure profile itself supplies the practical constraints: the flaw only triggers for an authenticated SMB client that simultaneously holds list and delete rights on a directory in a writable ksmbd share backed by ext4 and large enough to use the dx readdir path, so removing delete rights from untrusted principals or making affected shares read-only eliminates the SET_INFO half of the race, at the cost of breaking legitimate deletion and rename workflows, and the trade-off must be weighed against a this_week, not emergency, priority given no KEV listing, an EPSS of 0.16% and an AC:H race requirement. The lock change is the only complete fix described in the available sources; no partial upstream mitigation is documented.
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 serializes SMB2 QUERY_DIRECTORY handling by taking fp->readdir_lock around its iterate_dir() call on fp->filp, but the SMB2 SET_INFO path resolves the same FileId and invokes ksmbd_vfs_empty_dir() on that same filp without the lock. iterate_dir() only takes the inode read lock, which permits concurrent readers and does not serialize per-file iterator state, so two iterations over one filp can run simultaneously. On ext4's dx (hashed htree) readdir path the directory cursor and the fname RB tree live in file->private_data, and a concurrent reset or refill in one worker frees fname nodes via free_rb_tree_fname() while the other worker is still inside ext4_htree_store_dirent()/htree_dirblock_to_tree()/ext4_htree_fill_tree(), producing slab-use-after-free reads. The supplied KASAN report from an x86_64 SMP multi-shot guest shows exactly that split: the read stack runs under ksmbd-io handle_ksmbd_work through smb2_query_dir while the free stack runs through ksmbd_vfs_empty_dir from smb2_set_info. No CWE identifier is assigned in the input. The fix extends fp->readdir_lock across the entire emptiness check so both iterators over that handle's filp share one lock domain while disposition status handling is preserved; the patched build was verified warning-free under KASAN, three traced request pairs no longer overlapped, and 1,600 reproducer iterations completed with expected statuses and no KASAN report, Oops or panic.
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 SMB service (AV:N) but requires authenticated list+delete rights (PR:L) and winning a timing race on the ext4 dx readdir path (AC:H); the kernel use-after-free yields 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: serialize directory emptiness checks with readdir
SMB2 QUERY_DIRECTORY holds fp->readdir_lock while it calls iterate_dir() on fp->filp. An SMB2 SET_INFO request with FILE_DISPOSITION_INFORMATION can resolve the same FileId and call ksmbd_vfs_empty_dir() on the same filp without that lock.
iterate_dir()'s inode read lock permits concurrent readers and does not serialize per-file iterator state. ext4 stores its dx readdir cursor and fname RB tree in file->private_data. Concurrent reset or refill can therefore free a fname node while the other worker still traverses it or retains its RB-tree link, resulting in use-after-free accesses.
An authenticated SMB client with list and delete rights on a directory in a writable KSMBD share backed by ext4 can trigger this when the directory takes the dx readdir path. The client overlaps an SMB2 QUERY_DIRECTORY request with an SMB2 SET_INFO request carrying FILE_DISPOSITION_INFORMATION on one live FileId.
In one x86_64 SMP KASAN multi-shot guest using ksmbd-for-next at 171df27077fb, the unmodified kernel reported a cross-worker use-after-free before a panic. The first report's access and free stacks show the two request paths directly (trimmed):
BUG: KASAN: slab-use-after-free in ext4_htree_store_dirent+0x488/0x550 Read of size 8 by task kworker/2:0/29 Workqueue: ksmbd-io handle_ksmbd_work Call Trace: ext4_htree_store_dirent+0x488/0x550 htree_dirblock_to_tree+0x535/0x990 ext4_htree_fill_tree+0x319/0xba0 ext4_readdir+0x175a/0x2f40 iterate_dir+0x1b6/0x630 smb2_query_dir+0x1003/0x1cc0
Freed by task 279: free_rb_tree_fname+0x67/0xc0 ext4_readdir+0x13a9/0x2f40 iterate_dir+0x1b6/0x630 ksmbd_vfs_empty_dir+0xa2/0x100 smb2_set_info+0x2ffa/0x45d0
Take fp->readdir_lock across the entire emptiness check. This places both iterators over that handle's filp in the same lock domain while preserving the disposition status handling. The exact code change completed a warning-free x86_64 KASAN bzImage build. Tracing three request pairs showed that the two iterate_dir() calls no longer overlapped and the expected statuses were preserved. A further 1,600 reproducer iterations completed with expected statuses and no KASAN report, Oops, or panic.
The reproducer and complete guest configuration are available privately to maintainers on request.
Executive ViewAI
CVE-2026-99556 is a high-severity use-after-free in the Linux kernel's ksmbd SMB server that, if exploited by an authenticated insider, could crash or corrupt file systems on servers exposing writable SMB shares. While no public exploit exists and exploitation requires specific privileges and a non-deterministic race, successful attacks could disrupt critical file services and jeopardize data integrity.
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-130280
GHSA-5r2v-2338-v6xf
NVD
CVE.org
EPSS
VulDB
Exploit-DB