Linux Kernel TCP-AO Use-After-Free Flaw Traced to RCU Misuse
Vulnerability Disclosure · 2 sources · Updated 4mo ago · First seen Sep 3, 2024

Researchers detailed CVE-2024-27394, a Linux kernel use-after-free flaw in the TCP Authentication Option (TCP-AO) implementation, linking the bug to incorrect use of the kernel’s Read-Copy Update (RCU) synchronization model. The issue affects tcp_ao_connect_init() in net/ipv4/tcp_ao.c, where the kernel iterates over TCP-AO keys with an RCU list macro and schedules key reclamation with call_rcu() without remaining inside an RCU read-side critical section, creating a window in which a freed key can still be accessed.
The analysis showed the bug can be prepared through setsockopt(TCP_AO_ADD_KEY) and triggered during connect() on IPv4 TCP sockets, with a proof of concept reportedly reproducing the fault on Linux kernel 6.8.4 under KASAN and CONFIG_PREEMPT. Researchers said the race can be made more reliable by forcing preemption with reschedule IPIs, widening the interval between reclamation and continued iteration. The fix replaces hlist_for_each_entry_rcu with hlist_for_each_entry_safe to prevent dereferencing a freed next node, and the patch was reported as merged in April and backported to stable kernels.
Why it matters
Impact assessment
CVE-2024-27394 affects Linux systems using kernel builds that include the vulnerable TCP-AO implementation, particularly environments enabling TCP Authentication Option on IPv4 TCP sockets. The immediate impact is kernel memory corruption via a use-after-free, which can cause crashes or instability; depending on exploitability in a given environment, kernel-level code execution cannot be ruled out for exposed systems.
The exposure appears narrower than a generic Linux kernel flaw because it requires TCP-AO-related code paths, but it is still significant for operators of network infrastructure, telecom, service providers, and specialized environments using TCP authentication features. The story describes proof-of-concept reproduction and reliability improvements for triggering the race, but it does not provide evidence of active exploitation in the wild.
Affected populations and scope
- Linux kernel users with vulnerable TCP-AO code present
- Operators of systems using TCP Authentication Option for TCP session authentication/integrity
- Higher relevance to network infrastructure and specialized deployments rather than all Linux endpoints
- Trigger path is on IPv4 TCP sockets during connection setup
Severity and business impact
- Kernel use-after-free can lead to:
- system crashes
- service instability
- potential denial of service
- possible privilege escalation or code execution risk if exploitability is developed further
- Operational disruption is the primary near-term concern for exposed systems
- Reputational and financial impact depends on whether affected systems are production network nodes or critical services
Known exploitation status
- Proof of concept reportedly reproduced the flaw on Linux 6.8.4 with KASAN and CONFIG_PREEMPT
- No in-the-wild exploitation is stated in the provided references
- Patch was reportedly merged in April and backported to stable kernels


