tcp: fix potential race in tcp_v6_syn_recv_sock()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: total
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in aef4a9ae95d1bc4f7897065011e6261026719aeb; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in dad1fe7db6c6519138430ac8f5e589c18f83bfc9; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in a7e761ba55efaa9c49e0afdd304bb78167af3429; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in cd644e6dc72eec8d9d988717ea1c54f8668ded69; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 9ed654e340f4c73bc6f0af2fbc90ac293e645ce0; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in fe89b2f05b854847784f91127319172945c1fadd; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 7178e2a8027423b2af17ab95df73a749a5b72e5b; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 858d2a4f67ff69e645a43487ef7ea7f28f06deae
- Linux Linux
2.6.12
- KernelLinux
From 2.6.12 · fixed in 5.10.270; From 5.11.0 · fixed in 5.15.221; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.16; From 6.19.0 · fixed in 6.19.6
References 8
git.kernel.org
- stable/c/aef4a9ae95d1bc4f7897065011e6261026719aeb
- stable/c/dad1fe7db6c6519138430ac8f5e589c18f83bfc9
- stable/c/a7e761ba55efaa9c49e0afdd304bb78167af3429
- stable/c/cd644e6dc72eec8d9d988717ea1c54f8668ded69
- stable/c/9ed654e340f4c73bc6f0af2fbc90ac293e645ce0
- stable/c/fe89b2f05b854847784f91127319172945c1fadd
- stable/c/7178e2a8027423b2af17ab95df73a749a5b72e5b
- stable/c/858d2a4f67ff69e645a43487ef7ea7f28f06deae