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=1795100666; b=pSFm3KMrB2hMVnJP0rOkZo48BiD4bG5KLcwHjbLqCl3+ZmlmxSc+/Geiq/ZQPgVWp+XF ReMOBH/HXR3tdwpai9R9N0vlFoih4LGDa66jMMegK3kfuzWij5LejujpP20uzmZ8Stl5G sK40a1QiIY1mlyBZ9urcp8RTeqn50cuUmPKvQTHHgUEejDU6T+HGobAx9aMDRmg1oWehv 6UgJ5tVNFqgJ/slCdB+wa2yVMmDuqusqx/jn3UAXrEq0MKE3ztob4yM4keY1MCZSmt1Kp QVPNtUR4zugeYmO8W2yLtO7CKyJg70kiC59vMrLqGTleVpzSfH1G6mG1MGFIUjny4kQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100666; 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=isGd5DT+ObQfiEaU0kkyNUo4dhLW7+YutbtTDrejHJg=; b=hbycxkYs7zCdwWEK2pf9QngLXpAAQp2JtzTxBMSvAZe9efacaJ7snhPmSt8BV9lM0Xny j7I1nyWnwaFG+MdX1zLrDwDWMgq6iulTbnQiMR700ayVHqX+Ywz0XP0WZYc5j+9Hnfqoc jue6ki2ydLrOyoJU+TYXhFREAa7YU7bIVQ8y2BgFlV/e5P+oskaKvOqm/Qmgi4xHmsZWb 4bR4Q1IcC18MQqPyZXC+qZ0g55y+4LliKavC1qu8hUXiumlnpO3wgzwM5bCZm8MKxCNxe pcHLSob0iQwOgA7oIEw0Bl0wA0zY90+IxAhAw66/yj27d0TdVpAUX4cNxnhQsw4AKvg== 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=Ed3uUppQ; 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 511F5606A320 for ; Thu, 19 Nov 2026 15:04:26 +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=Ed3uUppQ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 446161F000C4; Thu, 19 Nov 2026 15:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100666; bh=isGd5DT+ObQfiEaU0kkyNUo4dhLW7+YutbtTDrejHJg=; h=From:To:Cc:Subject:Date:Reply-To; b=Ed3uUppQ2Zkc9K2MOigYkLN7X8ZY8pIxy9QWax3SiGkQgYvt8Ch81ONQA/OfVgZJ4 yUu4Sl8uttIfXSbn/dp1kXyjYTL/KgcJ+7X6mxwMaC6QofaN/WLC4pI3jercj+i5Wu LdJSc6Cv75FMPjrY/5GaR3PPaomAadt9663HGDxc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99537: ksmbd: preserve unreadable named streams on open Date: Thu, 19 Nov 2026 15:27:15 +0100 Message-ID: <2026111923-CVE-2026-99537-d531@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=3276; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0A8Ux0nkpWVjnJejzcfO2hk9DfccvcAfYS4aH+iXtOQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2aZnXl+cwGezcuvLbGbzKUnPS2SniqYU76gLS/g7b WlLRI92RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwkQo1hwbKWtuuOb/48zV1w +5X4nntuD6wvzWRYsOdTgW5z2ZKvFy4+OZ0za9Uf4Z1RwgA= 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: preserve unreadable named streams on open A write-only client can open an existing named stream with FILE_OPEN_IF without permission to read the underlying file. The case-insensitive lookup finds the xattr name, but querying its value length then fails with -EACCES. smb2_set_stream_name_xattr() treats every negative result as a missing stream and replaces the existing xattr with an empty value. A failed xattr list is not proof that the stream is absent either: for example, -ENOMEM can lead to the same empty replacement. Preserve listing errors and create a stream only for -ENOENT or -ENODATA. The latter can occur if the xattr is removed between listing its name and querying its value. Return other lookup errors without changing the stream. A write-only FILE_OPEN now reports access denied instead of name not found. FILE_OVERWRITE_IF and FILE_SUPERSEDE on an unreadable stream also fail instead of appearing to replace it. Stream writes and EOF changes already need to read the old value, so such handles cannot update the stream after opening either. The Linux kernel CVE team has assigned CVE-2026-99537 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.12.117 with commit f5f6a705247314540b780dbf94c319d764b84bb4 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.18.61 with commit 22464634d240f5132b0787048a10e8260ac7e639 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.3.2 with commit 4cdee894f9bcebe0093df90cf28dc732d38418da Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.4-rc1 with commit 80c816c047f7cae3c99cc75740c1f5d2c4d97b45 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-99537 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 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/f5f6a705247314540b780dbf94c319d764b84bb4 https://git.kernel.org/stable/c/22464634d240f5132b0787048a10e8260ac7e639 https://git.kernel.org/stable/c/4cdee894f9bcebe0093df90cf28dc732d38418da https://git.kernel.org/stable/c/80c816c047f7cae3c99cc75740c1f5d2c4d97b45