In the Linux kernel, the following vulnerability has been resolved: mtd: rawnand: validate ONFI extended parameter page sections nand_flash_detect_ext_param_page() allocates the length declared by the ONFI parameter page, then treats the data as a fixed header followed by variable-length sections. It reads that header and advances over sections without first proving that the fixed page and each current section fit in the allocation. Reject pages shorter than the fixed header, track the remaining variable area while walking sections, and require the ECC section to contain every field read from struct onfi_ext_ecc_info. Use device-scoped diagnostics that identify the malformed ONFI section.
https://git.kernel.org/stable/c/e5e415262330bd70f983e091d8919d9dcd99e475
https://git.kernel.org/stable/c/ddb6ddf5be7429bb98b3368c883be51f00b31678
https://git.kernel.org/stable/c/c8f86e375b39cada09fd8cb33dd3bb3641e84a62
https://git.kernel.org/stable/c/c7df90bbda71549bfd981bf478ad04ddfccf4e0d
https://git.kernel.org/stable/c/86948f81964e40cd6472d76a6371e4f297d84db0
https://git.kernel.org/stable/c/23e747fe585830c43095c37c85b2757231c6917f
https://git.kernel.org/stable/c/1bf148fabe6463422195b7cc43b3412533f1dc21
https://git.kernel.org/stable/c/12a63a0f0d17b2d26211b2524ded91a67dd5c99c