{"vuln_id":"CVE-2026-99562","aliases":[],"description":"kernel: kernel: Denial of Service in ksmbd via zero-data request on directory handles","published_at":"2026-11-19T14:45:40Z","modified_at":"2026-11-19T15:18:12.890000Z","first_seen_at":"2026-11-21T19:15:15.262653Z","severity":"medium","severity_source":"redhat","cvss_score":6.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","cwe":["CWE-617"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00145,"epss_percentile":0.03754,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99562"},"matched_alias":null,"items":[{"id":8894,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-99562: 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 writ…","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: reject FSCTL_SET_ZERO_DATA on a directory handle\n\nAn authenticated client with a writable tree connection can open a\ndirectory with FILE_WRITE_DATA and send FSCTL_SET_ZERO_DATA on that\nhandle. The handler only checks fp->daccess & FILE_WRITE_DATA_LE, but on\na directory FILE_WRITE_DATA is the legitimate add-file right, so the\ncheck passes. ksmbd_vfs_zero_data() then calls kernel_write() on the\ndirectory file, which has no FMODE_WRITE, and __kernel_write_iter()\nhits WARN_ON_ONCE(!(file->f_mode & FMODE_WRITE)), panicking a\npanic_on_warn kernel.\n\nBefore commit 25e414db7033 (\"ksmbd: report holes in allocated range\nqueries\") the dense-file path used vfs_fallocate(), which rejects\ndirectories with -EISDIR. The kernel_write() loop that replaced it has\nno such check. Reject a directory handle in ksmbd_vfs_zero_data() before\nwriting, as ksmbd_vfs_write() already does for SMB2_WRITE.\n\n  WARNING: fs/read_write.c:608 at __kernel_write_iter+0x74b/0x8c0\n  Workqueue: ksmbd-io handle_ksmbd_work\n  Call Trace:\n   kernel_write+0x1ef/0x4d0\n   ksmbd_vfs_zero_data+0x413/0x590\n   smb2_ioctl+0x21fa/0x66a0\n   handle_ksmbd_work+0x61b/0x1ff0\n\nReferences:\nhttps://git.kernel.org/stable/c/89092aa492f1ff8cbbca14503a008795251bae6d\nhttps://git.kernel.org/stable/c/ef85bad39cf273a8377722c9f3078294dcc2fc7a","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99562","published_at":"2026-11-19T15:18:12.890000Z","updated_at":"2026-11-19T15:18:12.890000Z","fetched_at":"2026-11-21T19:15:31.484572Z","severity":"medium","cvss_score":6.5,"epss":0.00145,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"linux","product":null,"vuln_id":"CVE-2026-99562","vuln_ids":["CVE-2026-99562"],"tags":[],"cluster_id":859,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/8894","html":"https://vulnwatch.ve1ve2.com/item/8894"}},{"id":1120,"source":{"id":"redhat","name":"Red Hat Security Data API"},"title":"CVE-2026-99562: kernel: kernel: Denial of Service in ksmbd via zero-data request on directory handles","summary":"kernel: kernel: Denial of Service in ksmbd via zero-data request on directory handles","url":"https://access.redhat.com/security/cve/cve-2026-99562","published_at":"2026-11-19T14:45:40Z","updated_at":null,"fetched_at":"2026-11-21T19:15:08.893822Z","severity":"medium","cvss_score":6.5,"epss":0.00145,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"redhat","product":null,"vuln_id":"CVE-2026-99562","vuln_ids":["CVE-2026-99562"],"tags":["redhat"],"cluster_id":859,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/1120","html":"https://vulnwatch.ve1ve2.com/item/1120"}}]}