Skip to contentSkip to conversation

CVE-2022-49586: tcp: Fix data-races around sysctl_tcp_fastopen.

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 data-races around sysctl_tcp_fastopen.

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

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

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

	Issue introduced in 3.6 with commit 2100c8d2d9db23c0a09901a782bb4e3b21bee298 and fixed in 4.19.254 with commit 03da610696a32578fc4f986479341ce9d430df08
	Issue introduced in 3.6 with commit 2100c8d2d9db23c0a09901a782bb4e3b21bee298 and fixed in 5.4.208 with commit 25d53d858a6c0b89a6e69e376c2a57c4f4c2c8cc
	Issue introduced in 3.6 with commit 2100c8d2d9db23c0a09901a782bb4e3b21bee298 and fixed in 5.10.134 with commit 22938534c611136f35e2ca545bb668073ca5ef49
	Issue introduced in 3.6 with commit 2100c8d2d9db23c0a09901a782bb4e3b21bee298 and fixed in 5.15.58 with commit 539d9ab79eba3974b479cad61a8688c41fe62e12
	Issue introduced in 3.6 with commit 2100c8d2d9db23c0a09901a782bb4e3b21bee298 and fixed in 5.18.15 with commit 448ab998947996a0a451f8229f19087964cf2670
	Issue introduced in 3.6 with commit 2100c8d2d9db23c0a09901a782bb4e3b21bee298 and fixed in 5.19 with commit 5a54213318c43f4009ae158347aa6016e3b9b55a

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

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/af_inet.c
	net/ipv4/tcp.c
	net/ipv4/tcp_fastopen.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/03da610696a32578fc4f986479341ce9d430df08
	https://git.kernel.org/stable/c/25d53d858a6c0b89a6e69e376c2a57c4f4c2c8cc
	https://git.kernel.org/stable/c/22938534c611136f35e2ca545bb668073ca5ef49
	https://git.kernel.org/stable/c/539d9ab79eba3974b479cad61a8688c41fe62e12
	https://git.kernel.org/stable/c/448ab998947996a0a451f8229f19087964cf2670
	https://git.kernel.org/stable/c/5a54213318c43f4009ae158347aa6016e3b9b55a