{"id":"CVE-2024-38564","aliases":[],"title":"bpf: Add BPF_PROG_TYPE_CGROUP_SKB attach type enforcement in BPF_LINK_CREATE","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Add BPF_PROG_TYPE_CGROUP_SKB attach type enforcement in BPF_LINK_CREATE\n\nbpf_prog_attach uses attach_type_to_prog_type to enforce proper\nattach type for BPF_PROG_TYPE_CGROUP_SKB. link_create uses\nbpf_prog_get and relies on bpf_prog_attach_check_attach_type\nto properly verify prog_type <> attach_type association.\n\nAdd missing attach_type enforcement for the link_create case.\nOtherwise, it's currently possible to attach cgroup_skb prog\ntypes to other cgroup hooks.","severity":"high","score":7.8,"published":"2024-06-19T13:35:32.222Z","modified":"2026-10-27T15:53:48.399Z","withdrawn":false,"knownExploited":false,"affected":[],"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"],"sources":[{"name":"CVE","id":"CVE-2024-38564","modified":"2026-10-27T15:53:48.399Z","url":"https://www.cve.org/CVERecord?id=CVE-2024-38564"}],"assessments":[{"source":"CNA","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8}]}