Skip to main content

ksmbd EUVDEUVD-2026-59079

| CVE-2026-68457 CRITICAL
2026-08-15 416baaa9-dc9f-4396-8d5f-8c081fb06d67 GHSA-j57w-wqmx-67hp
9.1
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to exposed ksmbd share
  2. Delivery
    Open SMB handle to target file
  3. Exploit
    Issue SET_ZERO_DATA/SET_SPARSE/SET_COMPRESSION FSCTL
  4. Execution
    Helper runs under worker credentials
  5. Persist
    Bypass VFS/LSM permission revalidation
  6. Impact
    Corrupt or zero file data

Vulnerability Assessment

Exploitation Conditions

Requires the target host to be running the in-kernel ksmbd SMB server (CONFIG_SMB_SERVER) with a share exposed on the network, and the attacker must hold an open SMB handle to a specific file - obtained through the normal SMB access mask - before issuing FSCTL_SET_SPARSE, FSCTL_SET_ZERO_DATA or FSCTL_SET_COMPRESSION. The exploitable condition is precisely that these three single-file FSCTLs invoke VFS xattr/fallocate/fileattr helpers under the ksmbd worker credentials instead of the credentials captured at open time, so per-inode permission, ownership and LSM checks are evaluated against the wrong principal. Limiting factors: ksmbd is not enabled by default on most distributions (Samba is the norm), an SMB session and a valid open handle are needed, and the effective privilege depends on whether the share permits guest/null sessions (approaching the CVSS PR:N assumption) or requires authentication (PR:L). The published PR:N should be verified against the actual share configuration.

Impact

Signals conflict and should be weighed carefully. The published CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H = 9.1) implies trivial remote unauthenticated compromise, but this is characteristic of the Linux kernel CNA's automated scoring and is inconsistent with the mechanism: exploitation fundamentally requires an established SMB session and an open handle to a target file, so PR:N is optimistic - verify against deployment (guest/null-session shares would approximate PR:N, authenticated shares would be PR:L). The 'Information Disclosure' tag also conflicts with the CVSS C:N (no confidentiality impact) - the described primitive is integrity/availability (data zeroing, sparse/compression attribute changes, permission-check bypass), so treat the tag as mislabeled unless a read-path variant is confirmed. EPSS is low (0.17%, 7th percentile), there is no KEV listing and no public POC, indicating no evidence of active or imminent mass exploitation. SSVC-style read: exploitation = none observed, automatable = unlikely (needs a valid SMB handle and ksmbd exposure), technical impact = total for the targeted file. Net: real but conditional - high priority only for systems actually running ksmbd with SMB exposed; for the majority of Linux fleets that use Samba or no SMB server, this is not an urgent priority despite the 9.1 headline.

Exploit ScenarioDerived

An attacker who can reach an exposed ksmbd share and open a handle to a file (for example on a guest-accessible or low-privilege authenticated share) issues an FSCTL_SET_ZERO_DATA or FSCTL_SET_SPARSE request; because the operation runs under the ksmbd worker's credentials rather than the opener's, the VFS/LSM permission and ownership revalidation is bypassed and the attacker zeroes or alters data they should not be able to modify. No public exploit code is identified at time of analysis, and the AV:N/AC:L profile means the network request itself is simple, but a valid SMB handle is a prerequisite.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
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

Improper credential context in the Linux kernel's in-kernel SMB3 server (ksmbd) allows an attacker with an open SMB handle to have SET_SPARSE, SET_ZERO_DATA and SET_COMPRESSION FSCTL operations executed under the ksmbd worker's credentials instead of the credentials captured when the file was opened. Because the underlying VFS xattr, fallocate and fileattr helpers revalidate inode permissions, ownership and LSM policy against those worker credentials rather than the SMB handle's access mask, an attacker can corrupt or zero file data and alter file attributes beyond what their handle should permit (CVSS 9.1, I:H/A:H). There is no public exploit identified at time of analysis, EPSS is low (0.17%, 7th percentile), and it is not in CISA KEV; the upstream fix is merged into stable kernels.

