CVE-2026-99562: ksmbd: reject FSCTL_SET_ZERO_DATA on a directory handle

Published Nov 19, 2026
·
Updated

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

ksmbd: reject FSCTLSETZERODATA on a directory handle

An authenticated client with a writable tree connection can open a directory with FILEWRITEDATA and send FSCTLSETZERODATA on that handle. The handler only checks fp->daccess & FILEWRITEDATALE, but on a directory FILEWRITEDATA is the legitimate add-file right, so the check passes. ksmbdvfszerodata() then calls kernelwrite() on the directory file, which has no FMODEWRITE, and kernelwriteiter() hits WARNONONCE(!(file->fmode & FMODEWRITE)), panicking a paniconwarn kernel.

Before commit 25e414db7033 ("ksmbd: report holes in allocated range queries") the dense-file path used vfsfallocate(), which rejects directories with -EISDIR. The kernelwrite() loop that replaced it has no such check. Reject a directory handle in ksmbdvfszerodata() before writing, as ksmbdvfswrite() already does for SMB2WRITE.

WARNING: fs/readwrite.c:608 at kernelwriteiter+0x74b/0x8c0 Workqueue: ksmbd-io handleksmbdwork Call Trace: kernelwrite+0x1ef/0x4d0 ksmbdvfszerodata+0x413/0x590 smb2ioctl+0x21fa/0x66a0 handleksmbdwork+0x61b/0x1ff0

Affected Software

1 affected componentFixes available
linux/kernel>=7.3.0<7.3.2
7.3.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.2

Event History

Nov 19, 2026
CVE Published
via MITRE·02:45 PM
Data Sourced
via MITRE·02:45 PM
Description
Data Sourced
via OSV·02:45 PM
DescriptionAffected Software
Data Sourced
via NVD·03:18 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203