In the Linux kernel, the following vulnerability has been resolved: mtd: rawnand: fslupm: Fix an off-by one test in funexecop() 'op-cs' is copied in 'fun->mchipnumber' which is used to access the 'mchipoffsets' and the 'rnbgpio' arrays. These arrays have NANDMAXCHIPS 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.