mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.190, 5.15.126, 6.1.45, 6.4.10
- CVEs
- CVE-2023-54104
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 17:31 UTC · Revision 1
Source evidence
mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op()
core-osv · Original sourcePublished 24 Dec 2025, 13:06 UTC
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.
osv:CVE-2023-54104
Kernel
Fixed versions: 5.10.190, 5.15.126, 6.1.45, 6.4.10
Complete source record
{
"id": "75eacc4e39e305637ec73d77ec984837392055754100e02448e30819b71cc0e7",
"url": "https://osv.dev/vulnerability/CVE-2023-54104",
"method": "structured",
"payload": {
"kind": "advisory",
"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: 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.",
"evidence": "osv:CVE-2023-54104",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.190",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.126",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.45",
"evidence": "/affected/1/ranges"
},
{
"value": "6.4.10",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2023-54104",
"aliases": [
"CVE-2023-54104"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "54309d65776755bcdb9dcf3744cd764fc1e254ea"
},
{
"fixed": "1f09d67d390647f83f8f9d26382b0daa43756e6f"
},
{
"fixed": "eb7a5e4d14c8659cb97db6863316280e15f67209"
},
{
"fixed": "f4b700c71802c81e6f9dce362ee7a0312c8377ba"
},
{
"fixed": "49e57caf967a969f6b955c88805f2d160910aa12"
},
{
"fixed": "c6abce60338aa2080973cd95be0aedad528bb41f"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54104.json"
}
},
{
"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"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54104.json"
}
}
],
"modified": "2026-10-28T02:30:21.364845114Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/1f09d67d390647f83f8f9d26382b0daa43756e6f",
"https://git.kernel.org/stable/c/49e57caf967a969f6b955c88805f2d160910aa12",
"https://git.kernel.org/stable/c/c6abce60338aa2080973cd95be0aedad528bb41f",
"https://git.kernel.org/stable/c/eb7a5e4d14c8659cb97db6863316280e15f67209",
"https://git.kernel.org/stable/c/f4b700c71802c81e6f9dce362ee7a0312c8377ba",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54104.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-54104",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54104.json"
}
},
"related_cves": [
{
"value": "CVE-2023-54104",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 487739,
"published_at": "2025-12-24T13:06:29.354+00:00"
}