Skip to contentSkip to conversation

CVE-2026-80723: of: reserved_mem: prevent OOB when too many dynamic regions are defined

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 28

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

of: reserved_mem: prevent OOB when too many dynamic regions are defined

On boot, fdt_scan_reserved_mem() saves each dynamically-placed /reserved-memory subnode into a local array of size MAX_RESERVED_REGIONS.

If the device tree defines more than MAX_RESERVED_REGIONS dynamically-placed regions, fdt_scan_reserved_mem() writes past the end of the local array.

Add a bounds check that logs an error and skips the excess regions, restoring the original behavior.

The Linux kernel CVE team has assigned CVE-2026-80723 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.12.13 with commit 9a0fe62f93ede02c27aaca81112af1e59c8c0979 and fixed in 6.12.103 with commit 68d27250c9e81ab7764603e346c2b1017cb53adf
	Issue introduced in 6.13 with commit 8a6e02d0c00e7b62e6acb74146878bb91e9e7e31 and fixed in 6.18.44 with commit cfa7e2734877330d6c10e0f33953905486c4530c
	Issue introduced in 6.13 with commit 8a6e02d0c00e7b62e6acb74146878bb91e9e7e31 and fixed in 7.1.8 with commit de8ccbd6bf4efe7a059e2c483789936009e10f42
	Issue introduced in 6.13 with commit 8a6e02d0c00e7b62e6acb74146878bb91e9e7e31 and fixed in 7.2 with commit db3dbdfea1b8f38774419c5c2c14e4b81c48708d

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-80723

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/of/of_reserved_mem.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/68d27250c9e81ab7764603e346c2b1017cb53adf
	https://git.kernel.org/stable/c/cfa7e2734877330d6c10e0f33953905486c4530c
	https://git.kernel.org/stable/c/de8ccbd6bf4efe7a059e2c483789936009e10f42
	https://git.kernel.org/stable/c/db3dbdfea1b8f38774419c5c2c14e4b81c48708d