{"id":"CVE-2024-56675","aliases":["CVE-2024-56675"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Fix UAF via mismatching bpf_prog/attachment RCU flavors","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bpf: Arreglar UAF a través de la falta de coincidencia de los sabores de RCU de bpf_prog/attachment Los uprobes siempre usan bpf_prog_run_array_uprobe() bajo la protección de tareas-trace-RCU. Pero es posible adjuntar un programa BPF no durmiente a un uprobe, y los programas BPF no durmientes se liberan a través de RCU normal (ver __bpf_prog_put_noref()). Esto lleva a UAF de bpf_prog porque un período de gracia de RCU normal no implica un período de gracia de tareas-trace-RCU. Arréglelo esperando explícitamente un período de gracia de tareas-trace-RCU después de eliminar la conexión de un bpf_prog a un perf_event.","source":"nvd"}],"published":"2024-12-27T15:06:36.183Z","modified":"2026-06-17T08:12:43.233Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9","fixed":"9245459a992d22fe0e92e988f49db1fec82c184a","status":"affected"},{"type":"git","introduced":"8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9","fixed":"f9f85df30118f3f4112761e6682fc60ebcce23e5","status":"affected"},{"type":"git","introduced":"8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9","fixed":"9b53d2c2a38a1effc341d99be3f99fa7ef17047d","status":"affected"},{"type":"git","introduced":"8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9","fixed":"ef1b808e3b7c98612feceedf985c2fbbeb28f956","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"6.1.121","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.67","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.6","lastAffected":"6.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.0","fixed":"6.1.121"},{"status":"affected","introduced":"6.2","fixed":"6.6.67"},{"status":"affected","introduced":"6.7","fixed":"6.12.6"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/9245459a992d22fe0e92e988f49db1fec82c184a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f9f85df30118f3f4112761e6682fc60ebcce23e5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9b53d2c2a38a1effc341d99be3f99fa7ef17047d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ef1b808e3b7c98612feceedf985c2fbbeb28f956","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-02-10T17:12:26.615Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-56675","url":"https://www.cve.org/CVERecord?id=CVE-2024-56675","licence":"CVE Terms of Use","modified":"2026-05-11T20:57:05.307Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-56675","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56675","licence":"Public domain","modified":"2026-06-17T08:12:43.233Z"}],"updatedAt":"2026-11-25T22:58:50.517Z","epss":{"score":0.00229,"percentile":0.147,"date":"2026-12-01T12:00:22.000Z"}}