{"id":"CVE-2023-54104","aliases":["CVE-2023-54104"],"related":[],"kind":"vulnerability","state":"published","title":"mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op()","summary":"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->mchip_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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->mchip_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.","source":"cvelist"}],"published":"2025-12-24T13:06:29.354Z","modified":"2026-08-05T09:17:18.597Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"54309d65776755bcdb9dcf3744cd764fc1e254ea","fixed":"1f09d67d390647f83f8f9d26382b0daa43756e6f","status":"affected"},{"type":"git","introduced":"54309d65776755bcdb9dcf3744cd764fc1e254ea","fixed":"eb7a5e4d14c8659cb97db6863316280e15f67209","status":"affected"},{"type":"git","introduced":"54309d65776755bcdb9dcf3744cd764fc1e254ea","fixed":"f4b700c71802c81e6f9dce362ee7a0312c8377ba","status":"affected"},{"type":"git","introduced":"54309d65776755bcdb9dcf3744cd764fc1e254ea","fixed":"49e57caf967a969f6b955c88805f2d160910aa12","status":"affected"},{"type":"git","introduced":"54309d65776755bcdb9dcf3744cd764fc1e254ea","fixed":"c6abce60338aa2080973cd95be0aedad528bb41f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.9","status":"unaffected"},{"type":"semver","introduced":"5.10.190","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.126","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.45","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.4.10","lastAffected":"6.4.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.5","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/1f09d67d390647f83f8f9d26382b0daa43756e6f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eb7a5e4d14c8659cb97db6863316280e15f67209","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f4b700c71802c81e6f9dce362ee7a0312c8377ba","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/49e57caf967a969f6b955c88805f2d160910aa12","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c6abce60338aa2080973cd95be0aedad528bb41f","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-54104","url":"https://www.cve.org/CVERecord?id=CVE-2023-54104","licence":"CVE Terms of Use","modified":"2026-08-05T09:17:18.597Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-54104","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54104","licence":"Public domain","modified":"2026-08-04T10:19:29.423Z"}],"updatedAt":"2026-11-25T22:58:35.176Z","epss":{"score":0.00177,"percentile":0.07616,"date":"2026-12-01T12:00:22.000Z"}}