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

ksmbd: use opener credentials for delete-on-close

Delete-on-close can be completed by deferred or durable handle teardown,
where no request work is available. Both the base-file unlink and the ADS
xattr removal consequently run with the ksmbd worker credentials and can
bypass filesystem permission checks.

Run both operations with the credentials captured in struct file when the
handle was opened. This preserves the authenticated user's fsuid, fsgid,
supplementary groups and capability restrictions at final close.
Published: 2026-07-25
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel, the ksmbd delete‑on‑close feature performs file unlink and ADS xattr removal using the kernel worker’s credentials instead of the credentials of the user who opened the file. As a result, the unlink and attribute removal bypass normal filesystem permission checks, allowing an authenticated SMB client to delete files and extended attributes that it would normally not be allowed to touch. This flaw provides a privilege escalation path that undermines file system integrity.

Affected Systems

The vulnerability resides in the ksmbd subsystem of the Linux kernel. Any distribution running a kernel with ksmbd and that has not applied the patch that corrects the use of opener credentials for delete‑on‑close is affected. The CVE data does not list a specific kernel version, so all releases prior to the fix are potentially vulnerable.

Risk and Exploitability

The EPSS score is below 1 % and the vulnerability is not listed in CISA KEV, indicating a low current exploitation probability. Nonetheless, the flaw can enable an attacker who can authenticate to an SMB share to delete arbitrary files, creating a high risk to confidentiality, integrity, and availability. Based on the description, it is inferred that the likely attack vector is a remote SMB client that requests delete‑on‑close; the kernel uses the original opener’s credentials at final close, allowing unauthorized deletion despite permission checks.

Generated by OpenCVE AI on August 2, 2026 at 13:00 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest kernel update that includes the ksmbd delete‑on‑close credential fix.
  • If an immediate kernel upgrade is not feasible, disable the delete‑on‑close feature in ksmbd configuration or rebuild the kernel without that capability.
  • Enable auditing of file deletion operations on ksmbd shares to detect unauthorized removals.

Generated by OpenCVE AI on August 2, 2026 at 13:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4724-1 linux-6.12 new package
History

Sat, 01 Aug 2026 02:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-284

Thu, 30 Jul 2026 12:15:00 +0000


Mon, 27 Jul 2026 05:15:00 +0000

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


Sun, 26 Jul 2026 02:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-284

Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: use opener credentials for delete-on-close Delete-on-close can be completed by deferred or durable handle teardown, where no request work is available. Both the base-file unlink and the ADS xattr removal consequently run with the ksmbd worker credentials and can bypass filesystem permission checks. Run both operations with the credentials captured in struct file when the handle was opened. This preserves the authenticated user's fsuid, fsgid, supplementary groups and capability restrictions at final close.
Title ksmbd: use opener credentials for delete-on-close
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:41:29.430Z

Reserved: 2026-07-19T15:36:31.785Z

Link: CVE-2026-64392

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-25T10:17:22.557

Modified: 2026-08-11T15:01:50.637

Link: CVE-2026-64392

cve-icon Redhat

Severity :

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64392 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T13:15:03Z

Weaknesses
  • CWE-270

    Privilege Context Switching Error