tcp: Fix Use-After-Free in tcp_ao_connect_init
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tcp: Fix Use-After-Free in tcp_ao_connect_init
Since call_rcu, which is called in the hlist_for_each_entry_rcu traversal of tcp_ao_connect_init, is not part of the RCU read critical section, it is possible that the RCU grace period will pass during the traversal and the key will be free.
To prevent this, it should be changed to hlist_for_each_entry_safe.
From the CVE record · Linux
The Linux kernel has a use-after-free in tcp_ao_connect_init: an RCU grace period can pass during key traversal, allowing a key to be freed. The input does not specify what an attacker can do or whether exploitation requires network or local access, authentication, or user interaction.
Teams running the Linux kernel should check their deployments; affected versions are not specified.