Home / Linux / Linux / CVE-2021-46959
CVE-2021-46959: is it exploited, and which versions of Linux are affected and fixed?
CVE-2021-46959 is an use after free vulnerability in Linux. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 18:09 UTC). Affected: Linux from 4.4.248 before 4.4.271, Linux from 4.9.248 before 4.9.271, Linux from 4.14.212 before 4.14.233 and 4 more (CVE record by Linux). Fixed in 4.4.271, 4.9.271, 4.14.233, 4.19.191 and 2 more (CVE record by Linux). Severity: High (7.8, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:09 UTC, CVE record November 28, 2026, 20:04 UTC and NVD November 19, 2026, 07:31 UTC.
What is CVE-2021-46959?
In the Linux kernel, the following vulnerability has been resolved: spi: Fix use-after-free with devm_spi_alloc_* We can't rely on the contents of the devres list during spi_unregister_controller(), as the list is already torn down at the time we perform devres_find() for devm_spi_release_controller. This causes devices registered with devm_spi_alloc_{master,slave}() to be mistakenly identified as legacy, non-devm managed devices and have their reference counters decremented below 0. ------------[ cut here ]------------ WARNING: CPU: 1 PID: 660 at lib/refcount.c:28 refcount_warn_saturate+0x108/0x174 [<b0396f04>] (refcount_warn_saturate) from [<b03c56a4>] (kobject_put+0x90/0x98) [<b03c5614>] (kobject_put) from [<b0447b4c>] (put_device+0x20/0x24) r4:b6700140 [<b0447b2c>] (put_device) from [<b07515e8>] (devm_spi_release_controller+0x3c/0x40) [<b07515ac>] (devm_spi_release_controller) from [<b045343c>] (release_nodes+0x84/0xc4) r5:b6700180 r4:b6700100 [<b04533b8>] (release_nodes) from [<b0454160>] (devres_release_all+0x5c/0x60) r8:b1638c54 r7:b117ad94 r6:b1638c10 r5:b117ad94 r4:b163dc10 [<b0454104>] (devres_release_all) from [<b044e41c>] (__device_release_driver+0x144/0x1ec) r5:b117ad94 r4:b163dc10 [<b044e2d8>] (__device_release_driver) from [<b044f70c>] (device_driver_detach+0x84/0xa0) r9:00000000 r8:00000000 r7:b117ad94 r6:b163dc54 r5:b1638c10 r4:b163dc10 [<b044f688>] (device_driver_detach) from [<b044d274>] (unbind_store+0xe4/0xf8) Instead, determine the devm allocation state as a flag on the controller which is guaranteed to be stable during cleanup.
From the CVE record by Linux, last updated May 23, 2026, 15:18 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Linux | Linux | from 4.4.248 before 4.4.271 from 4.9.248 before 4.9.271 from 4.14.212 before 4.14.233 from 4.19.163 before 4.19.191 from 5.4.80 before 5.4.119 from 5.9.11 before 5.10 | 4.4.271, 4.9.271, 4.14.233, 4.19.191, 5.4.119, 5.10 |
| Linux | Linux | from 5.10 until the fixed versions | 4.4.271, 4.9.271, 4.14.233, 4.19.191, 5.4.119, 5.10.37, 5.11.21, 5.12.4, 5.13 |
As the CVE record by Linux states it, last updated May 23, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| linux | linux kernel | from 4.4.248 before 4.4.271 | operating system |
| linux | linux kernel | from 4.9.248 before 4.9.271 | operating system |
| linux | linux kernel | from 4.14.212 before 4.14.233 | operating system |
| linux | linux kernel | from 4.19.163 before 4.19.191 | operating system |
| linux | linux kernel | from 5.4.80 before 5.4.119 | operating system |
| linux | linux kernel | from 5.10 before 5.10.37 | operating system |
| linux | linux kernel | from 5.11 before 5.11.21 | operating system |
| linux | linux kernel | from 5.12 before 5.12.4 | operating system |
NVD analysis (status Analyzed), last modified June 17, 2026, 04:15 UTC.
How severe is CVE-2021-46959?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-46959 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, September 10, 2024)
- EPSS
- 0.24% probability of exploitation activity in the next 30 days, percentile 16.9 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-416 Use After Free
Where are the vendor advisories and references?
- 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
When was it published, and where is the official record?
- Reserved
- February 27, 2024
- Published
- February 29, 2024, 22:31 UTC
- CVE record updated
- May 23, 2026, 15:18 UTC by Linux
- NVD
- Analyzed, last modified June 17, 2026, 04:15 UTC
- Last checked
- CVE list November 28, 2026, 20:04 UTC; NVD November 19, 2026, 07:31 UTC; KEV December 3, 2026, 18:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Linux?
- Jul 4, 2026CVE-2026-53362 Linux: heap buffer overflow exploited
- Jun 25, 2026CVE-2026-53266 Linux: out-of-bounds write (memory corruption) exploited
- May 23, 2026CVE-2026-46300 Linux: write-what-where Condition exploited
- Apr 22, 2026CVE-2026-31431 Linux: incorrect resource transfer exploited
- Oct 13, 2025CVE-2025-39964 Linux: race condition exploited
- Sep 5, 2025CVE-2025-39682 Linux: unusual condition not checked exploited
- Jul 22, 2025CVE-2025-38352 Linux: time-of-check time-of-use race condition exploited
- Dec 27, 2024CVE-2024-53197 Linux: out-of-bounds write (memory corruption) exploited
Questions about CVE-2021-46959
Is CVE-2021-46959 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 18:09 UTC. FIRST's EPSS gives it a 0.24% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Linux are affected by CVE-2021-46959?
Linux from 4.4.248 before 4.4.271, Linux from 4.9.248 before 4.9.271, Linux from 4.14.212 before 4.14.233, Linux from 4.19.163 before 4.19.191, Linux from 5.4.80 before 5.4.119, Linux from 5.9.11 before 5.10 and 1 more, per the CVE record by Linux. The tables above give every range the sources list.
Which version fixes CVE-2021-46959?
4.4.271, 4.9.271, 4.14.233, 4.19.191, 5.4.119 and 5.10, per the CVE record by Linux. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-46959?
High (7.8, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2021-46959?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.