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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-10-04T15:16:50.765Z
- **Modified:** 2026-06-17T06:45:34.007Z

## Who should check

- Anyone running Linux \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< 2bc3d6ac704ea7263175ea3da663fdbbb7f3dd8b; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< 14b1d00520b4d6a4818364334ce472b79cfc8976; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< aae45746f4aee9818296e0500e0703e9d8caa5b8; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< d00b031266514a9395124704630b056a5185ec17; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< 2353b7bb61e45e7cfd21505d0c6747ac8c9496a1; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< 45fe4ad7f439799ee1b7b5f80bf82e8b34a98d25; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< 648d1150a688698e37f7aaf302860180901cb30e; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< 5d53244186c9ac58cb88d76a0958ca55b83a15cd
- Anyone running Linux 4.2

## 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.

## Affected and fixed versions

- Linux: \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< 2bc3d6ac704ea7263175ea3da663fdbbb7f3dd8b; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< 14b1d00520b4d6a4818364334ce472b79cfc8976; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< aae45746f4aee9818296e0500e0703e9d8caa5b8; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< d00b031266514a9395124704630b056a5185ec17; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< 2353b7bb61e45e7cfd21505d0c6747ac8c9496a1; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< 45fe4ad7f439799ee1b7b5f80bf82e8b34a98d25; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< 648d1150a688698e37f7aaf302860180901cb30e; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< 5d53244186c9ac58cb88d76a0958ca55b83a15cd (cvelist)
- Linux: 4.2 (cvelist)

## Mitigation

- Upgrade Linux to 5d53244186c9ac58cb88d76a0958ca55b83a15cd or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53541. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53541.md
Affected: Linux >= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, < 2bc3d6ac704ea7263175ea3da663fdbbb7f3dd8b; >= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, < 14b1d00520b4d6a4818364334ce472b79cfc8976; >= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, < aae45746f4aee9818296e0500e0703e9d8caa5b8; >= 27c5b17cd1b10564fa36f8f…
Fixed in: Linux 2bc3d6ac704ea7263175ea3da663fdbbb7f3dd8b, Linux 14b1d00520b4d6a4818364334ce472b79cfc8976, Linux 2353b7bb61e45e7cfd21505d0c6747ac8c9496a1, Linux 45fe4ad7f439799ee1b7b5f80bf82e8b34a98d25, Linux 648d1150a688698e37f7aaf302860180901cb30e, Linux 5d53244186c9ac58cb88d76a0958ca55b83a15cd

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53541 being exploited?

There is no confirmed exploitation: CVE-2023-53541 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53541?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53541?

Linux \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< 2bc3d6ac704ea7263175ea3da663fdbbb7f3dd8b; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< 14b1d00520b4d6a4818364334ce472b79cfc8976; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< aae45746f4aee9818296e0500e0703e9d8caa5b8; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< d00b031266514a9395124704630b056a5185ec17; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< 2353b7bb61e45e7cfd21505d0c6747ac8c9496a1; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< 45fe4ad7f439799ee1b7b5f80bf82e8b34a98d25; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< 648d1150a688698e37f7aaf302860180901cb30e; \>= 27c5b17cd1b10564fa36f8f51e4b4b41436ecc32, \< 5d53244186c9ac58cb88d76a0958ca55b83a15cd; Linux 4.2.

### Is there a fix for CVE-2023-53541?

Yes. Fixed in Linux 2bc3d6ac704ea7263175ea3da663fdbbb7f3dd8b, Linux 14b1d00520b4d6a4818364334ce472b79cfc8976, Linux 2353b7bb61e45e7cfd21505d0c6747ac8c9496a1, Linux 45fe4ad7f439799ee1b7b5f80bf82e8b34a98d25, Linux 648d1150a688698e37f7aaf302860180901cb30e, Linux 5d53244186c9ac58cb88d76a0958ca55b83a15cd. Upgrade Linux to 5d53244186c9ac58cb88d76a0958ca55b83a15cd or later.

### How do I check if I'm affected by CVE-2023-53541?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53541>

HTML: <https://flawdb.com/CVE-2023-53541> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53541>
