Skip to main content

Linux ksmbd EUVDEUVD-2026-130264

| CVE-2026-99540 HIGH
2026-11-19 Linux GHSA-75r5-7cvh-h27p
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 ksmbd share (guest or creds)
  2. Delivery
    Issue SMB2 QUERY_DIRECTORY on target dir
  3. Exploit
    Concurrently rename dir and rmdir old parent
  4. Execution
    Worker dereferences freed parent dentry
  5. Persist
    Null-ptr-deref / slab use-after-free
  6. Impact
    Kernel 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.

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

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

Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <b62ef8cfec9351662e42cbf7da2d743068699bba
Linux patch: 6.18.61
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <93566781118cdff874023d5ca4e7b8054baaec31
Linux patch: 7.4-rc1
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <171df27077fb49b4af2c53ad2cedcd0e39664fe8
Linux patch: 6.12.117
Linux patch: 7.3.2
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <32934b13b1a63c86d2fa68df0bfb28c51ce38879
Linux patch: 0
Linux 5.15

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

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

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/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:44 cve.org
HIGH 8.8
CVE Published
Nov 19, 2026 - 14:44 cve.org
UNKNOWN (no severity yet)

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
Linux is ubiquitous, but the vulnerable ksmbd SMB server is opt-in, not default-enabled
Data Quality
5 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