{"id":"CVE-2023-54104","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2025-12-24T13:16:12.293","lastModified":"2026-08-04T10:19:29.423","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/mtd/nand/raw/fsl_upm.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"54309d65776755bcdb9dcf3744cd764fc1e254ea","lessThan":"1f09d67d390647f83f8f9d26382b0daa43756e6f","versionType":"git","status":"affected"},{"version":"54309d65776755bcdb9dcf3744cd764fc1e254ea","lessThan":"eb7a5e4d14c8659cb97db6863316280e15f67209","versionType":"git","status":"affected"},{"version":"54309d65776755bcdb9dcf3744cd764fc1e254ea","lessThan":"f4b700c71802c81e6f9dce362ee7a0312c8377ba","versionType":"git","status":"affected"},{"version":"54309d65776755bcdb9dcf3744cd764fc1e254ea","lessThan":"49e57caf967a969f6b955c88805f2d160910aa12","versionType":"git","status":"affected"},{"version":"54309d65776755bcdb9dcf3744cd764fc1e254ea","lessThan":"c6abce60338aa2080973cd95be0aedad528bb41f","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/mtd/nand/raw/fsl_upm.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"5.9","status":"affected"},{"version":"0","lessThan":"5.9","versionType":"semver","status":"unaffected"},{"version":"5.10.190","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.126","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.1.45","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.4.10","lessThanOrEqual":"6.4.*","versionType":"semver","status":"unaffected"},{"version":"6.5","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"references":[{"url":"https://git.kernel.org/stable/c/1f09d67d390647f83f8f9d26382b0daa43756e6f","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/49e57caf967a969f6b955c88805f2d160910aa12","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/c6abce60338aa2080973cd95be0aedad528bb41f","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/eb7a5e4d14c8659cb97db6863316280e15f67209","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/f4b700c71802c81e6f9dce362ee7a0312c8377ba","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}