Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-72139

published critical CVSS 3.1 · 9.8

tcp: defer md5sig_info kfree past RCU grace period in tcp_connect

Published
15 Aug 2026, 05:53:13 UTC
Updated
17 Aug 2026, 05:40:48 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux51e547e8c89c661f6fbede4a28b1d33b13625683 to < 33a1bee413628378fd036a4f2b17ba86b0bc560c · 51e547e8c89c661f6fbede4a28b1d33b13625683 to < da48b9bf1eb95a9cfd09d615ca58cfc2b03de369 · 51e547e8c89c661f6fbede4a28b1d33b13625683 to < b74cd55038905d5e74c1de109ab78a30b2ea0e1f · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.18 (affected) · 0 to < 6.18 (unaffected · semver) · 6.18.40 through 6.18.* (unaffected · semver) · 7.1.5 through 7.1.* (unaffected · semver) · 7.2 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2026-2071 Fixed Not stated Amazon Linux assessment
Ubuntu noble linux-aws-7.0 Advisory build 7.0.0-1013.13~24.04.1 USN-8816-1
Ubuntu noble linux-aws-7.0-cloud-tools-7.0.0-1013 Advisory build 7.0.0-1013.13~24.04.1 USN-8816-1
Ubuntu noble linux-aws-7.0-headers-7.0.0-1013 Advisory build 7.0.0-1013.13~24.04.1 USN-8816-1
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu noble linux-aws-7.0-tools-7.0.0-1013 Advisory build 7.0.0-1013.13~24.04.1 USN-8816-1
Ubuntu noble linux-azure-7.0 Advisory build 7.0.0-1017.17~24.04.1 USN-8888-2
Ubuntu noble linux-azure-7.0-cloud-tools-7.0.0-1017 Advisory build 7.0.0-1017.17~24.04.1 USN-8888-2
Ubuntu noble linux-azure-7.0-headers-7.0.0-1017 Advisory build 7.0.0-1017.17~24.04.1 USN-8888-2
Ubuntu noble linux-azure-7.0-tools-7.0.0-1017 Advisory build 7.0.0-1017.17~24.04.1 USN-8888-2
Ubuntu noble linux-azure-fde-7.0 Advisory build 7.0.0-1016.16~24.04.1 USN-8888-2
Ubuntu noble linux-azure-fde-7.0-cloud-tools-7.0.0-1016 Advisory build 7.0.0-1016.16~24.04.1 USN-8888-2
Ubuntu noble linux-azure-fde-7.0-headers-7.0.0-1016 Advisory build 7.0.0-1016.16~24.04.1 USN-8888-2
Ubuntu noble linux-azure-fde-7.0-tools-7.0.0-1016 Advisory build 7.0.0-1016.16~24.04.1 USN-8888-2
Ubuntu noble linux-buildinfo-7.0.0-1012-oracle Advisory build 7.0.0-1012.12~24.04.1 USN-8816-3
Ubuntu noble linux-buildinfo-7.0.0-1012-oracle-64k Advisory build 7.0.0-1012.12~24.04.1 USN-8816-3
Ubuntu noble linux-buildinfo-7.0.0-1013-aws Advisory build 7.0.0-1013.13~24.04.1 USN-8816-1
Ubuntu noble linux-buildinfo-7.0.0-1013-aws-64k Advisory build 7.0.0-1013.13~24.04.1 USN-8816-1
Ubuntu noble linux-buildinfo-7.0.0-1013-gcp Advisory build 7.0.0-1013.13~24.04.1 USN-8816-2
Ubuntu noble linux-buildinfo-7.0.0-1013-gcp-64k Advisory build 7.0.0-1013.13~24.04.1 USN-8816-2
Ubuntu noble linux-buildinfo-7.0.0-1016-azure-fde Advisory build 7.0.0-1016.16~24.04.1 USN-8888-2
Ubuntu noble linux-buildinfo-7.0.0-1017-azure Advisory build 7.0.0-1017.17~24.04.1 USN-8888-2
Ubuntu noble linux-buildinfo-7.0.0-1024-nvidia Advisory build 7.0.0-1024.25~24.04.1 USN-9003-1
Ubuntu noble linux-buildinfo-7.0.0-1024-nvidia-64k Advisory build 7.0.0-1024.25~24.04.1 USN-9003-1
Ubuntu noble linux-buildinfo-7.0.0-34-generic Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-buildinfo-7.0.0-34-generic-64k Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-cloud-tools-7.0.0-1013-aws Advisory build 7.0.0-1013.13~24.04.1 USN-8816-1
Ubuntu noble linux-cloud-tools-7.0.0-1013-aws-64k Advisory build 7.0.0-1013.13~24.04.1 USN-8816-1
Ubuntu noble linux-cloud-tools-7.0.0-1016-azure-fde Advisory build 7.0.0-1016.16~24.04.1 USN-8888-2
Ubuntu noble linux-cloud-tools-7.0.0-1017-azure Advisory build 7.0.0-1017.17~24.04.1 USN-8888-2
Ubuntu noble linux-cloud-tools-7.0.0-34-generic Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-gcp-7.0 Advisory build 7.0.0-1013.13~24.04.1 USN-8816-2
Ubuntu noble linux-gcp-7.0-headers-7.0.0-1013 Advisory build 7.0.0-1013.13~24.04.1 USN-8816-2
Ubuntu noble linux-gcp-7.0-tools-7.0.0-1013 Advisory build 7.0.0-1013.13~24.04.1 USN-8816-2
Ubuntu noble linux-headers-7.0.0-1012-oracle Advisory build 7.0.0-1012.12~24.04.1 USN-8816-3
Ubuntu noble linux-headers-7.0.0-1012-oracle-64k Advisory build 7.0.0-1012.12~24.04.1 USN-8816-3
Ubuntu noble linux-headers-7.0.0-1013-aws Advisory build 7.0.0-1013.13~24.04.1 USN-8816-1
Ubuntu noble linux-headers-7.0.0-1013-aws-64k Advisory build 7.0.0-1013.13~24.04.1 USN-8816-1
Ubuntu noble linux-headers-7.0.0-1013-gcp Advisory build 7.0.0-1013.13~24.04.1 USN-8816-2
Ubuntu noble linux-headers-7.0.0-1013-gcp-64k Advisory build 7.0.0-1013.13~24.04.1 USN-8816-2
Ubuntu noble linux-headers-7.0.0-1016-azure-fde Advisory build 7.0.0-1016.16~24.04.1 USN-8888-2
Ubuntu noble linux-headers-7.0.0-1017-azure Advisory build 7.0.0-1017.17~24.04.1 USN-8888-2
Ubuntu noble linux-headers-7.0.0-1024-nvidia Advisory build 7.0.0-1024.25~24.04.1 USN-9003-1
Ubuntu noble linux-headers-7.0.0-1024-nvidia-64k Advisory build 7.0.0-1024.25~24.04.1 USN-9003-1
Ubuntu noble linux-headers-7.0.0-34-generic Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-headers-7.0.0-34-generic-64k Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-hwe-7.0 Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-hwe-7.0-cloud-tools-7.0.0-34 Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-hwe-7.0-headers-7.0.0-34 Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-hwe-7.0-tools-7.0.0-34 Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-image-7.0.0-34-generic Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-image-unsigned-7.0.0-1012-oracle Advisory build 7.0.0-1012.12~24.04.1 USN-8816-3
Ubuntu noble linux-image-unsigned-7.0.0-1012-oracle-64k Advisory build 7.0.0-1012.12~24.04.1 USN-8816-3
Ubuntu noble linux-image-unsigned-7.0.0-1013-aws Advisory build 7.0.0-1013.13~24.04.1 USN-8816-1
Ubuntu noble linux-image-unsigned-7.0.0-1013-aws-64k Advisory build 7.0.0-1013.13~24.04.1 USN-8816-1
Ubuntu noble linux-image-unsigned-7.0.0-1013-gcp Advisory build 7.0.0-1013.13~24.04.1 USN-8816-2
Ubuntu noble linux-image-unsigned-7.0.0-1013-gcp-64k Advisory build 7.0.0-1013.13~24.04.1 USN-8816-2
Ubuntu noble linux-image-unsigned-7.0.0-1016-azure-fde Advisory build 7.0.0-1016.16~24.04.1 USN-8888-2
Ubuntu noble linux-image-unsigned-7.0.0-1017-azure Advisory build 7.0.0-1017.17~24.04.1 USN-8888-2
Ubuntu noble linux-image-unsigned-7.0.0-1024-nvidia Advisory build 7.0.0-1024.25~24.04.1 USN-9003-1
Ubuntu noble linux-image-unsigned-7.0.0-1024-nvidia-64k Advisory build 7.0.0-1024.25~24.04.1 USN-9003-1
Ubuntu noble linux-image-unsigned-7.0.0-34-generic Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-image-unsigned-7.0.0-34-generic-64k Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-lib-rust-7.0.0-34-generic Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-modules-7.0.0-1012-oracle Advisory build 7.0.0-1012.12~24.04.1 USN-8816-3
Ubuntu noble linux-modules-7.0.0-1012-oracle-64k Advisory build 7.0.0-1012.12~24.04.1 USN-8816-3
Ubuntu noble linux-modules-7.0.0-1013-aws Advisory build 7.0.0-1013.13~24.04.1 USN-8816-1
Ubuntu noble linux-modules-7.0.0-1013-aws-64k Advisory build 7.0.0-1013.13~24.04.1 USN-8816-1
Ubuntu noble linux-modules-7.0.0-1013-gcp Advisory build 7.0.0-1013.13~24.04.1 USN-8816-2
Ubuntu noble linux-modules-7.0.0-1013-gcp-64k Advisory build 7.0.0-1013.13~24.04.1 USN-8816-2
Ubuntu noble linux-modules-7.0.0-1016-azure-fde Advisory build 7.0.0-1016.16~24.04.1 USN-8888-2
Ubuntu noble linux-modules-7.0.0-1017-azure Advisory build 7.0.0-1017.17~24.04.1 USN-8888-2
Ubuntu noble linux-modules-7.0.0-1024-nvidia Advisory build 7.0.0-1024.25~24.04.1 USN-9003-1
Ubuntu noble linux-modules-7.0.0-1024-nvidia-64k Advisory build 7.0.0-1024.25~24.04.1 USN-9003-1
Ubuntu noble linux-modules-7.0.0-34-generic Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-modules-7.0.0-34-generic-64k Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-modules-evdi-7.0.0-34-generic Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-modules-ipu6-7.0.0-34-generic Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-modules-ipu7-7.0.0-34-generic Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-modules-iwlwifi-7.0.0-1016-azure-fde Advisory build 7.0.0-1016.16~24.04.1 USN-8888-2
Ubuntu noble linux-modules-iwlwifi-7.0.0-1017-azure Advisory build 7.0.0-1017.17~24.04.1 USN-8888-2
Ubuntu noble linux-modules-iwlwifi-7.0.0-34-generic Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-modules-nvidia-fs-7.0.0-1024-nvidia Advisory build 7.0.0-1024.25~24.04.1 USN-9003-1
Ubuntu noble linux-modules-nvidia-fs-7.0.0-1024-nvidia-64k Advisory build 7.0.0-1024.25~24.04.1 USN-9003-1
Ubuntu noble linux-modules-usbio-7.0.0-34-generic Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-modules-vision-7.0.0-34-generic Advisory build 7.0.0-34.34~24.04.1 USN-8816-1
Ubuntu noble linux-nvidia-7.0 Advisory build 7.0.0-1024.25~24.04.1 USN-9003-1
Ubuntu noble linux-nvidia-7.0-headers-7.0.0-1024 Advisory build 7.0.0-1024.25~24.04.1 USN-9003-1
Ubuntu noble linux-nvidia-7.0-tools-7.0.0-1024 Advisory build 7.0.0-1024.25~24.04.1 USN-9003-1
Ubuntu noble linux-oracle-7.0 Advisory build 7.0.0-1012.12~24.04.1 USN-8816-3
Ubuntu noble linux-oracle-7.0-headers-7.0.0-1012 Advisory build 7.0.0-1012.12~24.04.1 USN-8816-3
Ubuntu noble linux-oracle-7.0-tools-7.0.0-1012 Advisory build 7.0.0-1012.12~24.04.1 USN-8816-3
Ubuntu noble linux-tools-7.0.0-1012-oracle Advisory build 7.0.0-1012.12~24.04.1 USN-8816-3
Ubuntu noble linux-tools-7.0.0-1012-oracle-64k Advisory build 7.0.0-1012.12~24.04.1 USN-8816-3
Ubuntu noble linux-tools-7.0.0-1013-aws Advisory build 7.0.0-1013.13~24.04.1 USN-8816-1
Ubuntu noble linux-tools-7.0.0-1013-aws-64k Advisory build 7.0.0-1013.13~24.04.1 USN-8816-1
Ubuntu noble linux-tools-7.0.0-1013-gcp Advisory build 7.0.0-1013.13~24.04.1 USN-8816-2
Ubuntu noble linux-tools-7.0.0-1013-gcp-64k Advisory build 7.0.0-1013.13~24.04.1 USN-8816-2
Ubuntu noble linux-tools-7.0.0-1016-azure-fde Advisory build 7.0.0-1016.16~24.04.1 USN-8888-2
Ubuntu noble linux-tools-7.0.0-1017-azure Advisory build 7.0.0-1017.17~24.04.1 USN-8888-2
Ubuntu noble linux-tools-7.0.0-1024-nvidia Advisory build 7.0.0-1024.25~24.04.1 USN-9003-1
Ubuntu noble linux-tools-7.0.0-1024-nvidia-64k Advisory build 7.0.0-1024.25~24.04.1 USN-9003-1

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: tcp: defer md5sig_info kfree past RCU grace period in tcp_connect The md5+ao reconciliation in tcp_connect() (net/ipv4/tcp_output.c) has two symmetric branches: if (needs_md5) { tcp_ao_destroy_sock(sk, false); } else if (needs_ao) { tcp_clear_md5_list(sk); kfree(rcu_replace_pointer(tp->md5sig_info, NULL, ...)); } Both branches free a per-socket auth-info object while the socket is in TCP_SYN_SENT and is already on the inet ehash (inserted by inet_hash_connect() in tcp_v4_connect()). Both branches are reachable by softirq RX-path readers that load the corresponding info pointer via implicit RCU before bh_lock_sock_nested() is taken. The needs_md5 branch is fixed in the prior patch by re-introducing the call_rcu() free in tcp_ao_destroy_sock(): the equivalent per-key loop runs inside tcp_ao_info_free_rcu(), the RCU callback, so by the time it frees each tcp_ao_key all softirq readers that captured the container have already completed rcu_read_unlock(). The needs_ao branch is not symmetric in the same way. The container free can be deferred via kfree_rcu(md5sig, rcu) -- struct tcp_md5sig_info already has the required rcu member (include/net/tcp.h:1999-2002), and the rest of the tree already does this in the tcp_md5sig_info_add() rollback paths (net/ipv4/tcp_ipv4.c:1410, 1436). But the per-key teardown is done by tcp_clear_md5_list() in process context BEFORE the container's RCU grace period: it walks &md5sig->head and frees each tcp_md5sig_key with bare hlist_del + kfree. A concurrent softirq reader in __tcp_md5_do_lookup() / __tcp_md5_do_lookup_exact() (tcp_ipv4.c:1253, 1298) walks the same list via hlist_for_each_entry_rcu() and races with that bare kfree on the keys themselves -- a per-key slab use-after-free of the same class as the TCP-AO bug, on the same race window. Fix this in two halves: 1. Convert the bare kfree() in tcp_connect() to kfree_rcu() so the md5sig_info container joins the rest of the md5sig lifecycle. The local-variable lift is mechanical and required because kfree_rcu() is a macro that expects an lvalue. 2. Make tcp_clear_md5_list() RCU-safe by replacing hlist_del + kfree(key) with hlist_del_rcu + kfree_rcu(key, rcu). struct tcp_md5sig_key already carries the rcu member (include/net/tcp.h:1995) and tcp_md5_do_del() (net/ipv4/tcp_ipv4.c:1456) already uses kfree_rcu, so this restores the lifecycle invariant the rest of the file follows rather than introducing a one-off. The other caller of tcp_clear_md5_list() is tcp_md5_destruct_sock() (net/ipv4/tcp.c:412), which runs from the sock destructor when the socket is already unhashed and unreachable; the extra grace period there is unnecessary but harmless. Making the helper unconditionally RCU-safe is the cleaner contract. The needs_ao branch is not reachable by the userns reproducer used to demonstrate the AO-side splat (the repro installs both keys but ends up in the needs_md5 branch because the connect peer matches the MD5 key, not the AO key); however the symmetric race exists and a maintainer touching this code should not have to think about which branch escapes RCU and which one does not. [also credits to Qihang, who found that this races with tcp-diag]

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

