From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 151BB15687A for ; Fri, 3 May 2024 17:45:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714758359; cv=none; b=MC9AN6StRVVDVxjISQWFtSJdXGn42g33SZ3h+jOd/7ajVC4SQe27STXQwZXCoWtBdKrG6eNNycRLSM9uLr6ROWOEqZjSFJD9IbtLaCg3hBFoJWmdICWpCAvNQdl8iV9x2Inj4enrHfu9x0JbJpihFMKPOfwAVOK37R3sSjHloj4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714758359; c=relaxed/simple; bh=oiw/3ZPfY8+aIeIFuDx+UntnkDZAAdj7HEdhwvQLRu4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Mu8gJ9ApCPuWWsi6fT25PFqgqNHUK31C7DCOXpcRZMUObQROGStgrBf4J2plgQk6o4N4xwroCvrpREfU6rBYbfMbt4UhUZ8T24aHhy7D5u88kgHKaS4BJBktKzMOn0+CAy8cw96z0BbImNog7PhXbjJecM8qiZhX+QnB+IeTiks= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=q/EFjj3m; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="q/EFjj3m" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 816E7C116B1; Fri, 3 May 2024 17:45:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714758358; bh=oiw/3ZPfY8+aIeIFuDx+UntnkDZAAdj7HEdhwvQLRu4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=q/EFjj3mF68QNE7n3WwGEdK+l/AZigFZzeooFJRBNHE8HgtpXehkifOFipXjg0c+X cNnjUtbQDCGSFl7a7EicnhngWeI9tEB0MTmh4GFa1aiXMX9pfP/ofLZ52ZQlsfW2t+ Jhs3hb5ZukQ/s8eGWYzvZ4Dz57TydVIWaVIBartI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48686: nvme-tcp: fix UAF when detecting digest errors Date: Fri, 3 May 2024 19:45:42 +0200 Message-ID: <2024050342-CVE-2022-48686-5e8e@gregkh> X-Mailer: git-send-email 2.45.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2336; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oiw/3ZPfY8+aIeIFuDx+UntnkDZAAdj7HEdhwvQLRu4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmmSseM47u3pG44tGB/4OR2nTfnBX7eDP0YEBCq8uEvT 6zE7HiVjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIVSmG+XHaRqcOpfUu7Gd+ t/nQjHNruBna0xnmygYXyn4vjJrq0uK06/S6l3uzmdY8BQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: nvme-tcp: fix UAF when detecting digest errors We should also bail from the io_work loop when we set rd_enabled to true, so we don't attempt to read data from the socket when the TCP stream is already out-of-sync or corrupted. The Linux kernel CVE team has assigned CVE-2022-48686 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit 3f2304f8c6d6 and fixed in 5.4.213 with commit 19816a021468 Issue introduced in 5.0 with commit 3f2304f8c6d6 and fixed in 5.10.143 with commit 5914fa32ef1b Issue introduced in 5.0 with commit 3f2304f8c6d6 and fixed in 5.15.68 with commit 13c80a6c1124 Issue introduced in 5.0 with commit 3f2304f8c6d6 and fixed in 5.19.9 with commit c3eb461aa56e Issue introduced in 5.0 with commit 3f2304f8c6d6 and fixed in 6.0 with commit 160f3549a907 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-2022-48686 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: drivers/nvme/host/tcp.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/19816a0214684f70b49b25075ff8c402fdd611d3 https://git.kernel.org/stable/c/5914fa32ef1b7766fea933f9eed94ac5c00aa7ff https://git.kernel.org/stable/c/13c80a6c112467bab5e44d090767930555fc17a5 https://git.kernel.org/stable/c/c3eb461aa56e6fa94fb80442ba2586bd223a8886 https://git.kernel.org/stable/c/160f3549a907a50e51a8518678ba2dcf2541abea