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=1795154460; b=2ugNPj+890CLL8EVWwp58afdDgCGJcGYx4dAspADYxHlZezefBHYxR2A7HsS8KepL8NE MHg965jJflEKOqXXFj7W9HZeTcd6CWC9ZBAIkbs32T+YL/LokuwcsS854RT7qu70l/1mT 5nINclVh+s3iMJj6f1gX0YycZslXFJtGyIcLHdJQX8Y3HAfNrOvlmprP7PeDJ2JQ6hQxa RGc4o2/bYcer5QjgLWNZKqRrfOVffOCRVqVDQucwa0z8D8P/zltH7uI8uVzZ/Oz9hY54T 9A/z9UWCnqtcDW6cve1wUfKszyDn/GqrRHT0gAgHQGQQOr6ZvV7QbJ4CIq/l59ZG4kw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154460; 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=rxxUlqO5tcatdkLAcO8HH/e6rHIRyAa0ZZ6D3lbdf4U=; b=lRX4rfVVf5VmDEutct5Cn32eWUYfbesOQ+EPQndmsXdtYCg3ahFfyMyEQFL0SSPcl/8a 7AeCj/QG3kaoBVMKVcq9vsO/ppYOkyO8ViGvWJLUfC8atX8b13pxFOq60AovrIIX2V+hf xfg2sPLwkA0bu3iV8BtmH7xjpkt+65zlIeaVOjACHBlld1IfeTM8XVIfRqnnLuCayu7NM PPtC+n11vBwSeeFXXkJWo8W0x9YM81tboPbXnV8Pwr4WhvYXYtYtCXcsPH0h65ywdgEUq gogPRyIAp8qr2BcqI3H1EPf2YCIj26smO7Iwjkc6EwNQIRJn+gFQX4aZ+GeWnUGGOdQ== 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=SqKTBVuk; 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 5DB6B606A51F for ; Fri, 20 Nov 2026 06:01:00 +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=SqKTBVuk Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE0301F000CA; Fri, 20 Nov 2026 06:00:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154460; bh=rxxUlqO5tcatdkLAcO8HH/e6rHIRyAa0ZZ6D3lbdf4U=; h=From:To:Cc:Subject:Date:Reply-To; b=SqKTBVuk46oNqsiLTTIWMZfdOcKPG82MDlla/jiQdmpd/h5EsqgzrDUO1pU/AYIQ/ 7kYFQrC3ByY1rk3pbhmgf6MGFGoFzWeEN5Ad6r/FNcrX4WNIP6uoHsQ6JW0uuoW65e OdUhTcUPgbvV+QxiKDjDaUbqaAvD3T7mIu+dxL4A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99750: ksmbd: require DELETE access for delete-on-close opens Date: Fri, 20 Nov 2026 06:52:16 +0100 Message-ID: <2026112020-CVE-2026-99750-6125@gregkh> X-Mailer: git-send-email 2.56.1 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=4028; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BMRj5alT3QbwTJyh0CdUbZK4caUVTc0B+4FHYYqBhfU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/78+5H5prYDijf1q9KfvlYxNL98+uTHv4f73HNIe9T +qj3puldMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEUmcwzFObtjCDxS2KvSsq 3mb961aRL/+kixnm56e/vryVW/zPkX13Xhp2TamakKsrBwA= 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: require DELETE access for delete-on-close opens smb2_open() accepts FILE_DELETE_ON_CLOSE on an existing file without DELETE in DesiredAccess. When the request asks only for FILE_READ_ATTRIBUTES or READ_CONTROL, it also skips inode_permission() and the parent directory MAY_WRITE | MAY_EXEC check that delete-on-close is meant to get. The file is then marked for deletion by a caller who could not delete it. The unlink happens later, in __ksmbd_inode_close(), when the last handle on the inode is closed, and it runs with the credentials of that handle. If the caller closes last, the unlink fails. If another user who can write the parent directory, such as the file's owner, still has the file open, the file is deleted when that user closes it. Until then new opens of the file fail with STATUS_DELETE_PENDING. So a user with only search permission on a directory can delete a file in it, or block opens of it, while the owner has it open. A MAXIMUM_ALLOWED open that also requests DELETE has the same problem. The requested access is replaced with the maximal access, which does not include DELETE when the caller cannot write the parent directory, and the later permission checks are skipped as already done. MS-FSA 2.1.5.1 requires an open with FILE_DELETE_ON_CLOSE and without DELETE in DesiredAccess to fail with STATUS_INVALID_PARAMETER, and Samba does the same. Add that check to the CreateOptions validation, using the generic-mapped DesiredAccess so that GENERIC_ALL still qualifies. This also refuses MAXIMUM_ALLOWED with FILE_DELETE_ON_CLOSE but no explicit DELETE, as MS-FSA and Samba do. When MAXIMUM_ALLOWED is requested with DELETE but the maximal access does not include DELETE, fail with STATUS_ACCESS_DENIED. With DELETE requested, delete-on-close opens go through the existing parent directory check. The Linux kernel CVE team has assigned CVE-2026-99750 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.12.118 with commit cc71e3abb81ae1470c09acae85d989b42509a2e0 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.18.64 with commit 2d0d4adb6bade8b204b10ad2a4c43f3b7d2af030 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.3.5 with commit 7e9a78223752911e118710009aab9dd9e10b2ee7 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.4-rc2 with commit 1dd91081ba3c692565f9c1f884149178d5a06d1e 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-99750 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/smb2pdu.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/cc71e3abb81ae1470c09acae85d989b42509a2e0 https://git.kernel.org/stable/c/2d0d4adb6bade8b204b10ad2a4c43f3b7d2af030 https://git.kernel.org/stable/c/7e9a78223752911e118710009aab9dd9e10b2ee7 https://git.kernel.org/stable/c/1dd91081ba3c692565f9c1f884149178d5a06d1e