mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32 · < 45fe4ad7f439799ee1b7b5f80bf82e8b34a98d25| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write
When the oob buffer length is not in multiple of words, the oob write function does out-of-bounds read on the oob source buffer at the last iteration. Fix that by always checking length limit on the oob buffer read and fill with 0xff when reaching the end of the buffer to the oob registers.
From the CVE record · Linux
The Linux kernel’s brcmnand OOB write function can read past the end of its source buffer when the OOB buffer length is not a multiple of words. The input does not specify how an attacker could trigger this condition or whether access or user interaction is required.
Engineers running Linux kernels that use the brcmnand driver should check their versions; affected versions are not specified.