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 ABF962E54A3 for ; Tue, 7 Oct 2025 15:22:40 +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=1759850560; cv=none; b=bEmYuvsviR7qL1j62j3XT4it8GcB7yZwAKx4JkPjZ0D/sIOVxpSKq8vy7SOtuWSLBaxYrJSPlAV05fi6T3CGzqtwcOphV3u5HjZXff0o/9t2BxTpX+vI70gQSKaOktDcIHIN5wLFyGl/kKT20e8bSFpAwutrEcCgb+fZx+W0+1c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850560; c=relaxed/simple; bh=06HOcnxpFGWaIWp6W9zKF92WDqe/govrXJVINH4huMc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eCAGqGkJ9AdK8+PQ9zngLIt/kX23ltJDcCM8xVQNx7+X01TfUqOPEOIYqw4tVfLGfSa0a2SHKIL+cXZXlgJc8gGjkn/lOaQ0KIn6aWzCMTCf5uuq3bRJ0nqQNO0Kz/zZFg+xOOZlG5NCom7AFCvrFSPhctToBtyXMPKwx5xWM2k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NFFedWyK; 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="NFFedWyK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 308A3C4CEF1; Tue, 7 Oct 2025 15:22:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850560; bh=06HOcnxpFGWaIWp6W9zKF92WDqe/govrXJVINH4huMc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NFFedWyKMpoPX8GbbzA6ZW7SpXRhrekC0XR/huDWEXUq0JPv+07cmDjpYOWWJ/fgV jhwyCOWQnNB+fny4EE3iylqKDmhEoH+oSpg2rGlcAQUUIIdjQfDREXAlKIrsc802dm 1YnMAkqlDytfZuBj7c70hHs/xH628d+bixYHJrIw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53643: nvme-tcp: don't access released socket during error recovery Date: Tue, 7 Oct 2025 17:19:48 +0200 Message-ID: <2025100716-CVE-2023-53643-4725@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=2334; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KcXlcdrymwb68s9lY8jiVtVBYfj7VgaJSdhkB/hlc7A=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9UsilnkUZn5+n7jmTSvjzSW2a+6Z7ld29VsXzidRd 7Iy3XVSRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkhSbDgolMq04ESPaIrHp/ S61fpUnas3nKI4b5/ltWeB8y/JV4N6ebJ/FQnZvBBF1/AA== 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: nvme-tcp: don't access released socket during error recovery While the error recovery work is temporarily failing reconnect attempts, running the 'nvme list' command causes a kernel NULL pointer dereference by calling getsockname() with a released socket. During error recovery work, the nvme tcp socket is released and a new one created, so it is not safe to access the socket without proper check. The Linux kernel CVE team has assigned CVE-2023-53643 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit 02c57a82c0081141abc19150beab48ef47f97f18 and fixed in 6.1.18 with commit fe2d9e54165dadaa0d0cc3355c0be9c3e129fa0d Issue introduced in 6.1 with commit 02c57a82c0081141abc19150beab48ef47f97f18 and fixed in 6.2.5 with commit d82f762db4776fa11de88018f0f5de2d5db72a72 Issue introduced in 6.1 with commit 02c57a82c0081141abc19150beab48ef47f97f18 and fixed in 6.3 with commit 76d54bf20cdcc1ed7569a89885e09636e9a8d71d 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-53643 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/fe2d9e54165dadaa0d0cc3355c0be9c3e129fa0d https://git.kernel.org/stable/c/d82f762db4776fa11de88018f0f5de2d5db72a72 https://git.kernel.org/stable/c/76d54bf20cdcc1ed7569a89885e09636e9a8d71d