Vulnerability record
tcp: free saved_syn after an RCU grace period
In the Linux kernel, the following vulnerability has been resolved:
tcp: free saved_syn after an RCU grace period
tcp_reqsk_record_syn() allocates saved_syn separately from its request socket. bpf_sock_ops_get_syn() can load that pointer while processing a retransmitted SYN under RCU.
There are two ownership transfers which can let another CPU reclaim the allocation while such a reader is still using it.
First, tcp_move_syn() transfers req->saved_syn to a newly created child socket. The child can be closed and tcp_saved_syn_free() can reclaim the allocation before a reader of the old…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources