CVE-2022-49573: tcp: Fix a data-race around sysctl_tcp_early_retrans.
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
tcp: Fix a data-race around sysctl_tcp_early_retrans.
While reading sysctl_tcp_early_retrans, it can be changed concurrently. Thus, we need to add READ_ONCE() to its reader.
The Linux kernel CVE team has assigned CVE-2022-49573 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.5 with commit eed530b6c67624db3f2cf477bac7c4d005d8f7ba and fixed in 4.19.254 with commit 488d3ad98ef7cddce7054193dbae6b4349c6807d Issue introduced in 3.5 with commit eed530b6c67624db3f2cf477bac7c4d005d8f7ba and fixed in 5.4.208 with commit 83767fe800a311370330d4ec83aa76093b744a80 Issue introduced in 3.5 with commit eed530b6c67624db3f2cf477bac7c4d005d8f7ba and fixed in 5.10.134 with commit 11e8b013d16e5db63f8f76acceb5b86964098aaa Issue introduced in 3.5 with commit eed530b6c67624db3f2cf477bac7c4d005d8f7ba and fixed in 5.15.58 with commit 5037ca9e4b169cc9aed0174d658c3d81fdaf8ea5 Issue introduced in 3.5 with commit eed530b6c67624db3f2cf477bac7c4d005d8f7ba and fixed in 5.18.15 with commit d5975f6376ce90c2c483ae36bf88c9cface4c13b Issue introduced in 3.5 with commit eed530b6c67624db3f2cf477bac7c4d005d8f7ba and fixed in 5.19 with commit 52e65865deb6a36718a463030500f16530eaab74
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-49573
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_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/488d3ad98ef7cddce7054193dbae6b4349c6807d https://git.kernel.org/stable/c/83767fe800a311370330d4ec83aa76093b744a80 https://git.kernel.org/stable/c/11e8b013d16e5db63f8f76acceb5b86964098aaa https://git.kernel.org/stable/c/5037ca9e4b169cc9aed0174d658c3d81fdaf8ea5 https://git.kernel.org/stable/c/d5975f6376ce90c2c483ae36bf88c9cface4c13b https://git.kernel.org/stable/c/52e65865deb6a36718a463030500f16530eaab74