12

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
9.8 / 10
Severity
critical
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:N - The UAF is driven by a race between tcp_connect() freeing MD5 keys and softirq RX handlers (tcp_v4_rcv→tcp_inbound_hash→__tcp_md5_do_lookup) on an ehashed SYN_SENT socket; forged inbound TCP segments reach this path over the network, matching internet-facing BGP/TCP-AO peers. AC:L - The attacker controls both sides of the race by calling connect() while concurrently spraying TCP segments (raw sockets or as the remote peer) at the socket 4-tuple; no victim-dependent timing or memory layout is required beyond standard heap reuse inherent to slab UAF. PR:N - Exploitation needs no host root: a remote BGP/TCP peer can send segments during the victim's outbound connect, and the demonstrated userns repro uses only uid=1000 with CLONE_NEWUSER|CLONE_NEWNET caps to install TCP_MD5/TCP-AO keys and trigger the race. UI:N - No end-user action is required; the bug fires during automated connect() handling (e.g., BGP session establishment) concurrent with inbound packet processing, without anyone opening files or confirming prompts. S:U - Impact is confined to kernel memory integrity/availability on the affected host; it does not cross VM, container, or IOMMU security boundaries into another authority. C:H - Concurrent hlist_for_each_entry_rcu() over tcp_md5sig_key objects that are being kfree()'d is a slab use-after-free; freed key memory can be reallocated and read during RCU traversal, enabling kernel information disclosure. I:H - The per-key UAF corrupts RCU list traversal in softirq and allows attacker-influenced slab reuse, providing a standard path to heap grooming and arbitrary kernel write or control-flow hijack. A:H - The symmetric TCP-AO connect race in the same window produces kernel GPF/oops in softirq (KASAN wild-memory-access); this MD5-key UAF in the identical SYN_SENT/ehash race window can panic or hang the system.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 51e547e8c89c661f6fbede4a28b1d33b13625683 to < 33a1bee413628378fd036a4f2b17ba86b0bc560c (affected · git)51e547e8c89c661f6fbede4a28b1d33b13625683 to < da48b9bf1eb95a9cfd09d615ca58cfc2b03de369 (affected · git)51e547e8c89c661f6fbede4a28b1d33b13625683 to < b74cd55038905d5e74c1de109ab78a30b2ea0e1f (affected · git)Default: unaffected Linux · cna
Linux Linux 6.18 (affected)0 to < 6.18 (unaffected · semver)6.18.40 through 6.18.* (unaffected · semver)7.1.5 through 7.1.* (unaffected · semver)7.2 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

1

Linux · cna

tcp: defer md5sig_info kfree past RCU grace period in tcp_connect

Provenance

Schema
5.2
Searchable
yes
Content hash
c1430aefb36a039ad9c3c29cfba10b9253cd8bf0d9ebf0d1df9ba773f52b7c64
Ingested
23 Sep 2026, 09:29:56 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected