# bpf,perf: Fix invalid prog_array access in perf_event_detach_bpf_prog

CVE record · `CVE-2024-56665`

- **Identifiers:** `CVE-2024-56665`
- **State:** Confirmed
- **Severity:** CVSS 5.5 Medium
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 27 Dec 2024
- **Updated:** 23 May 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 27 Dec 2024, 15:06 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `7a5c653ede645693422e43cccaa3e8f905d21c74 to before 842e5af282453983586e2eae3c8eaf252de5f22f` (git)
  - affected: `21db2f35fa97e4a3447f2edeb7b2569a8bfdc83b to before c2b6b47662d5f2dfce92e5ffbdcac8229f321d9d` (git)
  - affected: `0ee288e69d033850bc87abe0f9cc3ada24763d7f to before dfb15ddf3b65e0df2129f9756d1b4fa78055cdb3` (git)
  - affected: `0ee288e69d033850bc87abe0f9cc3ada24763d7f to before 978c4486cca5c7b9253d3ab98a88c8e769cb9bbd` (git)
  - affected: `b4007d5fe38625b8a1b8edc0f385d86527651238` (git)
  - affected: `585674b9d0d80bd7f428b1f88be13cf6d5d6f739` (git)
  - affected: `6.1.115 to before 6.1.121` (semver)
  - affected: `6.6.59 to before 6.6.67` (semver)
  - affected: `5.15.170 to before 5.16` (semver)
  - affected: `6.11.6 to before 6.12` (semver)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `6.12`
  - unaffected: `before 6.12` (semver)
  - unaffected: `6.1.121 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.67 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.6 to 6.12.*, inclusive` (semver)
  - unaffected: `6.13 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 5.5 Medium, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`, from ADP (CISA-ADP)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0022, the 12th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 27 Dec 2024. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2024-56665](https://www.cve.org/CVERecord?id=CVE-2024-56665)
- [NVD: CVE-2024-56665](https://nvd.nist.gov/vuln/detail/CVE-2024-56665)

### References from the CNA

- <https://git.kernel.org/stable/c/842e5af282453983586e2eae3c8eaf252de5f22f>
- <https://git.kernel.org/stable/c/c2b6b47662d5f2dfce92e5ffbdcac8229f321d9d>
- <https://git.kernel.org/stable/c/dfb15ddf3b65e0df2129f9756d1b4fa78055cdb3>
- <https://git.kernel.org/stable/c/978c4486cca5c7b9253d3ab98a88c8e769cb9bbd>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2024-56665>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2024-56665/>. Everything for agents: <https://agentprime.io/llms.txt>.
