# spi: Fix use-after-free with devm_spi_alloc\_\*

CVE record · `CVE-2021-46959`

- **Identifiers:** `CVE-2021-46959`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 29 Feb 2024
- **Updated:** 23 May 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 29 Feb 2024, 22:31 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: `a4add022c1552b0d51a0b89a4781919d6ebac4f9 to before 62bb2c7f2411a0045c24831f11ecacfc35610815` (git)
  - affected: `0870525cf94bc27907e94ce99afb6d7239ffd2f5 to before 8bf96425c90f5c1dcf3b7b9df568019a1d4b8a0e` (git)
  - affected: `8c45a1c6c951bbe7f95db78fcab46f7337364468 to before 8e029707f50a82c53172359c686b2536ab54e58c` (git)
  - affected: `234b432c7b6184b2d6c5ba2c55f0dd5023c0edf0 to before 28a5529068c51cdf0295ab1e11a99a3a909a03e4` (git)
  - affected: `3e04a4976addbedcad326f47b0dd4efc570a1fac to before 001c8e83646ad3b847b18f6ac55a54367d917d74` (git)
  - affected: `5e844cc37a5cbaa460e68f9a989d321d63088a89 to before c7fabe372a9031acd00498bc718ce27c253abfd1` (git)
  - affected: `5e844cc37a5cbaa460e68f9a989d321d63088a89 to before cee78aa24578edac8cf00513dca618c0acc17cd7` (git)
  - affected: `5e844cc37a5cbaa460e68f9a989d321d63088a89 to before 8735248ebb918d25427965f0db07939ed0473ec6` (git)
  - affected: `5e844cc37a5cbaa460e68f9a989d321d63088a89 to before 794aaf01444d4e765e2b067cba01cc69c1c68ed9` (git)
  - affected: `bd1a5b2307279029faaddbecf2f2ac25eaef8dc6` (git)
  - affected: `4.4.248 to before 4.4.271` (semver)
  - affected: `4.9.248 to before 4.9.271` (semver)
  - and 4 more
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.10`
  - unaffected: `before 5.10` (semver)
  - unaffected: `4.4.271 to 4.4.*, inclusive` (semver)
  - unaffected: `4.9.271 to 4.9.*, inclusive` (semver)
  - unaffected: `4.14.233 to 4.14.*, inclusive` (semver)
  - unaffected: `4.19.191 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.119 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.37 to 5.10.*, inclusive` (semver)
  - unaffected: `5.11.21 to 5.11.*, inclusive` (semver)
  - unaffected: `5.12.4 to 5.12.*, inclusive` (semver)
  - unaffected: `5.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

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0024, the 15th 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 29 Feb 2024. New records show when each source confirmed them.

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/62bb2c7f2411a0045c24831f11ecacfc35610815>
- <https://git.kernel.org/stable/c/8bf96425c90f5c1dcf3b7b9df568019a1d4b8a0e>
- <https://git.kernel.org/stable/c/8e029707f50a82c53172359c686b2536ab54e58c>
- <https://git.kernel.org/stable/c/28a5529068c51cdf0295ab1e11a99a3a909a03e4>
- <https://git.kernel.org/stable/c/001c8e83646ad3b847b18f6ac55a54367d917d74>
- <https://git.kernel.org/stable/c/c7fabe372a9031acd00498bc718ce27c253abfd1>
- <https://git.kernel.org/stable/c/cee78aa24578edac8cf00513dca618c0acc17cd7>
- <https://git.kernel.org/stable/c/8735248ebb918d25427965f0db07939ed0473ec6>
- <https://git.kernel.org/stable/c/794aaf01444d4e765e2b067cba01cc69c1c68ed9>

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

---

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