CVE-2024-56665: Linux kernel · bpf,perf: Fix invalid prog_array access in perf_event_detach_bpf_prog
Source GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 30 Oct 2026, 00:52 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 27 Dec 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
AI-suggested
A fix has been implemented that adds a validity check on the prog_array pointer before removal in perf_event_detach_bpf_prog. Users should apply the official kernel update containing this fix once available. Until then, avoid tracing scenarios that involve inherited perf events with BPF programs attached to prevent triggering the crash.
Description
CVE-2024-56665 is a medium-severity vulnerability in the Linux kernel's BPF perf subsystem. It involves an invalid access to a prog_array in the perf_event_detach_bpf_prog function, which can cause a crash when detaching BPF programs from perf events under certain tracing scenarios involving process forking and event inheritance. The issue is fixed by adding a check to ensure the prog_array is valid before removal.
References
- nvd.nist.gov/vuln/detail/CVE-2024-56665 (opens in a new tab)
- git.kernel.org/stable/c/842e5af282453983586e2eae3c8eaf252de5f22f (opens in a new tab)
- git.kernel.org/stable/c/978c4486cca5c7b9253d3ab98a88c8e769cb9bbd (opens in a new tab)
- git.kernel.org/stable/c/c2b6b47662d5f2dfce92e5ffbdcac8229f321d9d (opens in a new tab)
- git.kernel.org/stable/c/dfb15ddf3b65e0df2129f9756d1b4fa78055cdb3 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/03/msg00001.html (opens in a new tab)