Off-by-one vulnerability in cqspi_setup_flash() function in Linux kernel before 4.9.6

Off-by-one vulnerability in cqspi_setup_flash() function in Linux kernel before 4.9.6

CVE-2016-10764 · CRITICAL Severity

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

In the Linux kernel before 4.9.6, there is an off by one in the drivers/mtd/spi-nor/cadence-quadspi.c cqspi_setup_flash() function. There are CQSPI_MAX_CHIPSELECT elements in the ->f_pdata array so the ">" should be ">=" instead.

Learn more about our Cis Benchmark Audit For Distribution Independent Linux.