CVE-2026-99562
Last modified
CVE-2026-99562 is a vulnerability of currently unknown severity. 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.
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 Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 25e414db703334954747cb1b3eedf914b093ff8c, < 89092aa492f1ff8cbbca14503a008795251bae6d; >= 25e414db703334954747cb1b3eedf914b093ff8c, < ef85bad39cf273a8377722c9f3078294dcc2fc7a |
| Linux | Linux | 7.3 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-99562?
How severe is CVE-2026-99562?
How do I fix CVE-2026-99562?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-99557In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99558In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99559In the Linux kernel, the following vulnerability has been re…
- CVE-2026-9956Use after free in iOS in Google Chrome on iOS prior to 148.0…7.5
- CVE-2026-99560In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99561In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99563In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2026-99564In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2026-99565In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99566In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99567In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-99568In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2026-99562?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
