{"id":"CVE-2024-56675","published":"2024-12-27T15:06:36Z","modified":"2026-05-11T20:57:05Z","title":"bpf: Fix UAF via mismatching bpf_prog/attachment RCU flavors","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.0032,"percentile":0.17471,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/9245459a992d22fe0e92e988f49db1fec82c184a","tags":[]},{"url":"https://git.kernel.org/stable/c/f9f85df30118f3f4112761e6682fc60ebcce23e5","tags":[]},{"url":"https://git.kernel.org/stable/c/9b53d2c2a38a1effc341d99be3f99fa7ef17047d","tags":[]},{"url":"https://git.kernel.org/stable/c/ef1b808e3b7c98612feceedf985c2fbbeb28f956","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[]}],"priority":{"score":9.0,"factors":[{"name":"EPSS percentile","points":3.49},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9, < 9245459a992d22fe0e92e988f49db1fec82c184a",">= 8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9, < f9f85df30118f3f4112761e6682fc60ebcce23e5",">= 8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9, < 9b53d2c2a38a1effc341d99be3f99fa7ef17047d",">= 8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9, < ef1b808e3b7c98612feceedf985c2fbbeb28f956"]},{"vendor":"Linux","product":"Linux","versions":["6.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-02-10T17:12:26.615244Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-53323","exploited":false,"provenance":"source"}}