mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
An off-by-one check in the Linux kernel’s fsl_upm raw NAND driver permits an out-of-bounds array access when the chip index equals NAND_MAX_CHIPS. The input does not specify how an attacker could trigger this condition or whether access, authentication, or user interaction is required.
Teams running Linux kernels with the fsl_upm raw NAND driver should check their versions; affected versions are not specified.