# CVE-2023-54104: mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-12-24T13:06:29.354Z
- Modified: 2026-08-05T09:17:18.597Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 54309d65776755bcdb9dcf3744cd764fc1e254ea before 1f09d67d390647f83f8f9d26382b0daa43756e6f; from 54309d65776755bcdb9dcf3744cd764fc1e254ea before eb7a5e4d14c8659cb97db6863316280e15f67209; from 54309d65776755bcdb9dcf3744cd764fc1e254ea before f4b700c71802c81e6f9dce362ee7a0312c8377ba; from 54309d65776755bcdb9dcf3744cd764fc1e254ea before 49e57caf967a969f6b955c88805f2d160910aa12; from 54309d65776755bcdb9dcf3744cd764fc1e254ea before c6abce60338aa2080973cd95be0aedad528bb41f; 5.9 (not affected: before 5.9; from 5.10.190 up to 5.10.*; from 5.15.126 up to 5.15.*; from 6.1.45 up to 6.1.*; from 6.4.10 up to 6.4.*; from 6.5 up to *)

## References

- <https://git.kernel.org/stable/c/1f09d67d390647f83f8f9d26382b0daa43756e6f>
- <https://git.kernel.org/stable/c/eb7a5e4d14c8659cb97db6863316280e15f67209>
- <https://git.kernel.org/stable/c/f4b700c71802c81e6f9dce362ee7a0312c8377ba>
- <https://git.kernel.org/stable/c/49e57caf967a969f6b955c88805f2d160910aa12>
- <https://git.kernel.org/stable/c/c6abce60338aa2080973cd95be0aedad528bb41f>

## Sources

- CVE List: [CVE-2023-54104](https://www.cve.org/CVERecord?id=CVE-2023-54104), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-54104](https://nvd.nist.gov/vuln/detail/CVE-2023-54104), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2023-54104 · Whole record: https://cve.day/CVE-2023-54104.json · Rebuilt by cve.day 2026-11-25T22:58:35.176Z
