# CVE-2026-99562: ksmbd: reject FSCTL\_SET\_ZERO\_DATA on a directory handle

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 5, 2026-11-28)
- **Published:** 2026-11-19T14:45:40.908Z
- **Modified:** 2026-11-19T15:18:12.890Z

## Who should check

- Anyone running Linux \>= 25e414db703334954747cb1b3eedf914b093ff8c, \< 89092aa492f1ff8cbbca14503a008795251bae6d; \>= 25e414db703334954747cb1b3eedf914b093ff8c, \< ef85bad39cf273a8377722c9f3078294dcc2fc7a
- Anyone running Linux 7.3

## Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: reject FSCTL\_SET\_ZERO\_DATA on a directory handle

An authenticated client with a writable tree connection can open a
directory with FILE\_WRITE\_DATA and send FSCTL\_SET\_ZERO\_DATA on that
handle. The handler only checks fp-\>daccess & FILE\_WRITE\_DATA\_LE, but on
a directory FILE\_WRITE\_DATA is the legitimate add-file right, so the
check passes. ksmbd\_vfs\_zero\_data() then calls kernel\_write() on the
directory file, which has no FMODE\_WRITE, and \_\_kernel\_write\_iter()
hits WARN\_ON\_ONCE(!(file-\>f\_mode & FMODE\_WRITE)), panicking a
panic\_on\_warn kernel.

Before commit 25e414db7033 ("ksmbd: report holes in allocated range
queries") the dense-file path used vfs\_fallocate(), which rejects
directories with -EISDIR. The kernel\_write() loop that replaced it has
no such check. Reject a directory handle in ksmbd\_vfs\_zero\_data() before
writing, as ksmbd\_vfs\_write() already does for SMB2\_WRITE.

  WARNING: fs/read\_write.c:608 at \_\_kernel\_write\_iter+0x74b/0x8c0
  Workqueue: ksmbd-io handle\_ksmbd\_work
  Call Trace:
   kernel\_write+0x1ef/0x4d0
   ksmbd\_vfs\_zero\_data+0x413/0x590
   smb2\_ioctl+0x21fa/0x66a0
   handle\_ksmbd\_work+0x61b/0x1ff0

## Affected and fixed versions

- Linux: \>= 25e414db703334954747cb1b3eedf914b093ff8c, \< 89092aa492f1ff8cbbca14503a008795251bae6d; \>= 25e414db703334954747cb1b3eedf914b093ff8c, \< ef85bad39cf273a8377722c9f3078294dcc2fc7a (cvelist)
- Linux: 7.3 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-99562.md
Affected: Linux >= 25e414db703334954747cb1b3eedf914b093ff8c, < 89092aa492f1ff8cbbca14503a008795251bae6d; >= 25e414db703334954747cb1b3eedf914b093ff8c, < ef85bad39cf273a8377722c9f3078294dcc2fc7a; Linux 7.3
Fixed in: Linux 89092aa492f1ff8cbbca14503a008795251bae6d

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-99562 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 25e414db703334954747cb1b3eedf914b093ff8c, \< 89092aa492f1ff8cbbca14503a008795251bae6d; \>= 25e414db703334954747cb1b3eedf914b093ff8c, \< ef85bad39cf273a8377722c9f3078294dcc2fc7a; Linux 7.3.

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

Yes. Fixed in Linux 89092aa492f1ff8cbbca14503a008795251bae6d. No fix listed yet: follow the vendor advisory.

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

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

- other: <https://git.kernel.org/stable/c/89092aa492f1ff8cbbca14503a008795251bae6d>
- other: <https://git.kernel.org/stable/c/ef85bad39cf273a8377722c9f3078294dcc2fc7a>

## 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-99562>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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