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 8229F173328 for ; Wed, 18 Sep 2024 07:18:13 +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=1726643893; cv=none; b=JjLFjOMxcbEqh8zcXZQAyNH/lKlMg5tRDOf7y+6qkBL5cd0InXFKk3QlbRKc0u3BtxlAmy/6kR5P/qPyFkyzC8SZlSZspwqgJcQMSkNSImXRY+AxfU+9QJZkD5GsX7npVlfJEeUvim4DlM6OdWKLooploB/2iwMqGVv4G3V2TXs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726643893; c=relaxed/simple; bh=RIvYZWyBOZxuDw68O3NCRYdCYs0Hy13qHPG7ASO/zdg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=k7u/zoPe0Rc2V6jnvgEqty5LjY6PggvEVXkenbdk6XHUodHjrTlZFLaarUunWDtux5i5IPlgE07+XeIBrayQR4Nmh+TwMLqt4s+Vrin9hmAiQO5xJKzQl18Dphyrn8E7+UsxPtsSmeaJlNt6fKVKLECVamgPOCL6dSMpzajUYPU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Rascn2Xe; 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="Rascn2Xe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3031C4CECE; Wed, 18 Sep 2024 07:18:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726643893; bh=RIvYZWyBOZxuDw68O3NCRYdCYs0Hy13qHPG7ASO/zdg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Rascn2Xev+sbBQetNAw6xUM1bvowmhW9WB8kL9huQjtdN233bZC2roIpeKv4J90Hm RJpu6eNk8QQ966jkh7/wGyziw6RHFYKllOZtPhjD+vcFobJoyYfKvGXHBlcQcqS9kI EdYEP6d/YJTxm42qvCM/vVH5oMwjCoKx3CPRnKNM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46737: nvmet-tcp: fix kernel crash if commands allocation fails Date: Wed, 18 Sep 2024 09:16:32 +0200 Message-ID: <2024091833-CVE-2024-46737-d36f@gregkh> X-Mailer: git-send-email 2.46.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=2903; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RIvYZWyBOZxuDw68O3NCRYdCYs0Hy13qHPG7ASO/zdg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6gKXWVz0/qSnadkhbsnp+fz02iMzr9s/ENQ6tni6V NpH387kjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIBnWGBRu3LfnApsFpeGFy 7JnX96dL5ltc38KwYHc+u+iT5KczX57xEjBtOjuPy0JjJwA= 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: nvmet-tcp: fix kernel crash if commands allocation fails If the commands allocation fails in nvmet_tcp_alloc_cmds() the kernel crashes in nvmet_tcp_release_queue_work() because of a NULL pointer dereference. nvmet: failed to install queue 0 cntlid 1 ret 6 Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008 Fix the bug by setting queue->nr_cmds to zero in case nvmet_tcp_alloc_cmd() fails. The Linux kernel CVE team has assigned CVE-2024-46737 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit 872d26a391da and fixed in 5.4.284 with commit 03e1fd0327fa Issue introduced in 5.0 with commit 872d26a391da and fixed in 5.10.226 with commit 50632b877ce5 Issue introduced in 5.0 with commit 872d26a391da and fixed in 5.15.167 with commit 91dad30c5607 Issue introduced in 5.0 with commit 872d26a391da and fixed in 6.1.110 with commit 7957c731fc2b Issue introduced in 5.0 with commit 872d26a391da and fixed in 6.6.51 with commit 489f2913a63f Issue introduced in 5.0 with commit 872d26a391da and fixed in 6.10.10 with commit 6c04d1e3ab22 Issue introduced in 5.0 with commit 872d26a391da and fixed in 6.11 with commit 5572a55a6f83 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-2024-46737 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/03e1fd0327fa5e2174567f5fe9290fe21d21b8f4 https://git.kernel.org/stable/c/50632b877ce55356f5d276b9add289b1e7ddc683 https://git.kernel.org/stable/c/91dad30c5607e62864f888e735d0965567827bdf https://git.kernel.org/stable/c/7957c731fc2b23312f8935812dee5a0b14b04e2d https://git.kernel.org/stable/c/489f2913a63f528cfe3f21722583fb981967ecda https://git.kernel.org/stable/c/6c04d1e3ab22cc5394ef656429638a5947f87244 https://git.kernel.org/stable/c/5572a55a6f830ee3f3a994b6b962a5c327d28cb3