Skip to main content

Linux ksmbd CVE-2026-74522

| EUVDEUVD-2026-59715 HIGH
2026-08-15 Linux GHSA-r5jm-2247-f5r8
8.8
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

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

  1. Recon
    Obtain valid SMB account credentials
  2. Delivery
    Establish two concurrent sessions to ksmbd service
  3. Exploit
    Open shared file handles across both sessions
  4. Install
    Race file-close against foreign reference drop
  5. C2
    Trigger use-after-free in kernel IDR table
  6. Execute
    Reclaim freed ksmbd_file memory with controlled payload
  7. Impact
    Escalate to kernel code execution

Vulnerability Assessment

Exploitation Conditions

The ksmbd kernel module must be explicitly loaded and actively serving SMB2/SMB3 connections - this is not the default configuration in major enterprise Linux distributions (RHEL, Ubuntu LTS, Debian), which ship and recommend userspace Samba instead. The attacker must possess a valid SMB account with at least read access to a shared resource (CVSS PR:L confirmed by vector). Triggering the race condition requires the attacker to establish at minimum two concurrent SMB sessions to the same server and coordinate file access operations across them with precise timing - this is not passively triggerable from a single connection or by a simple unauthenticated probe. Exploitation is further constrained by: the non-default deployment status of ksmbd, the requirement for valid SMB credentials, and the inherent timing sensitivity of race-condition-based kernel UAFs which may require multiple attempts and target-specific tuning.

Impact

The CVSS 8.8 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) correctly captures that ksmbd is a network service requiring only low-privileged SMB credentials, but AC:L arguably overstates ease of exploitation: the underlying defect is a cross-session race condition demanding precise concurrency between file-close and foreign-reference-drop operations, which imposes a practical exploitation difficulty above what AC:L implies. EPSS at 0.17% (6th percentile) is consistent with this - even a mid-sized municipal IT team in tczew running ksmbd as an internal file server should prioritize patching on its normal vulnerability cadence rather than treating this as an imminent breach-level emergency. The absence of a CISA KEV entry and lack of any known public proof-of-concept further support a measured, scheduled response. The high C/I/A impact triplet is credible for a kernel UAF: successful exploitation typically enables privilege escalation to root or kernel arbitrary code execution. Risk is concentrated exclusively on Linux deployments where the ksmbd module is actively loaded - the majority of enterprise Linux deployments use userspace Samba and are not exposed.

Exploit ScenarioDerived

An attacker holding a low-privileged SMB account opens file handles from one authenticated session while simultaneously running a second concurrent session that acquires temporary references to the same files via internal lookup. By timing the file-close operation in the first session to race against the reference drop in the second session, the attacker triggers the use-after-free condition, leaving a freed ksmbd_file object in the owning session's IDR. If the freed memory is reallocated and controlled before the stale pointer is dereferenced, a kernel privilege escalation path opens. No public proof-of-concept exists at time of analysis, but this class of cross-session race UAF in kernel subsystems is well-understood and has been reliably exploited in analogous Linux kernel bugs.

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 – Aug 17, 2026

Use-after-free memory corruption in the Linux kernel's ksmbd SMB server subsystem exposes systems running the in-kernel file-sharing daemon to potential kernel-level compromise by an authenticated remote attacker. Affected are Linux kernel versions beginning at commit 8510a043d334ecdf83d4604782f288db6bf21d60 (ksmbd introduction) through multiple stable branches, with vendor-released patches confirmed in 6.6.151, 6.12.103, 6.18.44, 7.1.8, and 7.2-rc6. No public exploit code has been identified and EPSS stands at 0.17% (6th percentile), indicating no observed mass exploitation at time of analysis despite the CVSS 8.8 severity rating.

RemediationAI

Upgrade the Linux kernel to a patched stable release: 6.6.151 or later for the 6.6 LTS branch, 6.12.103 or later for the 6.12 LTS branch, 6.18.44 or later for the 6.18 branch, or 7.1.8 or later for the 7.1 branch; the 7.2-rc6 candidate also carries the fix. Individual commits are available directly from the kernel.org stable tree at the five URLs listed in the affected products section. For systems that cannot be immediately upgraded, the most effective compensating control is to unload the ksmbd module (modprobe -r ksmbd) and block inbound TCP port 445 at the host or perimeter firewall - this eliminates exposure entirely with no impact on userspace Samba deployments. If ksmbd is required and cannot be disabled, restricting SMB access to a minimal allowlist of trusted client IPs reduces the attack surface but does not eliminate the race condition. Downstream distribution packages (Debian, Ubuntu, RHEL, SUSE) may lag upstream stable releases; consult each distribution's kernel security errata for package availability.

