CVE-2023-54295 — Reliance on Undefined, Unspecified, or Implementation-Defined Behavior in Linux
CWE-758 — Reliance on Undefined, Unspecified, or Implementation-Defined Behavior7 documents6 sources
Severity
4.1MEDIUM
No vectorEPSS
0.0%
top 92.57%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedDec 30
Description
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 s…
Affected Packages4 packages
▶CVEListV5linux/linux5390a8df769ec9ba9c995191bb0867430f602ebb — e6409208c13f7c56adc12dd795abf4141e3d5e64+5
🔴Vulnerability Details
3OSV▶
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_↗2025-12-30
GHSA▶
GHSA-3x4v-mgvj-ccrv: 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_eras↗2025-12-30