mtd: rawnand: validate ONFI extended parameter page sections
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6dcbe0cdd83fb5f77be4f44c9e06c535281c375a · < c8f86e375b39cada09fd8cb33dd3bb3641e84a62| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s raw NAND detection code can read beyond an allocated buffer when an ONFI extended parameter page is shorter than expected or contains malformed sections. This occurs while parsing the page; the input does not establish whether an attacker can supply one or whether authentication or user interaction is required.
Engineers running Linux kernels with raw NAND devices should check whether their kernel is affected; affected versions were not provided.