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=1795099239; b=KWC8TGntJiV2X1DYJTv1nMX9ejOD1Ql0Hli8M++1Hb9r++JwaajE2bevy9tLzBrOBihL eAzeQE/pRG7tYkbKxWB792oEFnZq+OPabOS5oDuDzmc6IP8rLKAPRvYv3UERsDWDOCfjj /aCJw5cb+Mr7GSqv2GdRH1Qnuzpq990pfEH+dzUjlSL/VhPSftml07gPMw9pbm9RyFMdQ s7vZHUwuSXM634KpG6wZcxLqADtqjON/HxfllR+nZIUO6W/VmNCEUbPqTZljMgKxyQFC7 rscXBUFBoABMyITqO79wK1RlWwCYCUnJRnY5qkTLOnGo0/Fsf9VrYLgq8+LB/328v7w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099239; 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=nOAmDxQ6Qhg8PLnluQ4a52GulFX/1Zf/8USABxsk40I=; b=xHyJtJlKLrBofoehbC21dQwtPFv56k0V7/K5/EYgMdm+oRyRQEWzTqUYRO6eRD3TYVp2 oKl7GhPjM5sURJlwFLZ/Voa6wNoGp9Mu0BxHeA+4/O15Rws/rLGB78TA0p3ERJgBvjvNh Nj/Whucnb0yeMqhxvtHoGNW4WgA9YrM19TjF7278ZChl7R5NC49rqKbyG5fXNVRmq5uxE rNIuxu01+B9QXaaAM2E899WOQlfT4dk06r0Y+ENUkPC72LFYszdBvbiFansIQAgyHeWFi sZfdvTyvvmHMbX8zMVaTox5Lvbg5GM7BmzYy6J7uXuq62D4/kkUjpIPSuYyXDrW5xXg== 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="wd/CF5iK"; 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 6D490606A320 for ; Thu, 19 Nov 2026 14:40:39 +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=wd/CF5iK Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2E981F000C5; Thu, 19 Nov 2026 14:40:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099239; bh=nOAmDxQ6Qhg8PLnluQ4a52GulFX/1Zf/8USABxsk40I=; h=From:To:Cc:Subject:Date:Reply-To; b=wd/CF5iKddagYhzCt7ZHjHVyRGhnFggbEalvhcoiP6szJL0oU9tuPRumBCkEOKFHB zVXin0YxADRLrMp7k9yzdvxwtUZkO+eiA3WaXgAc4H+6X2EGkhRhTMz2nKr8ii9SIy r6FdfUX3JUoKn2on7CHV4n4y8XeQLs6dExcsBDi8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99387: smb: client: bound POSIX lock data area by response length Date: Thu, 19 Nov 2026 15:24:45 +0100 Message-ID: <2026111954-CVE-2026-99387-0c4a@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=2736; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=m6f8p9lifJJV6trXLLDnu4AUwFPGnvUFK6MkA9biMWU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2aqOVTPPj7qWWmqSyXEilYlfa2e0BfP5t/IV95iUW 1iq9+ztiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIn0vGZYsGJaZdIkGeGVIt0v VgTM8p4e86jWj2F+YsW5d+nXwuR0ueYwW/7I9ap9bTYNAA== 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: smb: client: bound POSIX lock data area by response length CIFSSMBPosixLock() receives a TRANS2 response whose server-provided DataOffset and DataCount are not required by validate_t2() to describe an interval inside the response. A server can therefore make the client read a cifs_posix_lock beyond the response buffer and return those kernel bytes through F_GETLK. Use smbCalcSize() to obtain the full response length after any multipart TRANS2 reassembly, then reject data areas that extend past it before dereferencing them. The Linux kernel CVE team has assigned CVE-2026-99387 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.17 with commit fc94cdb94462e71a4a974bc9bc1f483189ae7805 and fixed in 6.12.118 with commit 659148924f05cfc453cca39b885d76b25b84cc29 Issue introduced in 2.6.17 with commit fc94cdb94462e71a4a974bc9bc1f483189ae7805 and fixed in 6.18.64 with commit 9b75ba374fe03e3650d86fe9cf7fcec117389516 Issue introduced in 2.6.17 with commit fc94cdb94462e71a4a974bc9bc1f483189ae7805 and fixed in 7.3.2 with commit d5993c6146ad74a3dab2d9cbd09106d644d761cb Issue introduced in 2.6.17 with commit fc94cdb94462e71a4a974bc9bc1f483189ae7805 and fixed in 7.4-rc1 with commit 8fc9af68c57156ff64769f30e831553cd03b3000 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-99387 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/client/cifssmb.c fs/smb/client/trace.h 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/659148924f05cfc453cca39b885d76b25b84cc29 https://git.kernel.org/stable/c/9b75ba374fe03e3650d86fe9cf7fcec117389516 https://git.kernel.org/stable/c/d5993c6146ad74a3dab2d9cbd09106d644d761cb https://git.kernel.org/stable/c/8fc9af68c57156ff64769f30e831553cd03b3000