In the Linux kernel, the following vulnerability has been resolved:
mtd: rawnand: fslupm: Fix an off-by one test in funexec_op()
'op-cs' is copied in 'fun->mchipnumber' which is used to access the 'mchipoffsets' and the 'rnbgpio' arrays. These arrays have NANDMAX_CHIPS elements, so the index must be below this limit.
Fix the sanity check in order to avoid the NANDMAXCHIPS value. This would lead to out-of-bound accesses.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54104.json",
"cna_assigner": "Linux"
}