{"id":"CVE-2024-56675","summary":"bpf: Fix UAF via mismatching bpf_prog/attachment RCU flavors","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix UAF via mismatching bpf_prog/attachment RCU flavors\n\nUprobes always use bpf_prog_run_array_uprobe() under tasks-trace-RCU\nprotection. But it is possible to attach a non-sleepable BPF program to a\nuprobe, and non-sleepable BPF programs are freed via normal RCU (see\n__bpf_prog_put_noref()). This leads to UAF of the bpf_prog because a normal\nRCU grace period does not imply a tasks-trace-RCU grace period.\n\nFix it by explicitly waiting for a tasks-trace-RCU grace period after\nremoving the attachment of a bpf_prog to a perf_event.","modified":"2026-04-16T04:34:04.772719962Z","published":"2024-12-27T15:06:36.183Z","related":["ALSA-2025:20095","ALSA-2025:20518","SUSE-SU-2025:0289-1","SUSE-SU-2025:0428-1","SUSE-SU-2025:0499-1","SUSE-SU-2025:0557-1","SUSE-SU-2025:20165-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20248-1","SUSE-SU-2025:20249-1","USN-7379-2","USN-7380-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56675.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/9245459a992d22fe0e92e988f49db1fec82c184a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9b53d2c2a38a1effc341d99be3f99fa7ef17047d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ef1b808e3b7c98612feceedf985c2fbbeb28f956"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f9f85df30118f3f4112761e6682fc60ebcce23e5"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56675.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56675"},{"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":"8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9"},{"fixed":"9245459a992d22fe0e92e988f49db1fec82c184a"},{"fixed":"f9f85df30118f3f4112761e6682fc60ebcce23e5"},{"fixed":"9b53d2c2a38a1effc341d99be3f99fa7ef17047d"},{"fixed":"ef1b808e3b7c98612feceedf985c2fbbeb28f956"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56675.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}