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 65CE7330327 for ; Wed, 24 Dec 2025 12:28:11 +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=1766579291; cv=none; b=JGMssytCezP35188UXKjn1coqCBCbnXZjXW8a/mVbRHNp07mVVPsB3pb1eueWdjNf36t5xpDaX3+RewGnTS+m1P4ejBit6jNJw/n7iQJ7YPKLPHMrvArLNhuDTjP5IRHi7Gh7xKEkc5QtDT3QsJumC5NsE9KLYGPsSOVczapbbo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766579291; c=relaxed/simple; bh=HtWDLaFn9cZK8N/5YekEIHhsbyM0dwhTz58x41SwAoc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AsHAZbS7j80BwZRQsFo5gQaFop2KJIjrnxcnUHEzIpMWfjkh/lC43YsQHzLBnTMZuMkFvzSWZu42AozjK1n1bShJaVyXUfhSoaHkfVzf5aPXBfiUPhVMKipkeKgL4bGINc8EPDR5iFReZhk89QLQ3hB7xc3YQWrvoz8TswB14SU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IUkkQiW7; 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="IUkkQiW7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9276C4CEFB; Wed, 24 Dec 2025 12:28:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766579291; bh=HtWDLaFn9cZK8N/5YekEIHhsbyM0dwhTz58x41SwAoc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=IUkkQiW7qGZyIEOkCkHOQFQ+JEoof6OvXtboEJJsgee/ooYTo5pNkbv/63t5NHJ+b Nh5NST2LzfNSE+EqkF9D+TqlO4psNM4bcA+kdZKKp9vPCYvzxsq4kA/+3dYi0DK22N RULwoyTcPaF2hg7Bcaak5OVDvDheFTarVvQdYxO4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50717: nvmet-tcp: add bounds check on Transfer Tag Date: Wed, 24 Dec 2025 13:26:16 +0100 Message-ID: <2025122416-CVE-2022-50717-dc68@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2297; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iufFKIsO79jwmzwMIhbu9qK4CEQknyfOsWmPchPXSCM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnet1/cyH2hn1m9mWmBzafPKzt/lHsdXrQid8K9IMbos ET/2+psHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRDTIMC46Ll/z4xej4pbG8 +8fyQ0V/8kp4ShnmWVy9aHXu9IeKj0d2PRb/I25hX5V2BwA= 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: nvmet-tcp: add bounds check on Transfer Tag ttag is used as an index to get cmd in nvmet_tcp_handle_h2c_data_pdu(), add a bounds check to avoid out-of-bounds access. The Linux kernel CVE team has assigned CVE-2022-50717 to this issue. Affected and fixed versions =========================== Fixed in 5.4.220 with commit 0d150ccd55dbfad36f55855b40b381884c98456e Fixed in 5.10.150 with commit d5bb45f47b37d10f010355686b28c9ebacb361d4 Fixed in 5.15.75 with commit ec8adf767e1cfa7031f853b8c71ba1963f07df15 Fixed in 5.19.17 with commit fcf82e4553db911d10234ff2390cfd0e2aa854e4 Fixed in 6.0.3 with commit 752593d04637ebdc87fd29cba81897f21ae053f0 Fixed in 6.1 with commit b6a545ffa2c192b1e6da4a7924edac5ba9f4ea2b 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-50717 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/target/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/0d150ccd55dbfad36f55855b40b381884c98456e https://git.kernel.org/stable/c/d5bb45f47b37d10f010355686b28c9ebacb361d4 https://git.kernel.org/stable/c/ec8adf767e1cfa7031f853b8c71ba1963f07df15 https://git.kernel.org/stable/c/fcf82e4553db911d10234ff2390cfd0e2aa854e4 https://git.kernel.org/stable/c/752593d04637ebdc87fd29cba81897f21ae053f0 https://git.kernel.org/stable/c/b6a545ffa2c192b1e6da4a7924edac5ba9f4ea2b