Skip to main content
← All vulnerabilities
CVE-2024-38564

bpf: Add BPF_PROG_TYPE_CGROUP_SKB attach type enforcement in BPF_LINK_CREATE

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.6.33, 6.8.12, 6.9.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux Linux

    From 3505cb9fa26cfec9512744466e754a8cbc2365b0 · fixed in 6675c541f540a29487a802d3135280b69b9f568d; From 3505cb9fa26cfec9512744466e754a8cbc2365b0 · fixed in 67929e973f5a347f05fef064fea4ae79e7cdb5fd; From 3505cb9fa26cfec9512744466e754a8cbc2365b0 · fixed in b34bbc76651065a5eafad8ddff1eb8d1f8473172; From 3505cb9fa26cfec9512744466e754a8cbc2365b0 · fixed in 543576ec15b17c0c93301ac8297333c7b6e84ac7

  • Linux Linux

    6.6

  • KernelLinux

    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

References 4

git.kernel.org