CVE-2023-54104
Unknown Unknown - Not Provided

Off-by-One Vulnerability in Linux Kernel MTD RawNAND Component

Vulnerability report for CVE-2023-54104, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2025-12-24

Last updated on: 2025-12-24

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op() 'op-cs' is copied in 'fun->mchip_number' which is used to access the 'mchip_offsets' and the 'rnb_gpio' arrays. These arrays have NAND_MAX_CHIPS elements, so the index must be below this limit. Fix the sanity check in order to avoid the NAND_MAX_CHIPS value. This would lead to out-of-bound accesses.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2025-12-24
Last Modified
2025-12-24
Generated
2026-07-06
AI Q&A
2025-12-24
EPSS Evaluated
2026-07-05
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
linux linux_kernel *
linux kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an off-by-one error in the Linux kernel's mtd: rawnand: fsl_upm component. Specifically, a value 'op-cs' is copied into 'fun->mchip_number', which is then used as an index to access the 'mchip_offsets' and 'rnb_gpio' arrays. These arrays have a fixed size defined by NAND_MAX_CHIPS, and the code did not properly check that the index was below this limit. This off-by-one error could lead to out-of-bound array accesses.

Impact Analysis

The off-by-one error leading to out-of-bound array accesses can cause undefined behavior in the kernel, such as memory corruption, crashes, or potentially allow an attacker to execute arbitrary code or escalate privileges. This can compromise system stability and security.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2023-54104. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart