Skip to contentSkip to conversation

CVE-2022-49630: tcp: Fix a data-race around sysctl_tcp_ecn_fallback.

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Feb 26, 2025

lore
Share & tools
lore
#0 lore raw

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

tcp: Fix a data-race around sysctl_tcp_ecn_fallback.

While reading sysctl_tcp_ecn_fallback, it can be changed concurrently. Thus, we need to add READ_ONCE() to its reader.

The Linux kernel CVE team has assigned CVE-2022-49630 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.2 with commit 492135557dc090a1abb2cfbe1a412757e3ed68ab and fixed in 5.15.56 with commit 8bcf7339f2cf70ea4461df6ea045d1aadfabfa11
	Issue introduced in 4.2 with commit 492135557dc090a1abb2cfbe1a412757e3ed68ab and fixed in 5.18.13 with commit 1ec3d6c2626ee6e1b36b7bd006873a271406ba61
	Issue introduced in 4.2 with commit 492135557dc090a1abb2cfbe1a412757e3ed68ab and fixed in 5.19 with commit 12b8d9ca7e678abc48195294494f1815b555d658

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-49630

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/sysctl_net_ipv4.c
	net/ipv4/tcp_output.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/8bcf7339f2cf70ea4461df6ea045d1aadfabfa11
	https://git.kernel.org/stable/c/1ec3d6c2626ee6e1b36b7bd006873a271406ba61
	https://git.kernel.org/stable/c/12b8d9ca7e678abc48195294494f1815b555d658