CVE-2023-54295
Shift-Out-of-Bounds Vulnerability in Linux Kernel spi-nor Driver
Publication date: 2025-12-30
Last updated on: 2025-12-30
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a shift-out-of-bounds error in the Linux kernel's spi_nor_set_erase_type() function, which is part of the SPI NOR flash memory driver. The function was incorrectly handling the masking out of an erase type, causing an invalid shift operation with an excessively large shift exponent. This could lead to undefined behavior or crashes. The fix involves setting the erase size to zero when masking out an erase type, avoiding the erroneous shift and incorrect opcode setting.
How can this vulnerability impact me? :
The vulnerability can cause undefined behavior such as kernel crashes or instability due to the shift-out-of-bounds error in the SPI NOR flash driver. This could potentially affect system reliability or availability on systems using the affected Linux kernel versions.