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=1794823243; b=wWaQyoeQfA7IeXE8ZYmEDM2j9luvLU7BOdn8hswmACaloXjlVGrraB2kG4wuKuN6g45T aH2xRSFeXGDIsETHtAT89sv2DeaVM8Kkl2xFeI7sM39CUctr4Rxl5pCk00Pn7VbnA8eQ8 Xof1X5pwBs5OLFPZ5G32jDe403IdP6XnehpDcPUh81XKi1Qh295L1svojME1g5+5zrc2A Ho/aNZDl69D1AxYFg3wfmzTT8DZcczp/XUZ9QDYIoLgqNXpNFW8WjkWnz/1QHaGNgsOWj 4y463yu8E26bpnouVKbJdHfVllmkQK/f4XvqVP+KU11RydHBmLJEIICrTLZPcjUvoEw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794823243; 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=R9iq6toqQ5Ohrep/pzyRlh2RNYq9k5GNJMV4R5N3+Os=; b=0fgMt4F/4ayllE0DW0ync4CGmIB9dHl7zS8zb172+bJRoPJ+b8STKw9ExeCJDn6GwLXs iwWsJsu8lS3N/3n48Kk0oOz8V+VXavU71rCQhAT9mOG20yC0yLIF0laedn0lMMhoDUQvu VG2iqXOj0E+K8T5KmfnIfadpw64Lj+xfgkO98rT6aHd7+7/6zX2lBFLtdtHWkr1wbzQDb U88CmdQSsg1wmFuKVTxhNWnz66V6H5eSALsaoSdKZoALAKQR3/WnFRh8l6O2P/vXR+9dS LB49Vet93+zU9WtcG4b8+TdjgvZL2n4fdvR6slC9wCZ9wOBB6AjjtdUN+BAZW7in0tg== 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=viOzIedd; 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 7A20F606A31C for ; Mon, 16 Nov 2026 10:00:43 +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=viOzIedd Received: by smtp.kernel.org (Postfix) with ESMTPSA id D026E1F000C4; Mon, 16 Nov 2026 10:00:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794823243; bh=R9iq6toqQ5Ohrep/pzyRlh2RNYq9k5GNJMV4R5N3+Os=; h=From:To:Cc:Subject:Date:Reply-To; b=viOzIedd0MzWMkqD2l/lRkQmHZNbOdr1gf1yL3asQ4hOz/dxn2sB05bZwAdyt38Iq WCCDb6rXMmwo2awLHmJy0tdA5Bp3ujduq31rxpK40wtNK8q1QiUXufFah049uOZn11 wKNljciQbWAFXVtXIRvBLtN7karjkjeiC/qLD67M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99295: smb: client: stop processing a read response after a receive error Date: Mon, 16 Nov 2026 10:59:44 +0100 Message-ID: <2026111639-CVE-2026-99295-6eaa@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=3228; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Z8Sa54gbmhjUVemjJj18OLFhuKFiWZDQ8Y2blB2nQ4A=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm/rnA/VWypVvu7c8KH0zxpT9wDz6cqW7XHV57ZUDfNo Sv4XHFKRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkFCfDfH8bS4+GcweuJ17q PNoW6Rd7nCHqFMOC9Rucfu+SUnrTkst6/F2d78aticuNAA== 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: stop processing a read response after a receive error cifs_read_iter_from_socket() may call cifs_reconnect() before returning an error. The reconnect path aborts pending mids and invokes their callbacks. The callback can then release the cifs_io_subrequest containing rdata. cifs_readv_receive() nevertheless continues after a negative return and may dereference rdata in cifs_readv_discard(). KASAN reports the resulting UAF: BUG: KASAN: slab-use-after-free in cifs_readv_receive Read of size 4 by task cifsd cifs_readv_receive (fs/smb/client/transport.c:1284) cifs_demultiplex_thread (fs/smb/client/connect.c:1355) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) Freed by task 148: netfs_put_subrequest (fs/netfs/objects.c:267) netfs_read_collection (fs/netfs/read_collect.c:460) netfs_wait_for_in_progress (fs/netfs/misc.c:462) Return the socket error immediately, as this path did before the iterator conversion. This also avoids adding a negative length to total_read. The Linux kernel CVE team has assigned CVE-2026-99295 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit d08089f649a0cfb2099c8551ac47eef0cc23fdf2 and fixed in 6.12.117 with commit af78baeacd731a98531eaa3103bfe03f147cffb7 Issue introduced in 6.3 with commit d08089f649a0cfb2099c8551ac47eef0cc23fdf2 and fixed in 6.18.61 with commit ecc327edd96a65ac177379664cc0972d8a23dfa4 Issue introduced in 6.3 with commit d08089f649a0cfb2099c8551ac47eef0cc23fdf2 and fixed in 7.3.2 with commit 558cb79cb242ce7ca8b32c4b39412d125879e8f2 Issue introduced in 6.3 with commit d08089f649a0cfb2099c8551ac47eef0cc23fdf2 and fixed in 7.4-rc1 with commit 51efca72345acdbedc4af76782d464bd15ba50ff 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-99295 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/transport.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/af78baeacd731a98531eaa3103bfe03f147cffb7 https://git.kernel.org/stable/c/ecc327edd96a65ac177379664cc0972d8a23dfa4 https://git.kernel.org/stable/c/558cb79cb242ce7ca8b32c4b39412d125879e8f2 https://git.kernel.org/stable/c/51efca72345acdbedc4af76782d464bd15ba50ff