CVE-2024-27394
published high CVSS 3.1 · 7.8tcp: Fix Use-After-Free in tcp_ao_connect_init
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux7c2ffaf21bd67f73d21560995ce17eaf5fc1d37f to < ca4fb6c6764b3f75b4f5aa81db1536291897ff7f · 7c2ffaf21bd67f73d21560995ce17eaf5fc1d37f to < 80e679b352c3ce5158f3f778cfb77eb767e586fb · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.7 (affected) · 0 to < 6.7 (unaffected · semver) · 6.8.9 through 6.8.* (unaffected · semver) · 6.9 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| linux | — | linux_kernel6.7 · Other versions: affected | Affected | Not stated | CISA-ADP |
| linux | — | linux_kernel7c2ffaf21bd6 to < ca4fb6c6764b (affected · git) · 7c2ffaf21bd6 to < 80e679b352c3 (affected · git) · 0 to < 6.7 (unaffected · git) · 6.8.9 to < 6.9 (unaffected · git) · 6.9 and later (unaffected · custom) · Other versions: unaffected | Version-specific | Not stated | CISA-ADP |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1011-nvidia-64k | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
Show 98 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | jammy | linux-headers-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1011-nvidia-64k | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1011-nvidia-64k | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1011-nvidia-64k | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-modules-nvidia-fs-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-modules-nvidia-fs-6.8.0-1011-nvidia-64k | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-nvidia-6.8 | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-nvidia-6.8-headers-6.8.0-1011 | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-nvidia-6.8-tools-6.8.0-1011 | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-nvidia-6.8-tools-host | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-tools-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | jammy | linux-tools-6.8.0-1011-nvidia-64k | Advisory build | 6.8.0-1011.11~22.04.1 | USN-6949-1 |
| Ubuntu | noble | linux | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-aws | Advisory build | 6.8.0-1013.14 | USN-6949-1 |
| Ubuntu | noble | linux-aws-cloud-tools-6.8.0-1013 | Advisory build | 6.8.0-1013.14 | USN-6949-1 |
| Ubuntu | noble | linux-aws-headers-6.8.0-1013 | Advisory build | 6.8.0-1013.14 | USN-6949-1 |
| Ubuntu | noble | linux-aws-tools-6.8.0-1013 | Advisory build | 6.8.0-1013.14 | USN-6949-1 |
| Ubuntu | noble | linux-azure | Advisory build | 6.8.0-1012.14 | USN-6952-2 |
| Ubuntu | noble | linux-azure-cloud-tools-6.8.0-1012 | Advisory build | 6.8.0-1012.14 | USN-6952-2 |
| Ubuntu | noble | linux-azure-headers-6.8.0-1012 | Advisory build | 6.8.0-1012.14 | USN-6952-2 |
| Ubuntu | noble | linux-azure-tools-6.8.0-1012 | Advisory build | 6.8.0-1012.14 | USN-6952-2 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1008-gke | Advisory build | 6.8.0-1008.11 | USN-6949-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1009-raspi | Advisory build | 6.8.0-1009.10 | USN-6949-2 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1010-ibm | Advisory build | 6.8.0-1010.10 | USN-6949-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1010-oem | Advisory build | 6.8.0-1010.10 | USN-6955-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1010-oracle | Advisory build | 6.8.0-1010.10 | USN-6952-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1010-oracle-64k | Advisory build | 6.8.0-1010.10 | USN-6952-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11 | USN-6949-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1011-nvidia-64k | Advisory build | 6.8.0-1011.11 | USN-6949-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1011-nvidia-lowlatency | Advisory build | 6.8.0-1011.11.1 | USN-6952-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1011-nvidia-lowlatency-64k | Advisory build | 6.8.0-1011.11.1 | USN-6952-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1012-azure | Advisory build | 6.8.0-1012.14 | USN-6952-2 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1012-gcp | Advisory build | 6.8.0-1012.13 | USN-6949-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-1013-aws | Advisory build | 6.8.0-1013.14 | USN-6949-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-40-generic | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-40-generic-64k | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-buildinfo-6.8.0-40-lowlatency | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
| Ubuntu | noble | linux-buildinfo-6.8.0-40-lowlatency-64k | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-1012-azure | Advisory build | 6.8.0-1012.14 | USN-6952-2 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-1013-aws | Advisory build | 6.8.0-1013.14 | USN-6949-1 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-40 | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-40-generic | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-cloud-tools-6.8.0-40-lowlatency | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
| Ubuntu | noble | linux-cloud-tools-common | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-gcp | Advisory build | 6.8.0-1012.13 | USN-6949-1 |
| Ubuntu | noble | linux-gcp-headers-6.8.0-1012 | Advisory build | 6.8.0-1012.13 | USN-6949-1 |
| Ubuntu | noble | linux-gcp-tools-6.8.0-1012 | Advisory build | 6.8.0-1012.13 | USN-6949-1 |
| Ubuntu | noble | linux-gke | Advisory build | 6.8.0-1008.11 | USN-6949-1 |
| Ubuntu | noble | linux-gke-headers-6.8.0-1008 | Advisory build | 6.8.0-1008.11 | USN-6949-1 |
| Ubuntu | noble | linux-gke-tools-6.8.0-1008 | Advisory build | 6.8.0-1008.11 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-1008-gke | Advisory build | 6.8.0-1008.11 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-1009-raspi | Advisory build | 6.8.0-1009.10 | USN-6949-2 |
| Ubuntu | noble | linux-headers-6.8.0-1010-ibm | Advisory build | 6.8.0-1010.10 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-1010-oem | Advisory build | 6.8.0-1010.10 | USN-6955-1 |
| Ubuntu | noble | linux-headers-6.8.0-1010-oracle | Advisory build | 6.8.0-1010.10 | USN-6952-1 |
| Ubuntu | noble | linux-headers-6.8.0-1010-oracle-64k | Advisory build | 6.8.0-1010.10 | USN-6952-1 |
| Ubuntu | noble | linux-headers-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-1011-nvidia-64k | Advisory build | 6.8.0-1011.11 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-1011-nvidia-lowlatency | Advisory build | 6.8.0-1011.11.1 | USN-6952-1 |
| Ubuntu | noble | linux-headers-6.8.0-1011-nvidia-lowlatency-64k | Advisory build | 6.8.0-1011.11.1 | USN-6952-1 |
| Ubuntu | noble | linux-headers-6.8.0-1012-azure | Advisory build | 6.8.0-1012.14 | USN-6952-2 |
| Ubuntu | noble | linux-headers-6.8.0-1012-gcp | Advisory build | 6.8.0-1012.13 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-1013-aws | Advisory build | 6.8.0-1013.14 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-40 | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-40-generic | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-40-generic-64k | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-headers-6.8.0-40-lowlatency | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
| Ubuntu | noble | linux-headers-6.8.0-40-lowlatency-64k | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
| Ubuntu | noble | linux-ibm | Advisory build | 6.8.0-1010.10 | USN-6949-1 |
| Ubuntu | noble | linux-ibm-cloud-tools-common | Advisory build | 6.8.0-1010.10 | USN-6949-1 |
| Ubuntu | noble | linux-ibm-headers-6.8.0-1010 | Advisory build | 6.8.0-1010.10 | USN-6949-1 |
| Ubuntu | noble | linux-ibm-source-6.8.0 | Advisory build | 6.8.0-1010.10 | USN-6949-1 |
| Ubuntu | noble | linux-ibm-tools-6.8.0-1010 | Advisory build | 6.8.0-1010.10 | USN-6949-1 |
| Ubuntu | noble | linux-image-6.8.0-1009-raspi | Advisory build | 6.8.0-1009.10 | USN-6949-2 |
| Ubuntu | noble | linux-image-6.8.0-40-generic | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1008-gke | Advisory build | 6.8.0-1008.11 | USN-6949-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1010-ibm | Advisory build | 6.8.0-1010.10 | USN-6949-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1010-oem | Advisory build | 6.8.0-1010.10 | USN-6955-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1010-oracle | Advisory build | 6.8.0-1010.10 | USN-6952-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1010-oracle-64k | Advisory build | 6.8.0-1010.10 | USN-6952-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1011-nvidia | Advisory build | 6.8.0-1011.11 | USN-6949-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1011-nvidia-64k | Advisory build | 6.8.0-1011.11 | USN-6949-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1011-nvidia-lowlatency | Advisory build | 6.8.0-1011.11.1 | USN-6952-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1011-nvidia-lowlatency-64k | Advisory build | 6.8.0-1011.11.1 | USN-6952-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1012-azure | Advisory build | 6.8.0-1012.14 | USN-6952-2 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1012-gcp | Advisory build | 6.8.0-1012.13 | USN-6949-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-1013-aws | Advisory build | 6.8.0-1013.14 | USN-6949-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-40-generic | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-40-generic-64k | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-40-lowlatency | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
| Ubuntu | noble | linux-image-unsigned-6.8.0-40-lowlatency-64k | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
| Ubuntu | noble | linux-lib-rust-6.8.0-40-generic | Advisory build | 6.8.0-40.40 | USN-6949-1 |
| Ubuntu | noble | linux-lowlatency | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
| Ubuntu | noble | linux-lowlatency-cloud-tools-6.8.0-40 | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
| Ubuntu | noble | linux-lowlatency-cloud-tools-common | Advisory build | 6.8.0-40.40.1 | USN-6949-2 |
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: Fix Use-After-Free in tcp_ao_connect_init Since call_rcu, which is called in the hlist_for_each_entry_rcu traversal of tcp_ao_connect_init, is not part of the RCU read critical section, it is possible that the RCU grace period will pass during the traversal and the key will be free. To prevent this, it should be changed to hlist_for_each_entry_safe.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable loop is only reached from the active-open path (`connect()` → `tcp_connect()` → `tcp_connect_init()` → `tcp_ao_connect_init()`) on a socket the attacker first configures via `setsockopt(TCP_AO_ADD_KEY)`; a remote peer has no influence over it, so local syscall access is required. AC:L - The attacker controls both sides of the window — they choose how many keys are queued for `call_rcu` (hundreds per socket, bounded only by optmem_max), can pin CPUs and generate scheduling pressure to force preemption between `call_rcu` and the `key->node.next` dereference, and can retry the entire sequence indefinitely at negligible cost. PR:L - `TCP_AO_ADD_KEY` and the `connect()` path carry no capability check whatsoever in `do_tcp_setsockopt()` or `tcp_ao_add_cmd()`, so any unprivileged local user with an ordinary TCP socket can set this up. UI:N - The attacker performs every step (socket creation, key insertion, connect) in its own process; no victim action is involved. S:U - The use-after-free corrupts kernel heap state within the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - Traversal continues through a freed and potentially reclaimed `tcp_ao_key`, letting the attacker steer reads into attacker-groomed memory and, via the resulting unlink/free primitives, leverage the UAF into disclosure of arbitrary kernel memory. I:H - `hlist_del_rcu()` on the stale entry gives an attacker-influenced unlink write (`*pprev = next; next->pprev = pprev`), and the subsequent `call_rcu()` on a bogus `rcu_head` yields a deferred arbitrary `kfree()` — a combination that is exploitable for control-flow hijack and privilege escalation. A:H - Even without successful grooming, dereferencing freed/poisoned slab memory and unlinking through a garbage pointer reliably produces a kernel oops or panic.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.4 | high | CISA-ADP · adp | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 7c2ffaf21bd67f73d21560995ce17eaf5fc1d37f to < ca4fb6c6764b3f75b4f5aa81db1536291897ff7f (affected · git)7c2ffaf21bd67f73d21560995ce17eaf5fc1d37f to < 80e679b352c3ce5158f3f778cfb77eb767e586fb (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.7 (affected)0 to < 6.7 (unaffected · semver)6.8.9 through 6.8.* (unaffected · semver)6.9 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
| linux | linux_kernel | 6.7 (affected)Default: affected | CISA-ADP · adp |
| linux | linux_kernel | 7c2ffaf21bd6 to < ca4fb6c6764b (affected · git)7c2ffaf21bd6 to < 80e679b352c3 (affected · git)0 to < 6.7 (unaffected · git)6.8.9 to < 6.9 (unaffected · git)6.9 and later (unaffected · custom)Default: unaffected | CISA-ADP · adp |
Weaknesses
1- CWE-416 CWE-416 Use After Free
References
2Provider assertions
3Linux · cna
tcp: Fix Use-After-Free in tcp_ao_connect_init
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6b3f07409ca44d687c5ae594b1a278e85bdd6024f5fd5f24de9d35c07bfd11de
- Ingested
- 23 Sep 2026, 08:20:47 UTC
- Source record
- Official CVE record