# CVE-2023-53541: mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-10-04T15:16:50.765Z
- Modified: 2026-06-17T06:45:34.007Z
- Weaknesses: CWE-787
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32 before 2bc3d6ac704ea7263175ea3da663fdbbb7f3dd8b; from 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32 before 14b1d00520b4d6a4818364334ce472b79cfc8976; from 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32 before aae45746f4aee9818296e0500e0703e9d8caa5b8; from 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32 before d00b031266514a9395124704630b056a5185ec17; from 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32 before 2353b7bb61e45e7cfd21505d0c6747ac8c9496a1; from 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32 before 45fe4ad7f439799ee1b7b5f80bf82e8b34a98d25; from 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32 before 648d1150a688698e37f7aaf302860180901cb30e; from 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32 before 5d53244186c9ac58cb88d76a0958ca55b83a15cd; 4.2 (not affected: before 4.2; from 4.14.326 up to 4.14.*; from 4.19.295 up to 4.19.*; from 5.4.257 up to 5.4.*; from 5.10.195 up to 5.10.*; from 5.15.132 up to 5.15.*; from 6.1.54 up to 6.1.*; from 6.5.4 up to 6.5.*; from 6.6 up to *)
- linux linux_kernel: from 4.2 before 4.14.326; from 4.15 before 4.19.295; from 4.20 before 5.4.257; from 5.5 before 5.10.195; from 5.11 before 5.15.132; from 5.16 before 6.1.54; from 6.2 before 6.5.4

## References

- <https://git.kernel.org/stable/c/2bc3d6ac704ea7263175ea3da663fdbbb7f3dd8b> (patch)
- <https://git.kernel.org/stable/c/14b1d00520b4d6a4818364334ce472b79cfc8976> (patch)
- <https://git.kernel.org/stable/c/aae45746f4aee9818296e0500e0703e9d8caa5b8> (patch)
- <https://git.kernel.org/stable/c/d00b031266514a9395124704630b056a5185ec17> (patch)
- <https://git.kernel.org/stable/c/2353b7bb61e45e7cfd21505d0c6747ac8c9496a1> (patch)
- <https://git.kernel.org/stable/c/45fe4ad7f439799ee1b7b5f80bf82e8b34a98d25> (patch)
- <https://git.kernel.org/stable/c/648d1150a688698e37f7aaf302860180901cb30e> (patch)
- <https://git.kernel.org/stable/c/5d53244186c9ac58cb88d76a0958ca55b83a15cd> (patch)

## Sources

- CVE List: [CVE-2023-53541](https://www.cve.org/CVERecord?id=CVE-2023-53541), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53541](https://nvd.nist.gov/vuln/detail/CVE-2023-53541), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53541 · Whole record: https://cve.day/CVE-2023-53541.json · Rebuilt by cve.day 2026-11-25T22:58:34.932Z
