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 4CAD9131E2D for ; Thu, 1 May 2025 12:58:36 +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=1746104317; cv=none; b=uzxkE1dfXs0NfesX1u/O7zVCCembQJSCtAFIqfdJweHJljRAmOrOoWclkcmBx2x2eZaoZ6f+Z+tZwb5fG2UyBVklYkIPyiRbkDoDJe0LESo6tWTXXxgUwgeCcZ/yxrO0Ih8RZBGp9V4zASioevaQrhTPX5zDcAH0tufG1dDZcJM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746104317; c=relaxed/simple; bh=pmXLApbUym06mPhbphKtx3oZuMn8iMINMoL/RO3K55U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AvmPR+tsNtqJ1HFqtuphFjee3t0ATxp+vBrcY8gQu7cE6hptTVqyqa0urMZCk7Tef76Mbs+nmFiBDjda7Wyp1T4qRxr/M1IfL0QOvouftDuCZo0zcWtHzoXORm9UbSw87PYG+XW37MW7pfOhY9Vo8QJZQRYh2Nvg7798AoSfyeI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2TLbNGXZ; 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="2TLbNGXZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66376C4CEE3; Thu, 1 May 2025 12:58:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746104316; bh=pmXLApbUym06mPhbphKtx3oZuMn8iMINMoL/RO3K55U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2TLbNGXZP1ura7kmiFByR6R5glD4/xzXsRgn9sDs/dguLU/zC3JxVwbX7TxfVqIo/ D/8dn9dODsQjGhcXeBgcj+tEHmK5K/h9pOpW+h3oCS2Z9P2nLigJy+5tjl6SwPFnW1 JGAAcDN1C+Qyjss5pL/yuRZD8/uSitqG8qi0cyJs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37756: net: tls: explicitly disallow disconnect Date: Thu, 1 May 2025 14:57:02 +0200 Message-ID: <2025050139-CVE-2025-37756-a06e@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=3644; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Pu913oTN60pEzSAtKQTJ4VDqYqIMLaC+rdUdAqxdU9k=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnC+e1Sqf5f93DZBKTyfy+9leLy87LqW+al80olMjSss pPOv27viGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIlU5zAsuHm7rn/Zwb/ptk+t OWYtXLM0cUOLK8M8RZvSmRKnzDhM1Tld8gpZtHa8j0kHAA== 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: net: tls: explicitly disallow disconnect syzbot discovered that it can disconnect a TLS socket and then run into all sort of unexpected corner cases. I have a vague recollection of Eric pointing this out to us a long time ago. Supporting disconnect is really hard, for one thing if offload is enabled we'd need to wait for all packets to be _acked_. Disconnect is not commonly used, disallow it. The immediate problem syzbot run into is the warning in the strp, but that's just the easiest bug to trigger: WARNING: CPU: 0 PID: 5834 at net/tls/tls_strp.c:486 tls_strp_msg_load+0x72e/0xa80 net/tls/tls_strp.c:486 RIP: 0010:tls_strp_msg_load+0x72e/0xa80 net/tls/tls_strp.c:486 Call Trace: tls_rx_rec_wait+0x280/0xa60 net/tls/tls_sw.c:1363 tls_sw_recvmsg+0x85c/0x1c30 net/tls/tls_sw.c:2043 inet6_recvmsg+0x2c9/0x730 net/ipv6/af_inet6.c:678 sock_recvmsg_nosec net/socket.c:1023 [inline] sock_recvmsg+0x109/0x280 net/socket.c:1045 __sys_recvfrom+0x202/0x380 net/socket.c:2237 The Linux kernel CVE team has assigned CVE-2025-37756 to this issue. Affected and fixed versions =========================== Issue introduced in 4.13 with commit 3c4d7559159bfe1e3b94df3a657b2cda3a34e218 and fixed in 6.1.135 with commit f3ce4d3f874ab7919edca364c147ac735f9f1d04 Issue introduced in 4.13 with commit 3c4d7559159bfe1e3b94df3a657b2cda3a34e218 and fixed in 6.6.88 with commit 2bcad8fefcecdd5f005d8c550b25d703c063c34a Issue introduced in 4.13 with commit 3c4d7559159bfe1e3b94df3a657b2cda3a34e218 and fixed in 6.12.24 with commit 9fcbca0f801580cbb583e9cb274e2c7fbe766ca6 Issue introduced in 4.13 with commit 3c4d7559159bfe1e3b94df3a657b2cda3a34e218 and fixed in 6.13.12 with commit c665bef891e8972e1d3ce5bbc0d42a373346a2c3 Issue introduced in 4.13 with commit 3c4d7559159bfe1e3b94df3a657b2cda3a34e218 and fixed in 6.14.3 with commit 8513411ec321942bd3cfed53d5bb700665c67d86 Issue introduced in 4.13 with commit 3c4d7559159bfe1e3b94df3a657b2cda3a34e218 and fixed in 6.15-rc2 with commit 5071a1e606b30c0c11278d3c6620cd6a24724cf6 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-37756 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: net/tls/tls_main.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/f3ce4d3f874ab7919edca364c147ac735f9f1d04 https://git.kernel.org/stable/c/2bcad8fefcecdd5f005d8c550b25d703c063c34a https://git.kernel.org/stable/c/9fcbca0f801580cbb583e9cb274e2c7fbe766ca6 https://git.kernel.org/stable/c/c665bef891e8972e1d3ce5bbc0d42a373346a2c3 https://git.kernel.org/stable/c/8513411ec321942bd3cfed53d5bb700665c67d86 https://git.kernel.org/stable/c/5071a1e606b30c0c11278d3c6620cd6a24724cf6