CVE-2026-80850
Received Received - Intake

Use-After-Free in Linux Kernel TCP-AO Implementation

Vulnerability report for CVE-2026-80850, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-04

Last updated on: 2026-09-04

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: tcp: fix AO info use-after-free in tcp_ao_connect_init() tcp_v4_connect() adds a SYN-SENT socket to the ehash before calling tcp_connect(). If TCP-AO is configured, tcp_connect() first verifies that a key matches the peer and the bound device's current L3 master. tcp_ao_connect_init() later resolves the L3 master again and removes keys which do not match it. The socket lock does not stabilize the bound device's VRF membership. Detaching the device from its VRF between the initial validation and the L3-master calculation in tcp_ao_connect_init() can therefore make the validation succeed while initialization observes the default L3 domain and removes the only key. The subsequent AO lookup then fails, so the no-key path clears tp->ao_info and frees it directly. The receive path can find the socket in the ehash and load tp->ao_info under RCU before acquiring the socket lock. A reader which loaded the old pointer can thus continue into tcp_inbound_ao_hash() after the direct free. The issue was found during a static audit of TCP-AO object lifetime. An unprivileged reproducer in self-created user and network namespaces raced connect() with detaching a veth from its VRF while sending TCP-AO segments. It triggered the same KASAN report on two fresh boots: BUG: KASAN: slab-use-after-free in tcp_inbound_ao_hash+0x585/0x19f0 Write of size 8 at addr ffff88800bf88128 by task tcp_ao_vrf_race/232 Call Trace: tcp_inbound_ao_hash+0x585/0x19f0 tcp_inbound_hash+0x677/0xa80 tcp_v4_rcv+0x1c3e/0x3ab0 Allocated by task 235: tcp_ao_alloc_info+0x43/0xf0 tcp_ao_add_cmd+0xdf7/0x13b0 do_tcp_setsockopt+0x168c/0x2640 Freed by task 235: kfree+0x1b8/0x550 tcp_connect+0x252/0x4f00 tcp_v4_connect+0x1114/0x1720 The bad address is 40 bytes inside the freed 128-byte object, matching the tcp_ao_info counters.key_not_found field. The two runs used 1000 attempts each, reached the no-key path 366 and 411 times, and produced one and two KASAN reports respectively. With this change, the same reproducer reached the no-key path 366 times in 1000 attempts without a KASAN report or oops. Use tcp_ao_destroy_sock() for the no-key path. It unpublishes the AO info, updates the socket memory and static-key accounting, and defers the free until after an RCU grace period. Also drop the WARN_ON_ONCE() and its stale comment. The VRF detach race makes the no-key state reachable during normal operation, so it is a handled condition rather than an impossible assertion. On panic_on_warn kernels the WARN would turn this handled race into a kernel panic.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-04
Last Modified
2026-09-04
Generated
2026-09-04
AI Q&A
2026-09-04
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a use-after-free flaw in the Linux kernel's TCP Authentication Option (TCP-AO) implementation. It occurs when a socket is detached from a VRF between initial validation and L3 master calculation, causing the TCP-AO key to be removed incorrectly. This leads to a double-free scenario where the ao_info structure is freed while still being accessed by the receive path under RCU, resulting in a slab-use-after-free condition.

Detection Guidance

This vulnerability is a use-after-free issue in the Linux kernel's TCP-AO implementation. Detection requires kernel debugging tools like KASAN (Kernel Address Sanitizer) to identify memory corruption. Enable KASAN during kernel compilation and monitor kernel logs for KASAN reports indicating slab-use-after-free in tcp_inbound_ao_hash or related functions.

Impact Analysis

An attacker with local access could exploit this to crash the system or potentially escalate privileges. The vulnerability allows unprivileged users in custom namespaces to trigger kernel memory corruption via a race condition between socket operations and VRF detachment. This could lead to system instability, denial-of-service, or unauthorized code execution.

Compliance Impact

This vulnerability is a use-after-free flaw in the Linux kernel's TCP-AO implementation that could lead to memory corruption or crashes. It does not directly relate to data privacy or security controls required by GDPR or HIPAA, as it affects network protocol handling rather than data protection mechanisms.

Mitigation Strategies

Apply the kernel patch that resolves this issue by using tcp_ao_destroy_sock() for the no-key path to prevent premature freeing of tcp_ao_info. Update to a patched kernel version where this fix is included. Disable TCP-AO if not required as a temporary workaround.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-80850. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart