CVE-2026-80850

Source
https://cve.org/CVERecord?id=CVE-2026-80850
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80850.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-80850
Downstream
Published
2026-09-04T15:55:00.588Z
Modified
2026-09-06T03:46:54.326243653Z
Summary
tcp: fix AO info use-after-free in tcp_ao_connect_init()
Details

In the Linux kernel, the following vulnerability has been resolved:

tcp: fix AO info use-after-free in tcpaoconnect_init()

tcpv4connect() adds a SYN-SENT socket to the ehash before calling tcpconnect(). If TCP-AO is configured, tcpconnect() first verifies that a key matches the peer and the bound device's current L3 master. tcpaoconnect_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 tcpaoconnectinit() 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->aoinfo and frees it directly.

The receive path can find the socket in the ehash and load tp->aoinfo under RCU before acquiring the socket lock. A reader which loaded the old pointer can thus continue into tcpinboundaohash() 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 tcpinboundaohash+0x585/0x19f0 Write of size 8 at addr ffff88800bf88128 by task tcpaovrfrace/232

Call Trace: tcpinboundaohash+0x585/0x19f0 tcpinboundhash+0x677/0xa80 tcpv4_rcv+0x1c3e/0x3ab0

Allocated by task 235: tcpaoallocinfo+0x43/0xf0 tcpaoaddcmd+0xdf7/0x13b0 dotcpsetsockopt+0x168c/0x2640

Freed by task 235: kfree+0x1b8/0x550 tcpconnect+0x252/0x4f00 tcpv4_connect+0x1114/0x1720

The bad address is 40 bytes inside the freed 128-byte object, matching the tcpaoinfo counters.keynotfound 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 tcpaodestroy_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 WARNONONCE() 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 paniconwarn kernels the WARN would turn this handled race into a kernel panic.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80850.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
248411b8cb8974a1e1c8e43123c1e682fbd64969
Fixed
594ba77210a1f065832211851a2d7e14d11fcbdb
Fixed
70051a57786d5b23f059fbaf5c8241eca14d42ed
Fixed
284d7fd0eec8774bd6214921fbf525cf907c590e
Fixed
d17e88b6b60ff4ef64e0dd1444f935cb13dee1cd
Fixed
ea30dc5267e367b8a5e1e06cc074f813bcbf18b2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80850.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.108
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.49
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.13
Type
ECOSYSTEM
Events
Introduced
7.2.0
Fixed
7.2.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80850.json"