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 1416B2E2F0E for ; Wed, 1 Oct 2025 11:53:10 +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=1759319590; cv=none; b=Qv8p0G57Wx0r8IAr7tHux3taAvJ26aVQy8TRTlE/4NPQowu9f0ZNDmhU66cq9QzAmIZT9Hobr6QM+mW70ZSKMNQTDuiJHXBNCOItLd9xLrdVZUu63vfY7zCF/ujXxbW45D7Xcw5vNtRHfgqYwPATqOInr/WThbI2pKb613v20cw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319590; c=relaxed/simple; bh=lf24m6APPZcsizdE2f4N292GbJpfEFPhnWvO4XtZnpY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jKviUXE2cGfOM7CacaFICPUSSw/qf3iyhU4Xg8jZ0veWIVIK1jSsrRECNek9Ri7io+J5yYj7hjPyJGxLQV7T1amxS0lC+BZYZSE1JDGt1qEANPLXuUMThKP4d72aebWCq6RRT3Anmu8cirChrUqZvhaQW98K9sTZuKgSBZZx/I0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YZxpw1bg; 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="YZxpw1bg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F1A3C4CEF4; Wed, 1 Oct 2025 11:53:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319589; bh=lf24m6APPZcsizdE2f4N292GbJpfEFPhnWvO4XtZnpY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YZxpw1bgwg/yZ1GPvqWQK4LzZT+vmhj8m5npxDJN7ZNphTU27jnyXZ4h2AxxGp8Kf jjcz7ngwuLH3pvS6FKAFh70dACCPt0+svPmtt0536uhqNkaQ7UC/1e5sgSsHDF/vKx LtyF7AMgYnRBMzeqPU1ISwF5HMZBq2/wWhqEYKiY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53464: scsi: iscsi_tcp: Check that sock is valid before iscsi_set_param() Date: Wed, 1 Oct 2025 13:42:34 +0200 Message-ID: <2025100107-CVE-2023-53464-a397@gregkh> X-Mailer: git-send-email 2.51.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=2978; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dHRSWJIIeANjxOuXY0N9eSLYT6uVrAI39qxwRJR1vKc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3hft3bt1xydakZ9bKchOnQzKyqjK/5AuO/W64f1N2j qDDjZpzHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRbCWGBUsFl5lrvvCe1Pxg aw/T6j0b3j/a/o1hvk9m3TEeh6fRiqtupM9XC2J5qbSPHwA= 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: scsi: iscsi_tcp: Check that sock is valid before iscsi_set_param() The validity of sock should be checked before assignment to avoid incorrect values. Commit 57569c37f0ad ("scsi: iscsi: iscsi_tcp: Fix null-ptr-deref while calling getpeername()") introduced this change which may lead to inconsistent values of tcp_sw_conn->sendpage and conn->datadgst_en. Fix the issue by moving the position of the assignment. The Linux kernel CVE team has assigned CVE-2023-53464 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10.150 with commit 884a788f065578bb640382279a83d1df433b13e6 and fixed in 5.10.178 with commit 499757ad3332e2527254f9ab68dec1da087b1d96 Issue introduced in 5.15.75 with commit a26b0658751bb0a3b28386fca715333b104d32a2 and fixed in 5.15.107 with commit 5e5c5f472972c4bc9430adc08b36763a0fa5b9f7 Issue introduced in 6.1 with commit 57569c37f0add1b6489e1a1563c71519daf732cf and fixed in 6.1.24 with commit 6e06a68fbbfcd8576eee8f7139fa2b13c9b72e91 Issue introduced in 6.1 with commit 57569c37f0add1b6489e1a1563c71519daf732cf and fixed in 6.2.11 with commit b287e21e73ec23f3788fbe40037c42dbe6e9a9a9 Issue introduced in 6.1 with commit 57569c37f0add1b6489e1a1563c71519daf732cf and fixed in 6.3 with commit 48b19b79cfa37b1e50da3b5a8af529f994c08901 Issue introduced in 5.19.17 with commit 897dbbc57d71e8a34ec1af8e573a142de457da38 Issue introduced in 6.0.3 with commit 0a0b861fce2657ba08ec356a74346b37ca4b2008 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-2023-53464 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/scsi/iscsi_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/499757ad3332e2527254f9ab68dec1da087b1d96 https://git.kernel.org/stable/c/5e5c5f472972c4bc9430adc08b36763a0fa5b9f7 https://git.kernel.org/stable/c/6e06a68fbbfcd8576eee8f7139fa2b13c9b72e91 https://git.kernel.org/stable/c/b287e21e73ec23f3788fbe40037c42dbe6e9a9a9 https://git.kernel.org/stable/c/48b19b79cfa37b1e50da3b5a8af529f994c08901