{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-56675","id":"CVE-2024-56675","title":"bpf: Fix UAF via mismatching bpf_prog/attachment RCU flavors","description":"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_pro","descriptionLong":"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.","published":"2024-12-27T15:06:36.183Z","updated":"2026-10-28T02:30:21.789838354Z","reserved":"2024-12-27T15:00:39.845Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9","lessThan":"9245459a992d22fe0e92e988f49db1fec82c184a","status":"affected","versionType":"git"},{"version":"8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9","lessThan":"f9f85df30118f3f4112761e6682fc60ebcce23e5","status":"affected","versionType":"git"},{"version":"8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9","lessThan":"9b53d2c2a38a1effc341d99be3f99fa7ef17047d","status":"affected","versionType":"git"},{"version":"8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9","lessThan":"ef1b808e3b7c98612feceedf985c2fbbeb28f956","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","lessThan":"6.0","status":"unaffected","versionType":"semver"},{"version":"6.1.121","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.67","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.6","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.13","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/9245459a992d22fe0e92e988f49db1fec82c184a","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f9f85df30118f3f4112761e6682fc60ebcce23e5","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/9b53d2c2a38a1effc341d99be3f99fa7ef17047d","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/ef1b808e3b7c98612feceedf985c2fbbeb28f956","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56675.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56675","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00229,"epssPercentile":0.14017,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-56675","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56675","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-56675","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-56675","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}