{"id":"CVE-2023-54104","summary":"mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op()\n\n'op-cs' is copied in 'fun-\u003emchip_number' which is used to access the\n'mchip_offsets' and the 'rnb_gpio' arrays.\nThese arrays have NAND_MAX_CHIPS elements, so the index must be below this\nlimit.\n\nFix the sanity check in order to avoid the NAND_MAX_CHIPS value. This\nwould lead to out-of-bound accesses.","modified":"2026-03-31T17:29:41.955310314Z","published":"2025-12-24T13:06:29.354Z","related":["SUSE-SU-2026:0263-1","SUSE-SU-2026:0278-1","SUSE-SU-2026:0281-1","SUSE-SU-2026:0293-1","SUSE-SU-2026:0315-1","SUSE-SU-2026:0317-1","SUSE-SU-2026:0411-1","SUSE-SU-2026:0617-1","SUSE-SU-2026:20477-1","SUSE-SU-2026:20498-1","SUSE-SU-2026:20845-1","SUSE-SU-2026:20876-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54104.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1f09d67d390647f83f8f9d26382b0daa43756e6f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/49e57caf967a969f6b955c88805f2d160910aa12"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c6abce60338aa2080973cd95be0aedad528bb41f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eb7a5e4d14c8659cb97db6863316280e15f67209"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f4b700c71802c81e6f9dce362ee7a0312c8377ba"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54104.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54104"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"54309d65776755bcdb9dcf3744cd764fc1e254ea"},{"fixed":"1f09d67d390647f83f8f9d26382b0daa43756e6f"},{"fixed":"eb7a5e4d14c8659cb97db6863316280e15f67209"},{"fixed":"f4b700c71802c81e6f9dce362ee7a0312c8377ba"},{"fixed":"49e57caf967a969f6b955c88805f2d160910aa12"},{"fixed":"c6abce60338aa2080973cd95be0aedad528bb41f"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54104.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.9.0"},{"fixed":"5.10.190"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.126"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.45"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.4.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54104.json"}}],"schema_version":"1.7.5"}