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=1795098532; b=2OllzOrF/OASclwlNJoUnSy7+v6JV9x2TaUwfUoWami5mj60soAMBtdO1r+DfDEB690t nHkF6JwNBJXVhCXTWVWNDAD2C6h6whsAO8Up3/uI53VQdQx2FV5ue1mGwoqqlRyqQ0StH vNv7a0yR3h/0G/Svz9sOf8wmxIv/LkI3ZqnflLvK6WiVOeQFQvm82ZNPeIuDdsCmjxn1W s4cF3GSGG853BT29AeOaOMjQe5XVrhSrzMcNnTF/HvNiEHKrRmo1SZbE9wCUikXVdZ8O6 eMvYaCzNCCmmJy7DR2Dyxnzlm8GDoer03vaeMNGJiWLK69wT8RpC+HlYIO0FgHq+S8w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795098532; 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=1Tt7YQRhmz5wU1Vr9sXmDxXmAXZMj0mZgJ3xtIKdQvo=; b=kZ0BpZRZ2x+Vg8RK1p+SvSukOvUOXsJ6BJMoxRV3Cv2ZGqJRj3WiJPf3Sgqb6S6xsFM9 TeU1tPc0tAuZoEjCP64C9cjEIOKkw40syNPizUQKS27sYEpb00FV4o/GJDExXN0iuxjWz PxVhXX0nIZ//OO53a376HLOScWhwSOe0qJm0XZqJZeFr8+/TXxK7ynKISjhjqxOll3FUE mKDu1pxl9C7aTg91Hsb1WItPfmfe0ga+/dr+485HsCx2DFuDO9zxLnHPD4QhF+qKC5fTx PB67vjLWMYdpNBkBcjI+VsmgS+PH3syeqLdD1Y+xeBS11jQQt1O/fOFN/Lp+zFAnSNA== 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=koU5VvpY; 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 6BE1D606A338 for ; Thu, 19 Nov 2026 14:28:52 +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=koU5VvpY Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF2611F000C4; Thu, 19 Nov 2026 14:28:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795098532; bh=1Tt7YQRhmz5wU1Vr9sXmDxXmAXZMj0mZgJ3xtIKdQvo=; h=From:To:Cc:Subject:Date:Reply-To; b=koU5VvpYg9oCX7nSe9AtIKLXzR0H4d2jf45Tr73+hOZWulAp2OFH/kAHc2B84TuPe jxKjg75Ikzo/3CiD+iKBKx0BA8rRBZuiFTNiBovDVLMyCKJ067ELcMGBcD6SjFp/mR ZUaYqrRRcrTTlXpkr/UY54VW02rKWYDNqORMStN8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99324: ksmbd: fix out-of-bounds read when padding the final compound response Date: Thu, 19 Nov 2026 15:23:42 +0100 Message-ID: <2026111943-CVE-2026-99324-0e5b@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=3112; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6HrRUPRGRpr4FEhRkOE3jbUKPiypjvTbtdSS13xnLRU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2fJFbtYf3iJyy1zy79Xzpy90aWg+6WL4fSzjgGCuI pOfyj2PjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiISj/DfF89ud3TDim/zwmT l3n2aa5FkfJPZ4YFUzSKb116Z5y7X3YV/8q9bOenp7MEAwA= 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: fix out-of-bounds read when padding the final compound response Compound response handling pads the last response of a compound to an 8-byte boundary by growing the final iov and the RFC1002 length. smb2_allocate_rsp_buf() allocates exactly response_sz. A command can fill the response buffer to within 7 bytes of its end, for example a QUERY_INFO whose output is bounded only by the space left. The padding can then run past the allocation, and ksmbd_tcp_writev() reads those bytes when it sends the response. BUG: KASAN: slab-out-of-bounds in _copy_from_iter+0x744/0x10e0 Call Trace: _copy_from_iter+0x744/0x10e0 tcp_sendmsg_locked+0x2290/0x3f80 ksmbd_tcp_writev+0x10c7/0x1ab0 [ksmbd] Allocate room for the padding when the request is a compound, as smb2_read() and smb2_read_pipe() do for their payloads. response_sz is unchanged, so commands still fill only up to it, and kvzalloc() zeroes the padding. The Linux kernel CVE team has assigned CVE-2026-99324 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.12.117 with commit f4d6f211be04c9b018ce4cfb9793ea1f48c150c3 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.18.61 with commit 3092d8a596efaeccdebe0804bf263e5e6eef39d7 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.3.2 with commit 52bda0cf91b62bf679d67d6a3adc20b0be8ff4f7 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.4-rc1 with commit 714f27729121d59f103ca4dad7b0c2d1c125cd71 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-99324 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/f4d6f211be04c9b018ce4cfb9793ea1f48c150c3 https://git.kernel.org/stable/c/3092d8a596efaeccdebe0804bf263e5e6eef39d7 https://git.kernel.org/stable/c/52bda0cf91b62bf679d67d6a3adc20b0be8ff4f7 https://git.kernel.org/stable/c/714f27729121d59f103ca4dad7b0c2d1c125cd71