Junglewise Threat Intelligence

CVE-2026-64392: Linux Kernel ksmbd permission bypass in delete-on-close

CVE-2026-64392 · Severity: info · CVSS 0 · Published 2026-07-25

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A security issue was identified in the Linux kernel's ksmbd component, which provides file-sharing services over a network. Under certain conditions, when a file is marked to be deleted upon closing, the system would use administrative-level credentials instead of the specific user's permissions to perform the deletion. This could allow a user to bypass security restrictions and delete files or metadata they should not have access to modify.

Technical details

A vulnerability in the Linux kernel's ksmbd (SMB server) occurs during 'delete-on-close' operations. When a file handle teardown is deferred or durable, the request context may be unavailable, causing the base-file unlink and ADS xattr removal to execute with ksmbd worker credentials rather than the authenticated user's credentials. This allows the operations to bypass standard filesystem permission checks (fsuid, fsgid, and capability restrictions). The fix ensures that the credentials captured in 'struct file' at the time of the initial open are used to override the current credentials during the final close and deletion process. The issue is reachable over the network via SMB if ksmbd is active.

Affected products

  • Linux Linux Kernel 6.6.145, 6.12.96, 6.18.39, 7.1.4

Timeline

  • 2026-06-13: other: Vulnerability fixed in kernel source
  • 2026-07-25: disclosed: CVE published

References

Related threats