Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilityproof-of-concept-releasewidely-deployed-product-advisoryprivilege-escalation-technique

Linux Kernel TCP-AO Use-After-Free Flaw Traced to RCU Misuse

Vulnerability Disclosure · 2 sources · Updated 4mo ago · First seen Sep 3, 2024

Linux Kernel TCP-AO Use-After-Free Flaw Traced to RCU Misuse

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
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

3 events · Jan 1, 2010 – Sep 3, 2024
  1. Sep 3, 20242y ago

    TCP-AO use-after-free flaw was patched and backported

    Theori's analysis states that the fix for CVE-2024-27394 was patched in April and backported to stable kernels. The patch changed iteration in tcp_ao_connect_init() from hlist_for_each_entry_rcu to hlist_for_each_entry_safe.

    Deep Dive into RCU Race Condition: Analysis of TCP-AO UAF (CVE-2024-27394) - Theori BLOG
  2. Sep 3, 20242y ago

    Theori published deep-dive analysis and PoC details for CVE-2024-27394

    Theori published a technical analysis of CVE-2024-27394, describing the Linux kernel TCP-AO use-after-free bug, a reliable trigger technique based on ExpRace, and a PoC reproducing the issue on Linux 6.8.4 with KASAN and CONFIG_PREEMPT enabled.

    Deep Dive into RCU Race Condition: Analysis of TCP-AO UAF (CVE-2024-27394) - Theori BLOG
  3. Jan 1, 201017y ago

    Linux kernel documentation explains RCU fundamentals

    The Linux kernel project published documentation describing Read-Copy Update (RCU), the synchronization mechanism later implicated in the analyzed race condition.

    What is RCU? -- “Read, Copy, Update” - The Linux Kernel documentation
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Linux Kernel
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.