Skip to main content

Linux ksmbd CVE-2026-99556

| EUVDEUVD-2026-130280 HIGH
2026-11-19 Linux GHSA-5r2v-2338-v6xf
8.8
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to writable ext4-backed ksmbd share
  2. Delivery
    Open large directory on htree readdir path
  3. Exploit
    Overlap QUERY_DIRECTORY with SET_INFO disposition on one FileId
  4. Execution
    Race frees ext4 fname RB-tree node
  5. Impact
    Trigger 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.

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

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

Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <5ad61a34963f32fc1637d26e88cf6e02a3b99d08
Linux patch: 7.4-rc1
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <2a4b6ae380a9f5175f002c1921cf9cbc7ca536ba
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <7220980b2423d06a0604516129bfa4cec8a697ae
Linux 5.15
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <818a9fd779443b931b05c025d85f29680efb26c2
Linux patch: 0
Linux patch: 6.12.117
Linux patch: 6.18.61
Linux patch: 7.3.2

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 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

Vendor (Linux) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.5 HIGH

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.

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:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 6.5 MEDIUM

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

Attack Vector
Network
Attack Complexity
Low
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
8.8 (HIGH)
Patch available
Nov 19, 2026 - 16:18 EUVD
CVE Published
Nov 19, 2026 - 14:45 cve.org
HIGH 8.8
CVE Published
Nov 19, 2026 - 14:45 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Low
in-kernel ksmbd SMB server rarely deployed; userspace Samba dominates
Data Quality
4 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
High

Priority Score

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