Description · from the CVE record
In the Linux kernel, the following vulnerability has been resolved:
tcp: fix potential race in tcp_v6_syn_recv_sock()
Code in tcp_v6_syn_recv_sock() after the call to tcp_v4_syn_recv_sock()
is done too late.
After tcp_v4_syn_recv_sock(), the child socket is already visible
from TCP ehash table and other cpus might use it.
Since newinet->pinet6 is still pointing to the listener ipv6_pinfo
bad things can happen as syzbot found.
Move the problematic code in tcp_v6_mapped_child_init()
and call this new helper from tcp_v4_syn_recv_sock() before
the ehash insertion.
This allows the removal of one tcp_sync_mss(), since
tcp_v4_syn_recv_sock() will call it with the correct
context.
Affected
ProductAffectedFixed inSource
Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – < aef4a9ae95d1bc4f7897065011e6261026719aebaef4a9ae95d1bc4f7897065011e6261026719aebCNA
Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – < dad1fe7db6c6519138430ac8f5e589c18f83bfc9dad1fe7db6c6519138430ac8f5e589c18f83bfc9CNA
Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – < a7e761ba55efaa9c49e0afdd304bb78167af3429a7e761ba55efaa9c49e0afdd304bb78167af3429CNA
Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – < cd644e6dc72eec8d9d988717ea1c54f8668ded69cd644e6dc72eec8d9d988717ea1c54f8668ded69CNA
Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – < 9ed654e340f4c73bc6f0af2fbc90ac293e645ce09ed654e340f4c73bc6f0af2fbc90ac293e645ce0CNA
Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – < fe89b2f05b854847784f91127319172945c1faddfe89b2f05b854847784f91127319172945c1faddCNA
Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – < 7178e2a8027423b2af17ab95df73a749a5b72e5b7178e2a8027423b2af17ab95df73a749a5b72e5bCNA
Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – < 858d2a4f67ff69e645a43487ef7ea7f28f06deae858d2a4f67ff69e645a43487ef7ea7f28f06deaeCNA
Linux2.6.12–CNA
Red Hat Enterprise Linux 10see advisory0:6.12.0-211.28.1.el10_2redhat-SADP
Red Hat Enterprise Linux 10.0 Extended Update Supportsee advisory0:6.12.0-55.84.1.el10_0redhat-SADP
Red Hat Enterprise Linux 7 Extended Lifecycle Supportsee advisory0:3.10.0-1160.155.1.rt56.1307.el7redhat-SADP