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 DE3902054E1 for ; Tue, 1 Apr 2025 15:41:51 +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=1743522111; cv=none; b=HBRbQlk2sljBAi0Oz3nzEEFzwO7H3bMApIRGSg0PZTGLl8pIpJgR43GsfpMHYZkYVJeqI0GMsfia9fPgmiFgl1SenfLCJqMeCzu/E1F7aE+nDQT3b95ybvXvuEJhJVfAm/ziLVBdRf6FSMb+4WpFTN3crjXiLXrP2SdJ9TR/7x0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522111; c=relaxed/simple; bh=u4KOMggS8SK5ns3JJeI3xqgl2sA1ZYRZMtHl+z3iMWc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hf2Me0GAFazKxrzf9TELYfJFlE82M+ceroiguGSMJwu1i+UBYKxS4hffHzX4RVyzP8rsi5JGsKdLMia/XpEnCEyJyx1D7NhOUwuiuzu82Ap+QhFTxWRk/ckImPUK45PTFqTpCqf8T/O9KE/4BqRu7ei2FLu4yoH9ukhTUmR3UIQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HKUWktG2; 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="HKUWktG2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01CC0C4CEE4; Tue, 1 Apr 2025 15:41:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743522111; bh=u4KOMggS8SK5ns3JJeI3xqgl2sA1ZYRZMtHl+z3iMWc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HKUWktG2DaCl4NNSccisNTZg6yYsOEmkSntjIV8w3ycRTc5oqrI0p5jR5cG+nbEZL qhMwDpSUx0NLcg/6abYqwYCRslSg2YscgE4SZ8oBMoI42dBA/3ki19bysaZS3nWQJs xchZK+FUiY9P3g/lOHUhO0neVqCGrmvCZ9NT3PQ8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21927: nvme-tcp: fix potential memory corruption in nvme_tcp_recv_pdu() Date: Tue, 1 Apr 2025 16:39:51 +0100 Message-ID: <2025040133-CVE-2025-21927-36d6@gregkh> X-Mailer: git-send-email 2.49.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=2391; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=u4KOMggS8SK5ns3JJeI3xqgl2sA1ZYRZMtHl+z3iMWc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlvOLZee68eNL/6tMGzSp3QeRZHb/pPNbn8eYaQULrkd furckd4OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiiwsZFpw1ifzGLiXC+rna 4Ln7ms22B9+rJjPMszfIy1vByyLJyND6iUnq4Z9tXhtYAA== 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 potential memory corruption in nvme_tcp_recv_pdu() nvme_tcp_recv_pdu() doesn't check the validity of the header length. When header digests are enabled, a target might send a packet with an invalid header length (e.g. 255), causing nvme_tcp_verify_hdgst() to access memory outside the allocated area and cause memory corruptions by overwriting it with the calculated digest. Fix this by rejecting packets with an unexpected header length. The Linux kernel CVE team has assigned CVE-2025-21927 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit 3f2304f8c6d6ed97849057bd16fee99e434ca796 and fixed in 6.12.19 with commit 9fbc953d6b38bc824392e01850f0aeee3b348722 Issue introduced in 5.0 with commit 3f2304f8c6d6ed97849057bd16fee99e434ca796 and fixed in 6.13.7 with commit 22b06c89aa6b2d1ecb8aea72edfb9d53af8d5126 Issue introduced in 5.0 with commit 3f2304f8c6d6ed97849057bd16fee99e434ca796 and fixed in 6.14 with commit ad95bab0cd28ed77c2c0d0b6e76e03e031391064 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-2025-21927 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/9fbc953d6b38bc824392e01850f0aeee3b348722 https://git.kernel.org/stable/c/22b06c89aa6b2d1ecb8aea72edfb9d53af8d5126 https://git.kernel.org/stable/c/ad95bab0cd28ed77c2c0d0b6e76e03e031391064