CVE-2023-54104
Unknown Unknown - Not Provided
Off-by-One Vulnerability in Linux Kernel MTD RawNAND Component

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-05-07
AI Q&A
2025-12-24
EPSS Evaluated
2026-05-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 Powered Q&A
Can you explain this vulnerability to me?

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.


How can this vulnerability impact me? :

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.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart