In the Linux kernel, the following vulnerability has been resolved:
tcp: restore RCU grace period in tcp_ao_destroy_sock
Commit 51e547e8c89c ("tcp: Free TCP-AO/TCP-MD5 info/keys without RCU") removed the call_rcu() callback from tcp_ao_destroy_sock(), arguing that "the destruction of info/keys is delayed until the socket destructor" and therefore "no one can discover it anymore".
That argument does not hold for the call site in tcp_connect() (net/ipv4/tcp_output.c:4327-4332). At that point the socket is in TCP_SYN_SENT, has already been inserted into the inet ehash by inet_hash_connect() in tcp_v4_connect(), and is therefore very much discoverable: any softirq running tcp_v4_rcv() on another CPU can take the socket out of the ehash, walk into tcp_inbound_hash(), and load tp->ao_info via implicit RCU before bh_lock_sock_nested() is taken on the destroying CPU.
The reader path then enters __tcp_ao_do_lookup() (net/ipv4/tcp_ao.c:208) which re-loads tp->ao_info via rcu_dereference_check(); the re-load can still observe the (about-to-be-freed) pointer because there is no synchronize_rcu() between rcu_assign_pointer(tp->ao_info, NULL) and tcp_ao_info_free() in tcp_ao_destroy_sock(). The captured pointer is then walked at line 223:
hlist_for_each_entry_rcu(key, &ao->head, node, ...)
The writer's synchronous kfree() is free to complete between the line 218 re-fetch and the line 223 hlist iteration. The slab is reused (or simply LIST_POISON1-stamped if not yet reused) and the iteration walks attacker-controlled or poison memory in softirq context.
Reproducer (no debug shim, stock x86_64 v7.1-rc2 SMP+KASAN, QEMU+KVM): an unprivileged uid=1000 process inside CLONE_NEWUSER|CLONE_NEWNET installs TCP_MD5SIG + TCP_AO_ADD_KEY on a TCP socket, sprays forged TCP-AO segments toward its eventual 4-tuple via raw sockets, then calls connect(). The md5-wins reconciliation in tcp_connect() fires tcp_ao_destroy_sock(); the softirq backlog reader on the loopback NAPI path crashes on the freed ao->head.first walk:
Oops: general protection fault, probably for non-canonical address 0xfbd59c000000002f KASAN: maybe wild-memory-access in range [0xdead000000000178-0xdead00000000017f] CPU: 0 UID: 1000 PID: 100 Comm: repro_userns RIP: 0010:__tcp_ao_do_lookup+0x107/0x1c0 Call Trace: <IRQ> __tcp_ao_do_lookup+0x107/0x1c0 tcp_ao_inbound_lookup.constprop.0+0x12a/0x200 tcp_inbound_ao_hash+0x5ea/0x1520 tcp_inbound_hash+0x7ce/0x1240 tcp_v4_rcv+0x1e7a/0x3e10 ...
Restore the RCU grace period: re-add struct rcu_head to tcp_ao_info and replace the synchronous tcp_ao_info_free() with a call_rcu() callback. Readers that captured tp->ao_info before rcu_assign_pointer NULLed it now see the object remain valid until rcu_read_unlock(). With the patch applied the reproducer runs cleanly for 2000 iterations on the same kernel build.
CVSS Details
- CVSS 3.1 Base Score: 9.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon_linux_2023 | — | Upgrade bpftool6.18Upgrade python3-perf6.18Upgrade bpftool6.18-debuginfoUpgrade kernel6.18-tools-debuginfoUpgrade kernel6.18-modules-extraUpgrade kernel-livepatch-6.18.39-79.141Upgrade python3-perf6.18-debuginfoUpgrade kernel6.18-debuginfo-common-aarch64Upgrade microvm-kernel6.18Upgrade perf6.18-debuginfoUpgrade kernel6.18Upgrade kernel6.18-debuginfoUpgrade kernel6.18-develUpgrade perf6.18Upgrade kernel6.18-tools-develUpgrade kernel6.18-debuginfo-common-x86_64Upgrade kernel6.18-toolsUpgrade kernel6.18-modules-extra-commonUpgrade kernel6.18-headers | Aug 18, 2026 | Jul 25, 2026 |
| Ubuntu | — | Upgrade linux-image-gke-64k-7.0Upgrade linux-image-oem-26.04aUpgrade linux-image-realtime-hwe-26.04Upgrade linux-image-nvidia-64k-hwe-26.04Upgrade linux-image-7.0.0-1012-aws-64kUpgrade linux-image-nvidia-hwe-26.04Upgrade linux-image-raspi-7.0Upgrade linux-image-nvidia-bos-64kUpgrade linux-image-7.0.0-31-generic-64kUpgrade linux-image-gcp-64k-7.0Upgrade linux-image-oem-26.04Upgrade linux-image-realtimeUpgrade linux-image-7.0.0-1006-gke-64kUpgrade linux-image-7.0.0-31-genericUpgrade linux-image-generic-64kUpgrade linux-image-7.0.0-1018-nvidia-64kUpgrade linux-image-gke-64k-hwe-26.04Upgrade linux-image-gcpUpgrade linux-image-realtime-64k-hwe-26.04Upgrade linux-image-nvidia-bos-64k-7.0Upgrade linux-image-realtime-64kUpgrade linux-image-raspi-realtimeUpgrade linux-image-7.0.0-1011-gcp-64kUpgrade linux-image-nvidia-7.0Upgrade linux-image-gcp-64kUpgrade linux-image-awsUpgrade linux-image-aws-64kUpgrade linux-image-generic-hwe-24.04Upgrade linux-image-generic-hwe-26.04Upgrade linux-image-nvidia-bosUpgrade linux-image-virtual-hwe-24.04Upgrade linux-image-generic-64k-7.0Upgrade linux-image-oem-7.0Upgrade linux-image-generic-7.0Upgrade linux-image-raspiUpgrade linux-image-nvidia-64kUpgrade linux-image-7.0.0-2018-nvidia-bosUpgrade linux-image-7.0.0-1012-awsUpgrade linux-image-generic-64k-hwe-26.04Upgrade linux-image-oem-26.04bUpgrade linux-image-7.0.0-1013-oemUpgrade linux-image-nvidia-bos-7.0Upgrade linux-image-virtual-7.0Upgrade linux-image-genericUpgrade linux-image-aws-64k-7.0Upgrade linux-image-raspi-realtime-7.0Upgrade linux-image-gke-64kUpgrade linux-image-virtualUpgrade linux-image-7.0.0-31-realtime-64kUpgrade linux-image-7.0.0-1006-gkeUpgrade linux-image-nvidiaUpgrade linux-image-virtual-hwe-26.04Upgrade linux-image-7.0.0-2018-nvidia-bos-64kUpgrade linux-image-ibmUpgrade linux-image-gkeUpgrade linux-image-gcp-7.0Upgrade linux-image-7.0.0-1013-ibmUpgrade linux-image-realtime-64k-7.0Upgrade linux-image-gke-hwe-26.04Upgrade linux-image-7.0.0-1019-raspi-realtimeUpgrade linux-image-realtime-7.0Upgrade linux-image-aws-7.0Upgrade linux-image-7.0.0-1018-nvidiaUpgrade linux-image-7.0.0-1019-raspiUpgrade linux-image-nvidia-64k-7.0Upgrade linux-image-gke-7.0Upgrade linux-image-ibm-7.0Upgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-7.0.0-31-realtimeUpgrade linux-image-7.0.0-1011-gcp | Sep 14, 2026 | Sep 7, 2026 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub