# ftrace: Fix possible use-after-free issue in ftrace_location()

CVE record · `CVE-2024-38588`

- **Identifiers:** `CVE-2024-38588`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Weakness (CWE):** [CWE-416](https://cwe.mitre.org/data/definitions/416.html)
- **Tags:** [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md)
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 19 Jun 2024
- **Updated:** 5 Aug 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 19 Jun 2024, 13:37 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: `ae6aa16fdc163afe6b04b6c073ad4ddd4663c03b to before eea46baf145150910ba134f75a67106ba2222c1b` (git)
  - affected: `ae6aa16fdc163afe6b04b6c073ad4ddd4663c03b to before 1880a324af1c95940a7c954b6b937e86844a33bd` (git)
  - affected: `ae6aa16fdc163afe6b04b6c073ad4ddd4663c03b to before 8ea8ef5e42173560ac510e92a1cc797ffeea8831` (git)
  - affected: `ae6aa16fdc163afe6b04b6c073ad4ddd4663c03b to before dbff5f0bfb2416b8b55c105ddbcd4f885e98fada` (git)
  - affected: `ae6aa16fdc163afe6b04b6c073ad4ddd4663c03b to before 7b4881da5b19f65709f5c18c1a4d8caa2e496461` (git)
  - affected: `ae6aa16fdc163afe6b04b6c073ad4ddd4663c03b to before 66df065b3106964e667b37bf8f7e55ec69d0c1f6` (git)
  - affected: `ae6aa16fdc163afe6b04b6c073ad4ddd4663c03b to before 31310e373f4c8c74e029d4326b283e757edabc0b` (git)
  - affected: `ae6aa16fdc163afe6b04b6c073ad4ddd4663c03b to before e60b613df8b6253def41215402f72986fee3fc8d` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `3.7`
  - unaffected: `before 3.7` (semver)
  - unaffected: `5.4.286 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.227 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.162 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.93 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.33 to 6.6.*, inclusive` (semver)
  - unaffected: `6.8.12 to 6.8.*, inclusive` (semver)
  - unaffected: `6.9.3 to 6.9.*, inclusive` (semver)
  - unaffected: `6.10 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

- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (Linux) (used for this record)
- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from ADP (CISA-ADP)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0024, the 14th percentile, on 21 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 19 Jun 2024. New records show when each source confirmed them.

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/eea46baf145150910ba134f75a67106ba2222c1b>
- <https://git.kernel.org/stable/c/1880a324af1c95940a7c954b6b937e86844a33bd>
- <https://git.kernel.org/stable/c/8ea8ef5e42173560ac510e92a1cc797ffeea8831>
- <https://git.kernel.org/stable/c/dbff5f0bfb2416b8b55c105ddbcd4f885e98fada>
- <https://git.kernel.org/stable/c/7b4881da5b19f65709f5c18c1a4d8caa2e496461>
- <https://git.kernel.org/stable/c/66df065b3106964e667b37bf8f7e55ec69d0c1f6>
- <https://git.kernel.org/stable/c/31310e373f4c8c74e029d4326b283e757edabc0b>
- <https://git.kernel.org/stable/c/e60b613df8b6253def41215402f72986fee3fc8d>

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-38588>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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