CVE-2024-38564
published high CVSS 3.1 · 7.8bpf: Add BPF_PROG_TYPE_CGROUP_SKB attach type enforcement in BPF_LINK_CREATE
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux3505cb9fa26cfec9512744466e754a8cbc2365b0 to < 6675c541f540a29487a802d3135280b69b9f568d · 3505cb9fa26cfec9512744466e754a8cbc2365b0 to < 67929e973f5a347f05fef064fea4ae79e7cdb5fd · 3505cb9fa26cfec9512744466e754a8cbc2365b0 to < b34bbc76651065a5eafad8ddff1eb8d1f8473172 · 3505cb9fa26cfec9512744466e754a8cbc2365b0 to < 543576ec15b17c0c93301ac8297333c7b6e84ac7 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.6 (affected) · 0 to < 6.6 (unaffected · semver) · 6.6.33 through 6.6.* (unaffected · semver) · 6.8.12 through 6.8.* (unaffected · semver) · 6.9.3 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned; Not Affected | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:4.18.0-553.30.1.el8_10 | ELSA-2024-10281 |
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-553.30.1.rt7.371.el8_10 | ALSA-2024:10282 |
| AlmaLinux | 8 | kernel-rt-core | Advisory build | 4.18.0-553.30.1.rt7.371.el8_10 | ALSA-2024:10282 |
| AlmaLinux | 8 | kernel-rt-debug | Advisory build | 4.18.0-553.30.1.rt7.371.el8_10 | ALSA-2024:10282 |
| AlmaLinux | 8 | kernel-rt-debug-core | Advisory build | 4.18.0-553.30.1.rt7.371.el8_10 | ALSA-2024:10282 |
| AlmaLinux | 8 | kernel-rt-debug-devel | Advisory build | 4.18.0-553.30.1.rt7.371.el8_10 | ALSA-2024:10282 |
| AlmaLinux | 8 | kernel-rt-debug-modules | Advisory build | 4.18.0-553.30.1.rt7.371.el8_10 | ALSA-2024:10282 |
| AlmaLinux | 8 | kernel-rt-debug-modules-extra | Advisory build | 4.18.0-553.30.1.rt7.371.el8_10 | ALSA-2024:10282 |
| AlmaLinux | 8 | kernel-rt-devel | Advisory build | 4.18.0-553.30.1.rt7.371.el8_10 | ALSA-2024:10282 |
| AlmaLinux | 8 | kernel-rt-modules | Advisory build | 4.18.0-553.30.1.rt7.371.el8_10 | ALSA-2024:10282 |
| AlmaLinux | 8 | kernel-rt-modules-extra | Advisory build | 4.18.0-553.30.1.rt7.371.el8_10 | ALSA-2024:10282 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-553.30.1.el8_10 | ALSA-2024:10281 |
| AlmaLinux | 9 | bpftool | Advisory build | 7.4.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-debug-modules-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-modules-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-uki-virt | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-uki-virt-addons | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-zfcpdump-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-zfcpdump-devel | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-zfcpdump-devel-matched | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-zfcpdump-modules | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-core | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-extra | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | libperf | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | perf | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | python3-perf | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | rtla | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| AlmaLinux | 9 | rv | Advisory build | 5.14.0-503.19.1.el9_5 | ALSA-2024:11486 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:4.18.0-553.30.1.el8_10 | ELSA-2024-10281 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Add BPF_PROG_TYPE_CGROUP_SKB attach type enforcement in BPF_LINK_CREATE bpf_prog_attach uses attach_type_to_prog_type to enforce proper attach type for BPF_PROG_TYPE_CGROUP_SKB. link_create uses bpf_prog_get and relies on bpf_prog_attach_check_attach_type to properly verify prog_type <> attach_type association. Add missing attach_type enforcement for the link_create case. Otherwise, it's currently possible to attach cgroup_skb prog types to other cgroup hooks.
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 flaw is reached exclusively through the `bpf(BPF_LINK_CREATE)` syscall and then triggered by an ordinary syscall (e.g. `getsockopt()`) from a process in the target cgroup. Per kernel guidance BPF is Local. AC:L - Exploitation is fully deterministic — the attacker authors the cgroup_skb program, chooses the mismatched attach type, picks the target cgroup, and invokes the hook itself; there is no race, no memory-layout dependency, and no special kernel config beyond stock `CONFIG_CGROUP_BPF`. PR:L - The attach path requires CAP_NET_ADMIN/CAP_SYS_ADMIN via `bpf_token_capable()`, which on 6.8+ is satisfied by `ns_capable(token->userns, CAP_NET_ADMIN)` — i.e. reachable by container-root inside a BPF-token-delegated user namespace, an unprivileged principal from the host's perspective, matching the PR:L treatment of other BPF-capability-gated kernel.org CVEs. UI:N - The attacker attaches the link and then triggers the confused hook from its own process; no action by any other user is required. S:U - The type confusion corrupts kernel memory within the same kernel security authority — a standard local privilege escalation with no VM, IOMMU, or sandbox boundary crossed. C:H - sk_buff-offset loads against a 12–56 byte stack ctx read kernel stack memory out of bounds, and skb helpers such as `bpf_skb_load_bytes()` dereference wild pointers harvested from that memory, yielding effectively arbitrary kernel memory disclosure exfiltrated through BPF maps. I:H - `cg_skb_is_valid_access` permits writes to `__sk_buff->mark`, `->priority` and `->cb[0..4]`, which compile to raw stores ~0x30–0xa8 bytes past the small stack ctx, giving attacker-controlled out-of-bounds kernel stack writes into caller frames — a control-flow hijack primitive. A:H - The wild-pointer dereferences and stack corruption reliably produce a general protection fault, KASAN splat, or panic — this is exactly how syzbot (`syzbot+838346b979830606c854`) surfaced the bug.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 3505cb9fa26cfec9512744466e754a8cbc2365b0 to < 6675c541f540a29487a802d3135280b69b9f568d (affected · git)3505cb9fa26cfec9512744466e754a8cbc2365b0 to < 67929e973f5a347f05fef064fea4ae79e7cdb5fd (affected · git)3505cb9fa26cfec9512744466e754a8cbc2365b0 to < b34bbc76651065a5eafad8ddff1eb8d1f8473172 (affected · git)3505cb9fa26cfec9512744466e754a8cbc2365b0 to < 543576ec15b17c0c93301ac8297333c7b6e84ac7 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.6 (affected)0 to < 6.6 (unaffected · semver)6.6.33 through 6.6.* (unaffected · semver)6.8.12 through 6.8.* (unaffected · semver)6.9.3 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
3Linux · cna
bpf: Add BPF_PROG_TYPE_CGROUP_SKB attach type enforcement in BPF_LINK_CREATE
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8dce759e5e9a3dc371681da01393baae1351ad5f2735cf467aac5dae4d3bc7b1
- Ingested
- 27 Oct 2026, 15:58:05 UTC
- Source record
- Official CVE record