Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795100860; b=H74WdNobjYrf7HZjBkTkvY14W/ThblObeOBCC5mj/iCdxMFSs/OzH8+rs/5fXH/L7OVK MyDS4VkNZMPsQTbk8wjZqNH1o/TbqmEJMLjQTQqeGlqToPIZj70O6ZGB/vBlVohhRJdFU T0szg7h6pzWOoQawAAPIfiLC9A+WUBmoXa/2whv0BG/LF95QvdpfpwwCyArJciNJv1zcY CA7c2E/Sdvxt7Bl+NMTI8uPMcU8Ty8aeDsJMGQQKQ7WjaV1DRbRsw0X8eghgYRlE2+N4a Xt7juFTuIyvmjOZnT7ABOEfedoty08MnyQ6+dvw2RxIsbbhxw2WFeyiI1LBjjdSHrcw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100860; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=KaavQLyF91FXTWBncktWWN2Y6y00VUbLgFufLtjk7DE=; b=TiV+7fcooOfM7CRJWUB4JJHZPElDB+gl4d7eePijqRD4jCMy26aj7XYWGzPeAxd0uu0c s+vOm5wrTTY8Xag7JiOFEqY1dsP3PxlX7GmYkwd47GBz1/cJCpzp5p6tfFx8ZrbuUzqq5 4HQ3tSTnJgjkrNwMBTpD5Jp30IobdSv25YiiP3PY86Kz/kEYdnTcGmy407yajY9xDdlwq HNc6k5JjmmSe+9cirNBb0yhBT2x5t6CafC0g3B5BxIuY94WpzykNk++q/ZwDflnjVg8Ic VyjlYSEQ7r34e0d7CJ/hEI2z9Wiv35FIvLsl3SpF/Drdn0JTQwaUqOUI88uzttIAvJw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=aG3XQ0dG; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D0495606A7C3 for ; Thu, 19 Nov 2026 15:07:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=aG3XQ0dG Received: by smtp.kernel.org (Postfix) with ESMTPSA id A96611F000CB; Thu, 19 Nov 2026 15:07:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100860; bh=KaavQLyF91FXTWBncktWWN2Y6y00VUbLgFufLtjk7DE=; h=From:To:Cc:Subject:Date:Reply-To; b=aG3XQ0dGfcCgM5Gzy/alQ+DRGYyBbfK9nOeoPteydIc6lrRM+Og3J42lE1tp/EXSz gp99CKHdpLzhTVjOJoKh46r+bGuSaxL7Jul0g39l7M9soMmvRbCiaDvoJHDh50RFPd +rtgfKhJ78KKfU2LbWHvbwLfZkooU9G3QfYOzMvk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99562: ksmbd: reject FSCTL_SET_ZERO_DATA on a directory handle Date: Thu, 19 Nov 2026 15:27:40 +0100 Message-ID: <2026111929-CVE-2026-99562-561c@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2860; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aqGufLnGzOAtrvREUkt5PoRkMDolTnt04VGBPkVzJJQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2ea2T3D4dtKL94zAf1eDglvCLxWKK74aduysjl4bI VT+ROp8RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkzgeG+YEXpSteLWywEzcQ aU85+ka36qxALMP8LDFB55e3ZvsHz/+4TeNx8cN/WyztAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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 The Linux kernel CVE team has assigned CVE-2026-99562 to this issue. Affected and fixed versions =========================== Issue introduced in 7.3 with commit 25e414db703334954747cb1b3eedf914b093ff8c and fixed in 7.3.2 with commit 89092aa492f1ff8cbbca14503a008795251bae6d Issue introduced in 7.3 with commit 25e414db703334954747cb1b3eedf914b093ff8c and fixed in 7.4-rc1 with commit ef85bad39cf273a8377722c9f3078294dcc2fc7a Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-99562 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/smb/server/vfs.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/89092aa492f1ff8cbbca14503a008795251bae6d https://git.kernel.org/stable/c/ef85bad39cf273a8377722c9f3078294dcc2fc7a