cve.bz

CVE-2023-53541 linux linux kernel: Out-of-bounds Write

7.8 highEPSS 0.2%Fix available

High (7.8) in linux linux kernel. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 6th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-53541 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-53541?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-53541?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-53541 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux4.2 and later

Fixed in

ProductRelease lineFixed in
Linux4.144.14.326
Linux4.194.19.295
Linux5.45.4.257
Linux5.105.10.195
Linux5.155.15.132
Linux6.16.1.54
Linux6.56.5.4
Linuxlater releases6.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12linux6.1.55-1DEBIAN-CVE-2023-53541
Debian13, 14linux6.5.6-1DEBIAN-CVE-2023-53541
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2023-53541
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2023-53541
Ubuntu20.04:LTSlinux5.4.0-169.187UBUNTU-CVE-2023-53541
Ubuntu20.04:LTSlinux-aws5.4.0-1116.126UBUNTU-CVE-2023-53541
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1053.58~20.04.1UBUNTU-CVE-2023-53541
Ubuntu20.04:LTSlinux-azure5.4.0-1121.128UBUNTU-CVE-2023-53541
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1056.64~20.04.1UBUNTU-CVE-2023-53541
Ubuntu20.04:LTSlinux-bluefield5.4.0-1076.82UBUNTU-CVE-2023-53541
Ubuntu20.04:LTSlinux-gcp5.4.0-1120.129UBUNTU-CVE-2023-53541
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1051.59~20.04.1UBUNTU-CVE-2023-53541
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2023-53541
Ubuntu20.04:LTSlinux-hwe-5.15, linux-lowlatency-hwe-5.155.15.0-94.104~20.04.1UBUNTU-CVE-2023-53541
49 more for Ubuntu in the JSON and on Ubuntu's page.
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 1 morekernel-default5.14.21-150400.24.184.1SUSE-SU-2025:4111-1
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6, Linux Enterprise Module for Legacy 15 SP6 and 1 morekernel-default6.4.0-150600.23.78.1SUSE-SU-2025:4140-1
SUSELinux Enterprise High Availability Extension 15 SP7, Linux Enterprise Live Patching 15 SP7, Linux Enterprise Module for Legacy 15 SP7 and 1 morekernel-default6.4.0-150700.53.22.1SUSE-SU-2025:4057-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150400.24.184.1SUSE-SU-2025:4111-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 5 morekernel-default-base5.14.21-150400.24.184.1.150400.24.94.2SUSE-SU-2025:4111-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150500.55.127.1SUSE-SU-2025:4320-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 2 morekernel-default-base5.14.21-150500.55.127.1.150500.6.61.1SUSE-SU-2025:4320-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_461-150400.9.5.1SUSE-SU-2025:4111-1
SUSELinux Enterprise Live Patching 15 SP5kernel-default5.14.21-150500.55.127.1SUSE-SU-2025:4320-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_321-150500.11.3.1SUSE-SU-2025:4320-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_171-150600.1.3.1SUSE-SU-2025:4301-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6_Update_171-150600.13.5.1SUSE-SU-2025:4140-1
27 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6dtb-aarch64, kernel-64kb, kernel-docs and 8 more6.4.0-150600.23.78.1SUSE-SU-2025:4140-1
openSUSELeap 15.6kernel-azure, kernel-syms-azure, kernel-source-azure6.4.0-150600.8.55.1SUSE-SU-2025:4128-1
openSUSELeap 15.6kernel-default-base6.4.0-150600.23.78.1.150600.12.34.2SUSE-SU-2025:4140-1
openSUSELeap 15.6kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more6.4.0-150600.10.58.1SUSE-SU-2025:4301-1
Alpaquita23linux-lts6.1.54-r0BELL-CVE-2023-53541
Alpaquitastreamlinux-lts6.6.58-r0BELL-CVE-2023-53541

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

NAND flash uses OOB (out-of-band) areas to store metadata like error correction codes alongside the main data. The Broadcom NAND driver's OOB write function processes this data in word-sized chunks for efficiency. However, when the OOB buffer size isn't evenly divisible by the word size, the final iteration of the write loop doesn't have a full word of data available. The code still attempts to read a complete word from the source buffer, reading past the buffer's end into whatever memory happens to follow it. Depending on what lies beyond the buffer, this could read uninitialized memory, crash due to page faults, or incorporate garbage values into the OOB data written to flash. The fix adds explicit length checks and pads with 0xff (the NAND erase value) when reaching the buffer end. This primarily affects systems using Broadcom NAND controllers with OOB operations.

Red Hat's mitigation

To mitigate this issue, prevent the brcmnand module from being loaded. See https://access.redhat.com/solutions/41278 for instructions on blacklisting kernel modules.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernelNot affected
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernelNot affected
Red Hat Enterprise Linux 9kernel-rtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-53541.

References

Check your stackJSON