{"id":"CVE-2024-38564","summary":"bpf: Add BPF_PROG_TYPE_CGROUP_SKB attach type enforcement in BPF_LINK_CREATE","details":"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 \u003c\u003e 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.","modified":"2026-04-16T04:30:31.948971916Z","published":"2024-06-19T13:35:32.222Z","related":["ALSA-2024:10281","ALSA-2024:10282","ALSA-2024:11486","SUSE-SU-2024:2372-1","SUSE-SU-2024:2385-1","SUSE-SU-2024:2394-1","SUSE-SU-2024:2495-1","SUSE-SU-2024:2571-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2939-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38564.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/543576ec15b17c0c93301ac8297333c7b6e84ac7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6675c541f540a29487a802d3135280b69b9f568d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/67929e973f5a347f05fef064fea4ae79e7cdb5fd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b34bbc76651065a5eafad8ddff1eb8d1f8473172"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38564.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38564"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"4a1e7c0c63e02daad751842b7880f9bbcdfb6e89"},{"fixed":"6675c541f540a29487a802d3135280b69b9f568d"},{"fixed":"67929e973f5a347f05fef064fea4ae79e7cdb5fd"},{"fixed":"b34bbc76651065a5eafad8ddff1eb8d1f8473172"},{"fixed":"543576ec15b17c0c93301ac8297333c7b6e84ac7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38564.json"}}],"schema_version":"1.7.5"}