RemediationAI

Vendor-released patch: update to a fixed stable kernel - 6.1.178, 6.6.145, 6.12.97, 6.18.40, or 7.1.5 or later (fix also in 7.2-rc1) - via your distribution's kernel update channel, then reboot (or apply the corresponding livepatch if offered). The corresponding upstream commits are available at git.kernel.org (commit e205f3e7e8c31a47cd11efb6cf663a527177e432 and the related stable backports). If immediate patching is not possible, the most effective compensating control is to disable or unload the ksmbd module (rmmod ksmbd / blacklist it) and use userspace Samba instead, which removes the vulnerable code path entirely at the cost of the in-kernel server's performance; where ksmbd must run, restrict exposure by firewalling TCP 445 to trusted management networks and requiring authenticated (non-guest) share access with least-privilege share permissions, which limits who can obtain the open handle needed to reach the FSCTLs. Note these network/config controls reduce reachability but do not fix the underlying credential mismatch - only the kernel update does.

Affected VersionsENISA

Linux 0 <6.18.40
Linux patch: 7.1.5
Linux 0 <6.12.97
Linux 0 <6.1.178
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <e205f3e7e8c31a47cd11efb6cf663a527177e432
Linux patch: 6.6.145
Linux 0 <7.1.5
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <c6394bcaf254c5baf9aff43376020be5db6d3316
Linux patch: 6.1.178
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <a8c18434e1f0d9f7989170bdb0490c0160baf065
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <fb1cae6302d58414ddf029e3f642711bd30243f7
Linux 0 <6.6.145
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <1e112c47ec5dd1942e2d4ca6e8e9b712238e20c2
Linux patch: 7.2-rc1
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <cfb2c6f71d61ed807c9d7a7af331d406f1f31877
Linux patch: 6.18.40
Linux patch: 6.12.97

Affected Packages

euvd linux fix: 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5

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 kernel-space SMB2/SMB3 file server introduced in Linux 5.15, an alternative to userspace Samba that services CIFS/SMB clients directly from a kernel worker thread (kworker/ksmbd daemon). The affected FSCTLs - FSCTL_SET_SPARSE, FSCTL_SET_ZERO_DATA and FSCTL_SET_COMPRESSION - act on a single open handle and translate into VFS-layer operations: extended-attribute writes, fallocate/punch-hole calls, and fileattr (ioctl-style attribute) changes. The root cause is a privilege/credential context confusion (a confused-deputy class issue, akin to CWE-282 improper ownership management / CWE-863 incorrect authorization; NVD lists CWE as N/A): the helpers re-check permissions, ownership and LSM (e.g. SELinux/AppArmor) policy, but they were invoked with the current ksmbd worker task credentials rather than the credentials snapshotted in the struct file at open time. The fix wraps each single-file FSCTL in the opener's captured credentials, deliberately scoped to these single-handle operations rather than the whole IOCTL handler, which also serves handle-less and multi-handle paths that must keep worker credentials.

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 (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
vuln.today AI 8.1 HIGH

Network SMB service but exploitation requires an authenticated SMB session and an open handle, so PR:L; impact is integrity and availability of file data (zeroing/attribute change) with no confidentiality loss, so C:N.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Red Hat 9.1 HIGH

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

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

Lifecycle Timeline

4
CVSS changed
Aug 17, 2026 - 06:22 NVD
9.1 (CRITICAL)
Patch available
Aug 15, 2026 - 07:20 EUVD
CVE Published
Aug 15, 2026 - 06:17 cve.org
CRITICAL 9.1
CVE Published
Aug 15, 2026 - 06:17 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A critical vulnerability in the Linux kernel's SMB3 server (ksmbd) enables attackers with an open SMB file handle to corrupt files and modify file attributes beyond their handle's permitted scope, undermining data integrity for organizations relying on Linux-based file sharing. While no public exploits currently exist, the potential for data loss and integrity violations necessitates immediate kernel patching across affected infrastructure.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Low
in-kernel SMB server rarely enabled; Samba dominates SMB deployments
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

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