Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

In the Linux kernel, the following vulnerability has been resolved: ksmbd: add a permission check for FSCTL_SET_ZERO_DATA FSCTL_SET_ZERO_DATA in… (CVE-2026-64398)

0
High
Published: 07/25/2026 (07/25/2026, 12:31:34 UTC)
Source: GCVE Database

Description

A vulnerability in the Linux kernel's ksmbd component allowed an authenticated SMB client with only FILE_WRITE_ATTRIBUTES permission to zero out file data without having FILE_WRITE_DATA rights. This occurred because the FSCTL_SET_ZERO_DATA operation lacked a proper per-handle permission check, permitting unauthorized data destruction. The issue has been resolved by adding the required permission check to ensure only handles with FILE_WRITE_DATA can perform this operation.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/25/2026, 23:26:59 UTC

Technical Analysis

The Linux kernel's ksmbd module had a vulnerability (CVE-2026-64398) where the FSCTL_SET_ZERO_DATA ioctl operation did not enforce per-handle access checks properly. Specifically, a handle opened with only FILE_WRITE_ATTRIBUTES permission was able to invoke vfs_fallocate with FMODE_WRITE flags to zero file data, bypassing intended access restrictions. This was due to the absence of a check on the file pointer's daccess permissions, allowing unauthorized data modification. The vulnerability was reproducible on mainline kernel 7.1-rc7 with KASAN by an authenticated SMB client. The fix requires that FSCTL_SET_ZERO_DATA operations demand FILE_WRITE_DATA permission, aligning with the fact that this operation modifies file data rather than attributes.

Potential Impact

An authenticated SMB client with insufficient permissions (FILE_WRITE_ATTRIBUTES but not FILE_WRITE_DATA) could destroy file data by zeroing it out, potentially leading to data loss or corruption. This bypasses intended access control mechanisms in the ksmbd SMB server implementation within the Linux kernel.

Mitigation Recommendations

A fix has been implemented in the Linux kernel to add the missing permission check for FSCTL_SET_ZERO_DATA, requiring FILE_WRITE_DATA permission for this operation. Users should apply the official kernel update that includes this patch. Since no patch links or vendor advisories are provided here, check the Linux kernel mainline or distribution vendor advisories for the relevant fix. Patch status is not yet confirmed in this data—verify with vendor sources for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-ch49-xqcg-99vv
Osv Schema Version
1.4.0
Aliases
["CVE-2026-64398"]
Ecosystems
[]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a65420a9c2644c7f8084177

Added to database: 07/25/2026, 23:08:58 UTC

Last enriched: 07/25/2026, 23:26:59 UTC

Last updated: 07/26/2026, 05:29:04 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses