Home / Linux / Linux / CVE-2023-54295
CVE-2023-54295: is it exploited, and which versions of Linux are affected and fixed?
CVE-2023-54295 is a 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, 16:09 UTC). Affected: Linux from 4.20 until the fixed versions (CVE record by Linux). Fixed in 5.10.173, 5.15.99, 6.1.16, 6.2.3 and 1 more (CVE record by Linux).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:09 UTC, CVE record November 28, 2026, 18:38 UTC and NVD November 19, 2026, 07:14 UTC.
What is CVE-2023-54295?
In the Linux kernel, the following vulnerability has been resolved: mtd: spi-nor: Fix shift-out-of-bounds in spi_nor_set_erase_type spi_nor_set_erase_type() was used either to set or to mask out an erase type. When we used it to mask out an erase type a shift-out-of-bounds was hit: UBSAN: shift-out-of-bounds in drivers/mtd/spi-nor/core.c:2237:24 shift exponent 4294967295 is too large for 32-bit type 'int' The setting of the size_{shift, mask} and of the opcode are unnecessary when the erase size is zero, as throughout the code just the erase size is considered to determine whether an erase type is supported or not. Setting the opcode to 0xFF was wrong too as nobody guarantees that 0xFF is an unused opcode. Thus when masking out an erase type, just set the erase size to zero. This will fix the shift-out-of-bounds. [ta: refine changes, new commit message, fix compilation error]
From the CVE record by Linux, last updated May 11, 2026, 19:59 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Linux | Linux | not stated | |
| Linux | Linux | from 4.20 until the fixed versions | 5.10.173, 5.15.99, 6.1.16, 6.2.3, 6.3 |
As the CVE record by Linux states it, last updated May 11, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Is CVE-2023-54295 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.21% probability of exploitation activity in the next 30 days, percentile 12.4 (FIRST EPSS, scores of December 3, 2026)
Where are the vendor advisories and references?
- https://git.kernel.org/stable/c/e6409208c13f7c56adc12dd795abf4141e3d5e64
- https://git.kernel.org/stable/c/61d44a4db2f54dbac7d22c2541574ea5755e0468
- https://git.kernel.org/stable/c/53b2916ebde741c657a857fa1936c0d9fcb59170
- https://git.kernel.org/stable/c/99341b8aee7b5b4255b339345bbcaa35867dfd0c
- https://git.kernel.org/stable/c/f0f0cfdc3a024e21161714f2e05f0df3b84d42ad
When was it published, and where is the official record?
- Reserved
- December 30, 2025
- Published
- December 30, 2025, 12:23 UTC
- CVE record updated
- May 11, 2026, 19:59 UTC by Linux
- NVD
- Deferred, last modified June 17, 2026, 06:47 UTC
- Last checked
- CVE list November 28, 2026, 18:38 UTC; NVD November 19, 2026, 07:14 UTC; KEV December 3, 2026, 16: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-2023-54295
Is CVE-2023-54295 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:09 UTC. FIRST's EPSS gives it a 0.21% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Linux are affected by CVE-2023-54295?
Linux from 4.20 until the fixed versions, per the CVE record by Linux. The tables above give every range the sources list.
Which version fixes CVE-2023-54295?
5.10.173, 5.15.99, 6.1.16, 6.2.3 and 6.3, per the CVE record by Linux. Check the vendor's advisory before you rely on it.
Where is the official record of CVE-2023-54295?
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.