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=1795099251; b=MeOS38FF/GFwepYv+aDaqrrLEJCunQCIwRLl4V55Z42LdmYJ773D2NsNT8wOgzRNMUMQ 7gn13VnH8iGMiDhZpxw4Owe/T1vUFfGgRBmk8V5VKEm4Fqoyqox3PO+1NvQm5e4PshFX4 Bqsml9+lpxXgkK2m9iO33y8v0yegWKYvGUwbjnqf14VG9IY9lKPozZ0oyA/2tM6OqdjyW C2VDrvNTSctwpE0tygJfdVy3k/lLBYpuZnBSwZc6EzJEoTaoA5UFG0mpCpAZx6xieai35 6dNiV1MJJm+2S3TmSTRoKnUOdWh+IkWM9CgaJZ55m9VFFn9FfLDRqRAfhFIabqnt8tg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099251; 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=59vwbuVYID2JLXL8UeJ4VUN8ef3ETgTzwr8AASesHsA=; b=VDmhK5naYel+AzT8Wrkw3PXL6XXZ2Q4KAhGY60F0iOpF0UVvE5ETPFh/cV1UHisxbIPg nj8eKtzsaN5C3Y2/ML+jmpW/lJhlBBsgP+3yhf7o5t8mvydERPA+KrKinRStoET/HtV1E 7rMgvnDONCGH/eyWNDgmKI7fMBkVE/07kwlkD5x88BwCY9tF+J4g31DWfW0pg9KqXleeG +KgDBEv2mkstsixXVCekHKv2ZpTZVQs5Xljp4bSLT1Sg7TWsttYZGyuDNIK/QitGmHNWB XgoscA+pVDiHlTdrpoCm/4XMzFNmb1DIH/97SbFvvcUUI6v1BBGuO90aB1mdy1WO7eA== 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=cBbCzwRK; 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 7253D606A320 for ; Thu, 19 Nov 2026 14:40:51 +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=cBbCzwRK Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC0921F000C6; Thu, 19 Nov 2026 14:40:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099251; bh=59vwbuVYID2JLXL8UeJ4VUN8ef3ETgTzwr8AASesHsA=; h=From:To:Cc:Subject:Date:Reply-To; b=cBbCzwRKQ2+BtdTO93Ket3YlcW5joPaeIAHI01XDVew52m5i2uznDQ4jXoY6P+6t/ G1Ot7DQYwe73lb2QdBIlTlzVMhQJsWbENCOrJAGOFYE+368ioqOlGawmSrzKa18upA xyPWZk4x590Ry0iZp4ZGrLqmTeYuhiLaKP7oOV2g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99388: smb: smbdirect: fix buffer length underflow in RDMA transfers Date: Thu, 19 Nov 2026 15:24:46 +0100 Message-ID: <2026111955-CVE-2026-99388-63ed@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=3422; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1ZdKoJmWakk4YUH02zuz2vlrrHQeXjDV8Mc5sTyBMeI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2arnCAh2cDL/jJj0VnC13NGT/Ss0F0b+u7SZja94p mXiv68yHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR4TKG+Xn+lgFXzVcxL+hf b/bbztHjimAnD8P8lBrPJs/L6TuzIzo5v64+beG2klkFAA== 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: smbdirect: fix buffer length underflow in RDMA transfers When a remote buffer descriptor is larger than the remaining local buffer, smbdirect_connection_rdma_xmit() clamps its length and sets buf_len to zero. The common accounting code then subtracts the clamped length from buf_len, causing it to underflow. If another descriptor follows, the loop processes it with a wrapped remaining length and includes memory beyond the local buffer in the RDMA transfer. A client can trigger an out-of-bounds kernel write with an SMB WRITE request, or an out-of-bounds kernel read with an SMB READ request, by supplying multiple RDMA buffer descriptors with an oversized descriptor before the last one. Remove the premature assignment to buf_len. Subtracting the clamped length already consumes the remaining buffer, so the next iteration stops and only descriptors within the local buffer are used to build work requests. The Linux kernel CVE team has assigned CVE-2026-99388 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit e628bf939aafb61fbc56e9bdac8795cea5127e25 and fixed in 6.12.117 with commit 5072f32330c71de91c1a844e7becaee48d743561 Issue introduced in 6.6 with commit e628bf939aafb61fbc56e9bdac8795cea5127e25 and fixed in 6.18.61 with commit 1f5c774488fa2dabe6667cb26888aaea39c4ead6 Issue introduced in 6.6 with commit e628bf939aafb61fbc56e9bdac8795cea5127e25 and fixed in 7.3.2 with commit 956968544ae647aa9a9534b58735f47922c85d44 Issue introduced in 6.6 with commit e628bf939aafb61fbc56e9bdac8795cea5127e25 and fixed in 7.4-rc1 with commit 7193241a49c958782ba4b8df06da3734d1e317d2 Issue introduced in 5.15.145 with commit c5aa74449a41d9c10900d82d2c2e62d5462ef932 Issue introduced in 6.1.52 with commit cf859267e639cff1f525bd050f370ea752cc25f7 Issue introduced in 6.4.15 with commit 1c660940f525279bb23b5d99a591535e7c359efe Issue introduced in 6.5.2 with commit ebdb872897dbb2425b6c9f7b7e2f5d9a8042a76a 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-99388 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/smbdirect/rw.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/5072f32330c71de91c1a844e7becaee48d743561 https://git.kernel.org/stable/c/1f5c774488fa2dabe6667cb26888aaea39c4ead6 https://git.kernel.org/stable/c/956968544ae647aa9a9534b58735f47922c85d44 https://git.kernel.org/stable/c/7193241a49c958782ba4b8df06da3734d1e317d2