mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.14.326, 4.19.295, 5.10.195, 5.15.132, 5.4.257, 6.1.54, 6.5.4
- CVEs
- CVE-2023-53541
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 03:17 UTC · Revision 1
Source evidence
mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write
core-osv · Original sourcePublished 4 Oct 2025, 15:16 UTC
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.
osv:CVE-2023-53541
Kernel
Fixed versions: 4.14.326, 4.19.295, 5.4.257, 5.10.195, 5.15.132, 6.1.54, 6.5.4
Complete source record
{
"id": "8ec761bb2a1fe529121885fe19d05efb8c244f808f51d36d63a26826c0fb0bac",
"url": "https://osv.dev/vulnerability/CVE-2023-53541",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write",
"summary": "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.",
"evidence": "osv:CVE-2023-53541",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.14.326",
"evidence": "/affected/1/ranges"
},
{
"value": "4.19.295",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.257",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.195",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.132",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.54",
"evidence": "/affected/1/ranges"
},
{
"value": "6.5.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2023-53541",
"aliases": [
"CVE-2023-53541"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "27c5b17cd1b10564fa36f8f51e4b4b41436ecc32"
},
{
"fixed": "2bc3d6ac704ea7263175ea3da663fdbbb7f3dd8b"
},
{
"fixed": "14b1d00520b4d6a4818364334ce472b79cfc8976"
},
{
"fixed": "aae45746f4aee9818296e0500e0703e9d8caa5b8"
},
{
"fixed": "d00b031266514a9395124704630b056a5185ec17"
},
{
"fixed": "2353b7bb61e45e7cfd21505d0c6747ac8c9496a1"
},
{
"fixed": "45fe4ad7f439799ee1b7b5f80bf82e8b34a98d25"
},
{
"fixed": "648d1150a688698e37f7aaf302860180901cb30e"
},
{
"fixed": "5d53244186c9ac58cb88d76a0958ca55b83a15cd"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53541.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.2.0"
},
{
"fixed": "4.14.326"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.15.0"
},
{
"fixed": "4.19.295"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.257"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.195"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.132"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.54"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.5.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53541.json"
}
}
],
"modified": "2026-10-28T02:30:42.075068416Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/14b1d00520b4d6a4818364334ce472b79cfc8976",
"https://git.kernel.org/stable/c/2353b7bb61e45e7cfd21505d0c6747ac8c9496a1",
"https://git.kernel.org/stable/c/2bc3d6ac704ea7263175ea3da663fdbbb7f3dd8b",
"https://git.kernel.org/stable/c/45fe4ad7f439799ee1b7b5f80bf82e8b34a98d25",
"https://git.kernel.org/stable/c/5d53244186c9ac58cb88d76a0958ca55b83a15cd",
"https://git.kernel.org/stable/c/648d1150a688698e37f7aaf302860180901cb30e",
"https://git.kernel.org/stable/c/aae45746f4aee9818296e0500e0703e9d8caa5b8",
"https://git.kernel.org/stable/c/d00b031266514a9395124704630b056a5185ec17",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53541.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-53541",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53541.json"
}
},
"related_cves": [
{
"value": "CVE-2023-53541",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 509768,
"published_at": "2025-10-04T15:16:50.765+00:00"
}