CVE-2023-54104

mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op()

State
Published
Severity
7.8 High
Published
Dec 24, 2025
Updated
Aug 5, 2026
Reserved
Dec 24, 2025

Read the record on cve.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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 54309d65776755bcdb9dcf3744cd764fc1e254ea to before 1f09d67d390647f83f8f9d26382b0daa43756e6fAffected
  • 54309d65776755bcdb9dcf3744cd764fc1e254ea to before eb7a5e4d14c8659cb97db6863316280e15f67209Affected
  • 54309d65776755bcdb9dcf3744cd764fc1e254ea to before f4b700c71802c81e6f9dce362ee7a0312c8377baAffected
  • 54309d65776755bcdb9dcf3744cd764fc1e254ea to before 49e57caf967a969f6b955c88805f2d160910aa12Affected
  • 54309d65776755bcdb9dcf3744cd764fc1e254ea to before c6abce60338aa2080973cd95be0aedad528bb41fAffected
LinuxLinux
  • 5.9Affected
  • before 5.9Not affected
  • 5.10.190 through 5.10.*Not affected
  • 5.15.126 through 5.15.*Not affected
  • 6.1.45 through 6.1.*Not affected
  • 6.4.10 through 6.4.*Not affected
  • 6.5 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.