Affected VersionsENISA

Linux 5.18
Linux 8510a043d334ecdf83d4604782f288db6bf21d60 <9be4a66f019ea90bd9deca70511f4f9ffebf5c6f
Linux patch: 6.18.44
Linux 8510a043d334ecdf83d4604782f288db6bf21d60 <cffbdc86393b0235383a20c8c59bc32f16036459
Linux patch: 7.1.8
Linux patch: 6.6.151
Linux 5.15.38 <5.16
Linux patch: 0
Linux 8510a043d334ecdf83d4604782f288db6bf21d60 <e7188199eff46a636f3436356f0aae039be6dd66
Linux df30cbfd3d8a70e61ce59f63ce5ed2261799ac10
Linux patch: 7.2-rc6
Linux patch: 6.12.103
Linux 8510a043d334ecdf83d4604782f288db6bf21d60 <67aaec2a1fdce3e1dde46c45b5d1ef8cf22f65cd
Linux 8510a043d334ecdf83d4604782f288db6bf21d60 <0c3918c2cee62ec6c9de8d5c73ebfe6f833961ac
Linux 5.17.6 <5.18
Linux aaf1d5ebb358f546414965b39da90107a7ca7ce5

Affected Packages

euvd linux fix: 5.16, 5.18

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 in-kernel SMB2/SMB3 daemon introduced in Linux 5.15, providing native file sharing without userspace Samba. The vulnerability resides in __close_file_table_ids() and involves the lifecycle of ksmbd_file objects tracked via an IDR (ID Radix tree). When ksmbd_close_fd() is called, it marks the file as closed and drops the IDR-owned reference but leaves the stale pointer published in the owning session's IDR until the final reference is released. A second session that independently obtained a temporary reference via ksmbd_lookup_fd_inode() may become the final reference holder; when it calls ksmbd_fd_put(), the internal __put_fd_final() erroneously passes the foreign session's file table to __ksmbd_close_fd(), freeing the object without removing it from the owning session's IDR. The owning session subsequently dereferences this freed pointer during file-table teardown - a textbook CWE-416 use-after-free with potential for controlled memory reuse. CPE cpe:2.3:a:linux:linux:* reflects exposure across the full kernel version range since ksmbd was merged.

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

AV:N reflects ksmbd as a network service; AC:H assigned because successful exploitation requires a cross-session race condition with precise timing, not straightforward request injection; PR:L for required SMB authentication.

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:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 7.5 HIGH
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Red Hat 5.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
Aug 17, 2026 - 06:22 NVD
8.8 (HIGH)
Patch available
Aug 15, 2026 - 13:04 EUVD
CVE Published
Aug 15, 2026 - 12:27 cve.org
HIGH 8.8
CVE Published
Aug 15, 2026 - 12:27 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix use-after-free in __close_file_table_ids()

A ksmbd_file can remain alive after logical close while another session holds a temporary reference obtained through ksmbd_lookup_fd_inode(). ksmbd_close_fd() currently marks the file closed and drops the idr-owned reference, but leaves the pointer published in the closing session's idr until the final reference is dropped.

If the foreign holder performs the final ksmbd_fd_put(), __put_fd_final() supplies the foreign session's file table to __ksmbd_close_fd(). The object is then freed without being removed from its owner's idr, and the owner session later dereferences the stale pointer during file-table teardown.

Remove the volatile id from the owner's idr while ksmbd_close_fd() still holds that table's lock, and clear volatile_id before dropping the idr-owned reference. A later foreign final put then only performs physical destruction and cannot remove the object from the wrong table.

Executive ViewAI

Why It Matters

CVE-2026-74522 affects ksmbd (Linux kernel's native SMB/CIFS server) with a use-after-free vulnerability allowing authenticated remote attackers to corrupt kernel memory and potentially compromise system integrity. While the CVSS 8.8 severity rating reflects significant technical risk, no public exploit code has been identified and real-world threat activity is minimal (EPSS 0.17%), enabling a measured 30-day remediation window. Organizations operating Linux file servers or NAS systems using in-kernel SMB sharing should prioritize patching to mitigate potential privilege escalation and system instability.

Business Impact: High
Compensating Controls

Vendor-released patch: Linux kernel versions 6.6.151, 6.12.103, 6.18.44, 7.1.8, or 7.2-rc6 depending on kernel branch. Pending patching, restrict access to SMB ports (445/tcp and 445/udp) via firewall rules to trusted internal networks only, and disable ksmbd (modprobe -r smb_server) on systems where in-kernel file sharing is not operationally required.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
in-kernel SMB server, not default-enabled in major enterprise distros
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

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 16.0 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy