Menu

Star on GitHub · 3.2k

CVE-2026-64398

8.1 · HIGH

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…

Published Jul 25, 2026EPSS 0.46%

Overview

CVE-2026-64398 is a high-severity vulnerability. It was published on July 25, 2026 and has a CVSS 3.1 base score of 8.1 (HIGH).

This vulnerability has a CVSS 3.1 base score of 8.1, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical description

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

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2026-64398?

CVE-2026-64398 is a high-severity vulnerability. It was published on July 25, 2026 and has a CVSS 3.1 base score of 8.1 (HIGH).

How severe is CVE-2026-64398?

This vulnerability has a CVSS 3.1 base score of 8.1, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2026-64398?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2026-64398?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2026-64398 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2026

View all