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 9ED2B184100 for ; Mon, 15 Jul 2024 08:48:19 +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=1721033299; cv=none; b=AgOklCOLVpRfrIj+i00+ds+WqIKL/Bp9YXWlpCktFFZS5RCuz+Vn+FQfw3XJXIczr1kYAo2I9yWezSBwy+pDSRgqjxbqVpZU/ueviTt9Q22ZZ1bmnCJxPOahIT5mHX6hvxZpAWHKXnpmAiINuH5PKlE+mYKqGw7hEEQNnriBm7M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721033299; c=relaxed/simple; bh=OR02LrJMKUo7LCc2rd2t/6X3Nh/H2kNyRNL34oTshso=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Bfc6RxD/KZnw8nt1DI4y70+wyr6BzO6Q66+rfQJmc2xa4GGLt+dzvqgpWUSe5XPkTABTr0YAA38c8GO1Ndg5/AXX6fQCosboqFoMWHbta6PBz0e24onzZdfgcGNWiRizJh2d7bLGZZlvTILg4yurZwCIRVB1dhS40lE1eUnZBFQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hjVo06xP; 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="hjVo06xP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14038C4AF0B; Mon, 15 Jul 2024 08:48:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721033299; bh=OR02LrJMKUo7LCc2rd2t/6X3Nh/H2kNyRNL34oTshso=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hjVo06xPokDT9hjf/WH/cH4tKpkIlAkVQV9p7HqE7DMkUw7za1fhBgYc7wehpPGj+ NCqfwa5qcxDxQ9HDAaRL9vn0pjtBc8Rp/zs69JY9RBa2qrI2c/cABArTcyIWE7EM52 qqZy17byH41Lr7ASm8RsqqFsit9ZDbytRnoN+/4s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-41007: tcp: avoid too many retransmit packets Date: Mon, 15 Jul 2024 10:48:14 +0200 Message-ID: <2024071513-CVE-2024-41007-777c@gregkh> X-Mailer: git-send-email 2.45.2 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=2104; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OR02LrJMKUo7LCc2rd2t/6X3Nh/H2kNyRNL34oTshso=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlTHvlOvv5wlVuB5Yq1x/cYtyUt2rvY6meincKCy/c3m tokKnkydcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE7CsYFjS8YA20SH+2tEwj Xfhq8pdPRYkbaxgW3DL4Jf6k/Ui2+C6TgvkXzTk7bC+tAgA= 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: tcp: avoid too many retransmit packets If a TCP socket is using TCP_USER_TIMEOUT, and the other peer retracted its window to zero, tcp_retransmit_timer() can retransmit a packet every two jiffies (2 ms for HZ=1000), for about 4 minutes after TCP_USER_TIMEOUT has 'expired'. The fix is to make sure tcp_rtx_probe0_timed_out() takes icsk->icsk_user_timeout into account. Before blamed commit, the socket would not timeout after icsk->icsk_user_timeout, but would use standard exponential backoff for the retransmits. Also worth noting that before commit e89688e3e978 ("net: tcp: fix unexcepted socket die when snd_wnd is 0"), the issue would last 2 minutes instead of 4. The Linux kernel CVE team has assigned CVE-2024-41007 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit b701a99e431d and fixed in 6.10 with commit 97a9063518f1 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-41007 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/ipv4/tcp_timer.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/97a9063518f198ec0adb2ecb89789de342bb8283