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 262ED212B3E for ; Wed, 26 Feb 2025 02:12:59 +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=1740535979; cv=none; b=ZAJWgbL9tG682dRI0jHn9GSVRA6kpQc6s1aF4apmXTtyZR8fXb72SRn1r+lcEI/yS7iqkTgBfydptriPI82XzG9q2QQS0hUgckBMdXw2nZCCkPyWieLlUIFa24XxNTuK/4Dgrmv3tVMFQzLNkoMYpQciGhb+OOS3Q9t7CKQObpY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535979; c=relaxed/simple; bh=S0aTKJcf8fMDKxlxYAMwPSuUuFpyPa3lT9xGohSFbss=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HzqZuoaNli9Hx+M0+o0wtjgngUmvVWRewGtLaAv5z5AkwvqPX55vroxQVj5w28N96doVsU49IchSYNRWHfP4WrZaPLzwyYC9s/kq3Png1mDNy2c7gc8EA9ZcG0LPIrwLEQaSN0iZhlfsogHXnTAo53bxNcafKYyImWf/WhJao7c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xHRGgiLF; 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="xHRGgiLF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF65DC4CEE6; Wed, 26 Feb 2025 02:12:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535979; bh=S0aTKJcf8fMDKxlxYAMwPSuUuFpyPa3lT9xGohSFbss=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xHRGgiLFxf7SWRsbm46peLjqUQhNLP1+IBK4xqEdw9iF11H4Plru1+3w5LT5QstOc 4hzXBJduPL6IT0dbbrduIVHzht6pzVcpRGgb3Q/s4W4NmS53GS3XCKhYCTtdUuFUhL QcyxNNjp0OcjqWA2uU9stEkGGJUaVOxywvEYWKe8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49325: tcp: add accessors to read/set tp->snd_cwnd Date: Wed, 26 Feb 2025 03:09:59 +0100 Message-ID: <2025022638-CVE-2022-49325-a2ac@gregkh> X-Mailer: git-send-email 2.48.1 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=2915; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=S0aTKJcf8fMDKxlxYAMwPSuUuFpyPa3lT9xGohSFbss=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yh+Z773yyvjrftnCi5UnfpudzbzIFqTWGT9xrZqxb Xlm4eX1HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARm2KGBRNM5tyXVnK6qXjO fXe/R/rCKa9Uohjm8Kk2deT9EZt5Ysu+SyEPpFhL57+wBgA= 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: add accessors to read/set tp->snd_cwnd We had various bugs over the years with code breaking the assumption that tp->snd_cwnd is greater than zero. Lately, syzbot reported the WARN_ON_ONCE(!tp->prior_cwnd) added in commit 8b8a321ff72c ("tcp: fix zero cwnd in tcp_cwnd_reduction") can trigger, and without a repro we would have to spend considerable time finding the bug. Instead of complaining too late, we want to catch where and when tp->snd_cwnd is set to an illegal value. The Linux kernel CVE team has assigned CVE-2022-49325 to this issue. Affected and fixed versions =========================== Fixed in 5.15.47 with commit 3308676ec525901bf1656014003c443a60730a04 Fixed in 5.17.15 with commit 5aba0ad44fb4a7fb78c5076c313456de199a3c29 Fixed in 5.18.4 with commit 41e191fe72282e193a7744e2fc1786b23156c9e4 Fixed in 5.19 with commit 40570375356c874b1578e05c1dcc3ff7c1322dbe 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-2022-49325 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: include/net/tcp.h include/trace/events/tcp.h net/core/filter.c net/ipv4/tcp.c net/ipv4/tcp_bbr.c net/ipv4/tcp_bic.c net/ipv4/tcp_cdg.c net/ipv4/tcp_cong.c net/ipv4/tcp_cubic.c net/ipv4/tcp_dctcp.c net/ipv4/tcp_highspeed.c net/ipv4/tcp_htcp.c net/ipv4/tcp_hybla.c net/ipv4/tcp_illinois.c net/ipv4/tcp_input.c net/ipv4/tcp_ipv4.c net/ipv4/tcp_lp.c net/ipv4/tcp_metrics.c net/ipv4/tcp_nv.c net/ipv4/tcp_output.c net/ipv4/tcp_rate.c net/ipv4/tcp_scalable.c net/ipv4/tcp_vegas.c net/ipv4/tcp_veno.c net/ipv4/tcp_westwood.c net/ipv4/tcp_yeah.c net/ipv6/tcp_ipv6.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/3308676ec525901bf1656014003c443a60730a04 https://git.kernel.org/stable/c/5aba0ad44fb4a7fb78c5076c313456de199a3c29 https://git.kernel.org/stable/c/41e191fe72282e193a7744e2fc1786b23156c9e4 https://git.kernel.org/stable/c/40570375356c874b1578e05c1dcc3ff7c1322dbe