CVE-2026-64398·Kernel vulnerability
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 smb2_ioctl() destroys file data via ksmbd_vfs_zero_data() -> vfs_fallocate(PUNCH_HOLE/ZERO_RANGE) after checking only the share-level KSMBD_TREE_CONN_FLAG_WRITABLE, with no per-handle access check. A handle opened with only FILE_WRITE_ATTRIBUTES still yields an FMODE_WRITE filp (FILE_WRITE_ATTRIBUTES is part of FILE_WRITE_DESIRE_ACCESS_LE, so smb2_create_open_flags() opens it O_WRONLY), so the vfs_fallocate FMODE_WRITE check does not stop it; only the missing fp->daccess gate would. Reproduced on mainline 7.1-rc7 with KASAN by an authenticated SMB client: a FILE_WRITE_ATTRIBUTES-only handle zeroed 4096 bytes of file data it had no FILE_WRITE_DATA right to (6/6; a FILE_READ_DATA-only handle was correctly denied). This is the unfixed sibling of commit cc57232cae23 ("ksmbd: fix FSCTL permission bypass by adding a permission check for FSCTL_SET_SPARSE"). Because SET_ZERO_DATA writes data (not an attribute), require FILE_WRITE_DATA.
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.1.4
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.67% — higher than 50% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-64398 scores 8.1 on CVSS, so a successful attack would be serious — but at 0.67%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.19
Until: 7.1.4
Fixed in: 7.1.4
How to fix this CVE
Update your Linux kernel to version 7.1.4 or later to patch a permission bypass vulnerability in the SMB2 FSCTL_SET_ZERO_DATA handler. This vulnerability allows authenticated SMB clients to zero file data without proper file access permissions. Verify your ksmbd service is restarted after the kernel update to ensure the fix is active.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r — vulnerable if output shows version between 6.19 and 7.1.3
- Verify ksmbd is enabled: grep -i ksmbd /boot/config-$(uname -r) — output should show CONFIG_SMB_SERVER=m or CONFIG_SMB_SERVER=y
- Check SMB shares configuration: grep -r 'ksmbd' /etc/samba/ or check systemctl status ksmbd to confirm the service is running
- Confirm the fix: After patching, run uname -r and verify kernel version is 7.1.4 or later, then restart ksmbd with sudo systemctl restart ksmbd
FAQ
What is CVE-2026-64398?
CVE-2026-64398 is a permission bypass flaw in the Linux kernel's ksmbd SMB server implementation. The vulnerability allows an authenticated SMB client to zero-out file data through the FSCTL_SET_ZERO_DATA control code even when the client's file handle lacks FILE_WRITE_DATA permissions, requiring only FILE_WRITE_ATTRIBUTES access.
Is CVE-2026-64398 being actively exploited?
No, CVE-2026-64398 is not currently listed in CISA's Known Exploited Vulnerabilities catalog and no public exploit code is available. However, exploitation is straightforward for authenticated SMB users with limited file permissions.
What versions of Kernel are affected by CVE-2026-64398?
Linux kernel versions 6.19 through 7.1.3 are affected. The fix was released in kernel version 7.1.4 and has been backported to stable kernel branches.
How do I check if my server is vulnerable to CVE-2026-64398?
Run uname -r to check your kernel version — if it shows 6.19 to 7.1.3, you are vulnerable. Additionally, verify ksmbd is active with systemctl is-active ksmbd or grep CONFIG_SMB_SERVER /boot/config-$(uname -r).
Does Defensia detect CVE-2026-64398?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-64398 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/25377f369688dd0bd814dc8965ed26d44238ecaa
- https://git.kernel.org/stable/c/3072d82461f498c85daea8766e9d8bfbada31605
- https://git.kernel.org/stable/c/3320ba068198adc144c89d6661b805acce01735b
- https://git.kernel.org/stable/c/57f2042fd87d7ce8fc3ac8b6c176e554df68b1a7
- https://git.kernel.org/stable/c/ca53bb17f4e8232cfaece3953d3cef62c559b039
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-64398. Free for 1 server.
Get started free