Linux Kernel up to 5.10.172/5.15.98/6.1.15/6.2.2 core.c spi_nor_set_erase_type out-of-bounds

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
3.4$0-$5k0.00

Summaryinfo

A vulnerability was found in Linux Kernel up to 5.10.172/5.15.98/6.1.15/6.2.2. It has been declared as critical. This impacts the function spi_nor_set_erase_type of the file drivers/mtd/spi-nor/core.c. The manipulation results in out-of-bounds. This vulnerability is known as CVE-2023-54295. No exploit is available. It is recommended to upgrade the affected component.

Detailsinfo

A vulnerability was found in Linux Kernel up to 5.10.172/5.15.98/6.1.15/6.2.2. It has been classified as problematic. Affected is the function spi_nor_set_erase_type of the file drivers/mtd/spi-nor/core.c. The manipulation with an unknown input leads to a out-of-bounds vulnerability. CWE is classifying the issue as CWE-125. The product reads data past the end, or before the beginning, of the intended buffer. This is going to have an impact on confidentiality. CVE summarizes:

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]

The advisory is shared for download at git.kernel.org. This vulnerability is traded as CVE-2023-54295 since 12/30/2025. There are known technical details, but no exploit is available.

The vulnerability scanner Nessus provides a plugin with the ID 280814 (Linux Distros Unpatched Vulnerability : CVE-2023-54295), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 5.10.173, 5.15.99, 6.1.16 or 6.2.3 eliminates this vulnerability. Applying the patch e6409208c13f7c56adc12dd795abf4141e3d5e64/61d44a4db2f54dbac7d22c2541574ea5755e0468/53b2916ebde741c657a857fa1936c0d9fcb59170/99341b8aee7b5b4255b339345bbcaa35867dfd0c/f0f0cfdc3a024e21161714f2e05f0df3b84d42ad is able to eliminate this problem. The bugfix is ready for download at git.kernel.org. The best possible mitigation is suggested to be upgrading to the latest version.

The vulnerability is also documented in the databases at Tenable (280814) and CERT Bund (WID-SEC-2025-2941). Once again VulDB remains the best source for vulnerability data.

Affected

  • Open Source Linux Kernel

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 3.5
VulDB Meta Temp Score: 3.4

VulDB Base Score: 3.5
VulDB Temp Score: 3.4
VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Out-of-bounds
CWE: CWE-125 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒

Physical: No
Local: No
Remote: Partially

Availability: 🔒
Status: Not defined

EPSS Score: 🔒
EPSS Percentile: 🔒

Price Prediction: 🔍
Current Price Estimation: 🔒

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 280814
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2023-54295

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: Kernel 5.10.173/5.15.99/6.1.16/6.2.3
Patch: e6409208c13f7c56adc12dd795abf4141e3d5e64/61d44a4db2f54dbac7d22c2541574ea5755e0468/53b2916ebde741c657a857fa1936c0d9fcb59170/99341b8aee7b5b4255b339345bbcaa35867dfd0c/f0f0cfdc3a024e21161714f2e05f0df3b84d42ad

Timelineinfo

12/30/2025 Advisory disclosed
12/30/2025 +0 days CVE reserved
12/30/2025 +0 days VulDB entry created
01/01/2026 +2 days VulDB entry last update

Sourcesinfo

Vendor: kernel.org

Advisory: git.kernel.org
Status: Confirmed

CVE: CVE-2023-54295 (🔒)
GCVE (CVE): GCVE-0-2023-54295
GCVE (VulDB): GCVE-100-338820
CERT Bund: WID-SEC-2025-2941 - Linux Kernel: Mehrere Schwachstellen ermöglichen Denial of Service

Entryinfo

Created: 12/30/2025 15:44
Updated: 01/01/2026 21:06
Changes: 12/30/2025 15:44 (59), 12/31/2025 12:45 (2), 01/01/2026 21:06 (7)
Complete: 🔍
Cache ID: 216::103

Once again VulDB remains the best source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!