CVE-2023-54295
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2023-54295 is a shift-out-of-bounds vulnerability in the Linux kernel's MTD SPI-NOR subsystem, specifically in the spi_nor_set_erase_type() function within drivers/mtd/spi-nor/core.c. The flaw is triggered when the function is used to mask out an erase type, causing UBSAN to report a shift exponent of 4294967295 — far too large for a 32-bit integer. It affects Linux kernel versions from 4.20 up to the patched stable releases (5.10.173, 5.15.99, 6.1.16, 6.2.3, and 6.3). The vulnerability was published on December 30, 2025, with an EPSS score of approximately 0.018% (Feedly).

Technical details

The root cause is an improper shift operation (CWE-125/CWE-190 class — undefined behavior via out-of-bounds shift) in spi_nor_set_erase_type() in drivers/mtd/spi-nor/core.c at line 2237. When the function is called to mask out (disable) an erase type by setting its size to zero, it still attempts to compute size_shift and size_mask using the zero size value, resulting in a shift exponent of 4294967295 (i.e., (uint32_t)-1) which is undefined behavior for a 32-bit integer type. The fix simplifies the masking path to only set the erase size to zero, since the rest of the codebase uses only the erase size to determine whether an erase type is supported — eliminating the unnecessary and erroneous shift operations (Feedly).

Impact

The vulnerability causes undefined behavior (UBSAN-detected shift-out-of-bounds) in the Linux kernel's SPI-NOR flash driver, which could lead to kernel instability or crashes on systems using SPI-NOR flash memory. The primary availability impact is a potential kernel panic or system crash on affected embedded or server hardware with SPI-NOR storage. Confidentiality and integrity impacts are considered low, as this is a local kernel driver bug rather than a remotely exploitable code execution flaw (Feedly).

Mitigation and workarounds

The Linux kernel stable tree has released fixes across multiple stable branches. Patched versions include Linux 5.10.173, 5.15.99, 6.1.16, 6.2.3, and 6.3. The fix commits are available at the kernel stable repository for each affected branch. Users should update to the patched kernel version corresponding to their distribution's stable branch. No configuration-based workaround is available; upgrading the kernel is the recommended remediation (Feedly).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management