CVE-2026-68457

ksmbd: use opener credentials for FSCTL mutations

Published Aug 15, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ksmbd: use opener credentials for FSCTL mutations

SET_SPARSE, SET_ZERO_DATA and SET_COMPRESSION operate on an open SMB
handle but call VFS xattr, fallocate or fileattr helpers with the current
ksmbd worker credentials. Those helpers can revalidate inode permissions,
ownership and LSM policy independently of the SMB handle access mask.

Run each operation with the credentials captured in the target file when
the handle was opened. Keep credential handling local to these single-file
FSCTLs rather than applying session credentials to the complete IOCTL
handler, which also contains handle-less and multi-handle operations.

Analysis

AI-generated

Technical impact

This flaw occurs in the ksmbd SMB daemon of the Linux kernel, where certain FSCTL commands that modify file attributes—such as SET_SPARSE, SET_ZERO_DATA, and SET_COMPRESSION—are executed with the credentials of the kernel worker thread rather than the credentials of the client that opened the file. Because the helper functions perform inode permission checks using those worker credentials, an attacker can perform metadata or content modifications on files to which they normally would not have access, thereby violating the intended access controls and potentially corrupting data or leaking sensitive information.

Affected Systems

All installations of the Linux kernel that include the ksmbd component and have not applied the upstream patch commit 1e112c47 (or any subsequent commits that fixed the issue) are affected. This encompasses every Linux distribution that ships a ksmbd daemon in the kernel at any point before the patch, regardless of vendor or version detachment.

Risk and Exploitability

The vulnerability can be exercised by an attacker who can send the relevant FSCTL commands through an SMB session to the ksmbd service. The requirement for only standard SMB FSCTL operations makes the remote exploitation path plausible, although the original description does not explicitly state that the attack is network‑based; this inference is based on the fact that ksmbd mediates SMB client requests over the network. The EPSS score of less than 1% indicates a very low but non‑zero probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog, but the absence of these metrics does not diminish the high impact of enabling elevated kernel‑level operations. The CVSS score of 9.1 underscores the critical severity of this issue. Consequently, the risk of a successful exploitation remains high if unmitigated.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that contains the ksmbd patch (commit 1e112c47 or newer). If an official update is not yet available for your distribution, apply the upstream patch manually.
  • If a kernel upgrade is not feasible, disable the ksmbd service or block its listening port (TCP 445) to stop untrusted SMB traffic from reaching the vulnerable component.
  • Limit SMB connections to trusted hosts only and monitor for anomalous FSCTL usage such as repeated SET_SPARSE, SET_ZERO_DATA, or SET_COMPRESSION commands.

Generated by OpenCVE AI on August 18, 2026 at 05:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8781-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-8816-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8816-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8816-3 Linux kernel (Oracle) vulnerabilities
Ubuntu USN Ubuntu USN USN-8816-4 Linux kernel (GKE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8917-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8918-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9192-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-285
Type Values Removed Values Added
Weaknesses CWE-285
Type Values Removed Values Added
Weaknesses CWE-269
CWE-640
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-269
CWE-640
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: use opener credentials for FSCTL mutations SET_SPARSE, SET_ZERO_DATA and SET_COMPRESSION operate on an open SMB handle but call VFS xattr, fallocate or fileattr helpers with the current ksmbd worker credentials. Those helpers can revalidate inode permissions, ownership and LSM policy independently of the SMB handle access mask. Run each operation with the credentials captured in the target file when the handle was opened. Keep credential handling local to these single-file FSCTLs rather than applying session credentials to the complete IOCTL handler, which also contains handle-less and multi-handle operations.
Title ksmbd: use opener credentials for FSCTL mutations
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-270

    Privilege Context Switching Error

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 18, 2026, 6:56 AM
Reserved
Jul 30, 2026, 9:28 AM
Status
Received
Published
Aug 15, 2026, 6:17 AM
Modified
Aug 18, 2026, 7:16 AM
Severity
Important
Public date
Aug 15, 2026, 12:00 AM