# CVE-2026-64398: ksmbd: add a permission check for FSCTL\_SET\_ZERO\_DATA

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.67% (percentile 47, 2026-11-26)
- **Published:** 2026-07-25T08:50:42.221Z
- **Modified:** 2026-09-04T14:46:57.707Z

## Who should check

- Anyone running Linux \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 25377f369688dd0bd814dc8965ed26d44238ecaa; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 3072d82461f498c85daea8766e9d8bfbada31605; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< ca53bb17f4e8232cfaece3953d3cef62c559b039; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 57f2042fd87d7ce8fc3ac8b6c176e554df68b1a7; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< deffa929086d7902e30918adf3dd27ccfe9c08b1; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 3320ba068198adc144c89d6661b805acce01735b
- Anyone running Linux 5.15

## 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\_SPARSE").
Because SET\_ZERO\_DATA writes data (not an attribute), require
FILE\_WRITE\_DATA.

## Affected and fixed versions

- Linux: \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 25377f369688dd0bd814dc8965ed26d44238ecaa; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 3072d82461f498c85daea8766e9d8bfbada31605; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< ca53bb17f4e8232cfaece3953d3cef62c559b039; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 57f2042fd87d7ce8fc3ac8b6c176e554df68b1a7; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< deffa929086d7902e30918adf3dd27ccfe9c08b1; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 3320ba068198adc144c89d6661b805acce01735b (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 3320ba068198adc144c89d6661b805acce01735b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64398. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64398.md
Affected: Linux >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 25377f369688dd0bd814dc8965ed26d44238ecaa; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 3072d82461f498c85daea8766e9d8bfbada31605; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < ca53bb17f4e8232cfaece3953d3cef62c559b039; >= e2f34481b24db2fd634b5ed…
Fixed in: Linux 25377f369688dd0bd814dc8965ed26d44238ecaa, Linux 3072d82461f498c85daea8766e9d8bfbada31605, Linux 57f2042fd87d7ce8fc3ac8b6c176e554df68b1a7, Linux 3320ba068198adc144c89d6661b805acce01735b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64398 being exploited?

There is no confirmed exploitation: CVE-2026-64398 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.67% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64398?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-64398?

Linux \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 25377f369688dd0bd814dc8965ed26d44238ecaa; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 3072d82461f498c85daea8766e9d8bfbada31605; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< ca53bb17f4e8232cfaece3953d3cef62c559b039; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 57f2042fd87d7ce8fc3ac8b6c176e554df68b1a7; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< deffa929086d7902e30918adf3dd27ccfe9c08b1; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 3320ba068198adc144c89d6661b805acce01735b; Linux 5.15.

### Is there a fix for CVE-2026-64398?

Yes. Fixed in Linux 25377f369688dd0bd814dc8965ed26d44238ecaa, Linux 3072d82461f498c85daea8766e9d8bfbada31605, Linux 57f2042fd87d7ce8fc3ac8b6c176e554df68b1a7, Linux 3320ba068198adc144c89d6661b805acce01735b. Upgrade Linux to 3320ba068198adc144c89d6661b805acce01735b or later.

### How do I check if I'm affected by CVE-2026-64398?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/25377f369688dd0bd814dc8965ed26d44238ecaa>
- patch: <https://git.kernel.org/stable/c/3072d82461f498c85daea8766e9d8bfbada31605>
- patch: <https://git.kernel.org/stable/c/ca53bb17f4e8232cfaece3953d3cef62c559b039>
- patch: <https://git.kernel.org/stable/c/57f2042fd87d7ce8fc3ac8b6c176e554df68b1a7>
- patch: <https://git.kernel.org/stable/c/deffa929086d7902e30918adf3dd27ccfe9c08b1>
- patch: <https://git.kernel.org/stable/c/3320ba068198adc144c89d6661b805acce01735b>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64398>

HTML: <https://flawdb.com/CVE-2026-64398> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64398>
