Skip to main content

Linux ksmbd EUVDEUVD-2026-38734

| CVE-2026-52944 MEDIUM
2026-06-24 Linux GHSA-v762-vr2v-9263
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to ksmbd SMB share
  2. Delivery
    Open file handle on target file
  3. Exploit
    Send crafted SMB2 IOCTL with FSCTL_SET_SPARSE
  4. Execution
    Bypass absent share-level and handle-level permission checks
  5. Persist
    Write unauthorized sparse xattr to file
  6. Impact
    Cause data corruption or availability disruption

Vulnerability Assessment

Exploitation Conditions

Exploitation requires an active, authenticated SMB session to a Linux host with the ksmbd kernel module loaded and serving at least one share. For the first bypass, the targeted share must be configured as read-only in the ksmbd share configuration - clients that are denied all other write operations can still issue FSCTL_SET_SPARSE due to the absent KSMBD_TREE_CONN_FLAG_WRITABLE check. For the second bypass, any writable share is affected when the attacker's file handle was opened without FILE_WRITE_DATA or FILE_WRITE_ATTRIBUTES permissions, which can occur when share-level access grants less than full write rights. Systems running Samba (smbd) instead of ksmbd are entirely unaffected. Exploitation is further bounded to kernel versions containing the FSCTL_SET_SPARSE implementation (from commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9) and not yet updated to the fix commits.

Impact

The official CVSS 3.1 score of 5.5 (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) rates this as Medium severity, but several signals warrant scrutiny. The AV:L classification is inconsistent with ksmbd's operational reality: the attacker accesses the service over the network via the SMB protocol (TCP/445), not through a local process interface. NVD may have applied AV:L to reflect that an established, authenticated session is a prerequisite rather than pure unauthenticated network reachability. The I:N rating is arguably understated - the flaw allows unauthorized modification of file metadata (xattr), which is an integrity violation; the omission may reflect that the sparse-attribute toggle alone does not directly expose user-controlled data to alteration. The A:H rating is defensible: improperly toggling a file's sparse designation can cause the OS to treat previously-written blocks as holes, leading to data loss or service disruption. EPSS at 0.22% and no KEV listing indicate no known active or widespread exploitation. Real-world risk is low for hardened deployments but elevated where ksmbd shares are exposed to untrusted network clients, particularly given the low attack complexity once authenticated access is obtained.

Exploit ScenarioDerived

An attacker with authenticated access to a ksmbd-served read-only SMB share opens a handle to any file visible on that share and sends a crafted SMB2 IOCTL request bearing the FSCTL_SET_SPARSE control code. Because fsctl_set_sparse() performs no share-writability check, the kernel processes the request and modifies the file's sparse xattr despite the read-only share policy. On a writable share, a client whose file handle was granted only read rights achieves the same outcome by exploiting the missing per-handle FILE_WRITE_ATTRIBUTES check. No public exploit code has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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 – Jul 08, 2026

Unauthorized file attribute modification in the Linux kernel's ksmbd SMB server allows authenticated SMB clients to invoke FSCTL_SET_SPARSE and alter a file's sparse xattr without required permissions, bypassing both share-level and per-handle access controls. Two distinct authorization gaps exist: clients on read-only shares can issue the control code because fsctl_set_sparse() omits the KSMBD_TREE_CONN_FLAG_WRITABLE check that other FSCTL write operations enforce, and clients on writable shares with insufficient handle rights (lacking FILE_WRITE_DATA or FILE_WRITE_ATTRIBUTES) can modify the attribute because per-handle checks are entirely absent. No active exploitation is confirmed - the vulnerability is absent from CISA KEV and carries an EPSS of 0.22% (12th percentile) - but the exposure surface is any network-reachable ksmbd deployment serving untrusted SMB clients.

RemediationAI

The primary remediation is to upgrade the Linux kernel to a patched stable release: 6.6.143, 6.18.35, 7.0.12, or 7.1. The four upstream fix commits at git.kernel.org (referenced above) are suitable for backporting to distributions maintaining their own stable kernels. Where a kernel update cannot be deployed immediately, the most targeted compensating control is to unload the ksmbd module (rmmod ksmbd) and migrate SMB serving to Samba, which does not carry this flaw - though this introduces Samba's own operational overhead and configuration complexity. If ksmbd must remain loaded, restricting SMB access (TCP port 445) at the network perimeter or host firewall to only trusted client IP ranges limits the attack surface without eliminating the vulnerability; untrusted clients who bypass that control retain exploitability. Ensuring all ksmbd shares are configured with authenticated-only access reduces exposure but does not close the handle-level bypass for low-privilege authenticated users.

Affected VersionsENISA

Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <cc57232cae23c0df91b4a59d0f519141ce9b5b02
Linux patch: 6.6.143
Linux patch: 0
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <3127a884525dc8ca4def73254bfcd3ccef0bf812
Linux patch: 7.1
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <aef151bcfa494bfe983669de2726734b534adb73
Linux patch: 7.0.12
Linux patch: 6.18.35
Linux 5.15
Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <de9eb0b44fa9123170e6245b49638e0e453c10f8

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 in-kernel SMB3 server implementation merged into the Linux mainline in kernel 5.15, designed as a high-performance alternative to Samba running in kernel space. The vulnerable function fsctl_set_sparse() handles the FSCTL_SET_SPARSE filesystem control code, which toggles a file's sparse attribute - controlling whether unwritten extents are stored as holes rather than zero-filled blocks - and persists that state as a kernel extended attribute (xattr). The authorization gap is structural: the code paths handling other FSCTL write operations already call test_tree_conn_flag(work->tcon, KSMBD_TREE_CONN_FLAG_WRITABLE) for share-level gating and check per-handle access masks, but these guards were never added to fsctl_set_sparse(). An additional resource-management flaw (leaking file references on error) was simultaneously fixed by introducing a goto out pattern. Although the NVD record lists no CWE, the root cause class is CWE-862 (Missing Authorization). Affected CPE: cpe:2.3:a:linux:linux:*.

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

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.1 HIGH

ksmbd is network-exposed via SMB/TCP-445, so AV:N; PR:L reflects required authenticated SMB session; I:L captures unauthorized xattr write; A:H retained for sparse-attribute corruption risk.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
SUSE 4.3 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
CVSS changed
Jul 08, 2026 - 19:07 NVD
5.5 (MEDIUM)
Patch available
Jun 24, 2026 - 11:01 EUVD
CVE Published
Jun 24, 2026 - 09:59 nvd
MEDIUM 5.5
CVE Published
Jun 24, 2026 - 09:59 cve.org
UNKNOWN (no severity yet)

DescriptionNVD

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

ksmbd: fix FSCTL permission bypass by adding a permission check for FSCTL_SET_SPARSE

FSCTL_SET_SPARSE in fsctl_set_sparse() modifies the file's sparse attribute and saves it through xattr without any permission checks.

This exposes two issues:

  1. A client on a read-only share can change the sparse attribute

on files it opened, even though the share is read-only. Other FSCTL write operations already check test_tree_conn_flag(work->tcon, KSMBD_TREE_CONN_FLAG_WRITABLE), but FSCTL_SET_SPARSE does not.

  1. Even on writable shares, clients without FILE_WRITE_DATA or

FILE_WRITE_ATTRIBUTES access should not modify the sparse attribute. Similar handle-level checks exist in other functions but are missing here.

Add both share-level writable check and per-handle access check. Use goto out on error to avoid leaking file references.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Medium
ksmbd available since kernel 5.15, not universally enabled
Data Quality
6 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
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: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 16.0 Affected

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