{"api_version":"1","generated_at":"2026-10-29T10:37:28+00:00","cve":"CVE-2023-54104","urls":{"html":"https://cve.report/CVE-2023-54104","api":"https://cve.report/api/cve/CVE-2023-54104.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-54104","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-54104"},"summary":{"title":"mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op()","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2025-12-24 13:16:12","updated_at":"2026-08-04 10:19:29"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"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"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/c6abce60338aa2080973cd95be0aedad528bb41f","name":"https://git.kernel.org/stable/c/c6abce60338aa2080973cd95be0aedad528bb41f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/eb7a5e4d14c8659cb97db6863316280e15f67209","name":"https://git.kernel.org/stable/c/eb7a5e4d14c8659cb97db6863316280e15f67209","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/49e57caf967a969f6b955c88805f2d160910aa12","name":"https://git.kernel.org/stable/c/49e57caf967a969f6b955c88805f2d160910aa12","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1f09d67d390647f83f8f9d26382b0daa43756e6f","name":"https://git.kernel.org/stable/c/1f09d67d390647f83f8f9d26382b0daa43756e6f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f4b700c71802c81e6f9dce362ee7a0312c8377ba","name":"https://git.kernel.org/stable/c/f4b700c71802c81e6f9dce362ee7a0312c8377ba","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-54104","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54104","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 54309d65776755bcdb9dcf3744cd764fc1e254ea 1f09d67d390647f83f8f9d26382b0daa43756e6f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 54309d65776755bcdb9dcf3744cd764fc1e254ea eb7a5e4d14c8659cb97db6863316280e15f67209 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 54309d65776755bcdb9dcf3744cd764fc1e254ea f4b700c71802c81e6f9dce362ee7a0312c8377ba git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 54309d65776755bcdb9dcf3744cd764fc1e254ea 49e57caf967a969f6b955c88805f2d160910aa12 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 54309d65776755bcdb9dcf3744cd764fc1e254ea c6abce60338aa2080973cd95be0aedad528bb41f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.9","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.9 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.190 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.126 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.45 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.4.10 6.4.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.5 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2023","cve_id":"54104","cve":"CVE-2023-54104","epss":"0.001430000","percentile":"0.041000000","score_date":"2026-08-06","updated_at":"2026-08-07 00:14:20"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/mtd/nand/raw/fsl_upm.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"1f09d67d390647f83f8f9d26382b0daa43756e6f","status":"affected","version":"54309d65776755bcdb9dcf3744cd764fc1e254ea","versionType":"git"},{"lessThan":"eb7a5e4d14c8659cb97db6863316280e15f67209","status":"affected","version":"54309d65776755bcdb9dcf3744cd764fc1e254ea","versionType":"git"},{"lessThan":"f4b700c71802c81e6f9dce362ee7a0312c8377ba","status":"affected","version":"54309d65776755bcdb9dcf3744cd764fc1e254ea","versionType":"git"},{"lessThan":"49e57caf967a969f6b955c88805f2d160910aa12","status":"affected","version":"54309d65776755bcdb9dcf3744cd764fc1e254ea","versionType":"git"},{"lessThan":"c6abce60338aa2080973cd95be0aedad528bb41f","status":"affected","version":"54309d65776755bcdb9dcf3744cd764fc1e254ea","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/mtd/nand/raw/fsl_upm.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.9"},{"lessThan":"5.9","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.190","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.126","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.45","versionType":"semver"},{"lessThanOrEqual":"6.4.*","status":"unaffected","version":"6.4.10","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.5","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.190","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.126","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.45","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.4.10","versionStartIncluding":"5.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.5","versionStartIncluding":"5.9","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"providerMetadata":{"dateUpdated":"2026-08-04T09:17:44.673Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/1f09d67d390647f83f8f9d26382b0daa43756e6f"},{"url":"https://git.kernel.org/stable/c/eb7a5e4d14c8659cb97db6863316280e15f67209"},{"url":"https://git.kernel.org/stable/c/f4b700c71802c81e6f9dce362ee7a0312c8377ba"},{"url":"https://git.kernel.org/stable/c/49e57caf967a969f6b955c88805f2d160910aa12"},{"url":"https://git.kernel.org/stable/c/c6abce60338aa2080973cd95be0aedad528bb41f"}],"title":"mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2023-54104","datePublished":"2025-12-24T13:06:29.354Z","dateReserved":"2025-12-24T13:02:52.517Z","dateUpdated":"2026-08-04T09:17:44.673Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-12-24 13:16:12","lastModifiedDate":"2026-08-04 10:19:29","problem_types":[],"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}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2023","CveId":"54104","Ordinal":"1","Title":"mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op()","CVE":"CVE-2023-54104","Year":"2023"},"notes":[{"CveYear":"2023","CveId":"54104","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op()"}]}}}