CVE-2026-90004: mm/damon/core: handle region split failure in apply_min_nr_regions()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
mm/damon/core: handle region split failure in apply_min_nr_regions()
damon_apply_min_nr_regions() repeatedly split each region until its size becomes small enough to meet the user-defined low limit of the number of regions. The loop assumes the split operation (damon_split_region_at()) will always succeed and create the new region. But the operation could silently fail for memory allocation failures, for example.
If such failure happens and the region was the last region, the linked list-based next region fetching returns invalid pointer. As a result, invalid memory dereference and corruption could happen. Even if the corner case is handled, it imposes stress to the allocator by trying split regions for other targets. Fix the issue by breaking all the loops for any region split failure.
This means there could be a min_nr_regions violation. It will only rarely happen since the allocation is arguably too small to fail. Even if it happens, it is only temporal. damon_apply_min_nr_regions() will be called again after the aggregation interval.
The user impact of the issue should be minor, since the allocation is arguably too small to fail. But, it could still theoretically happen, and the consequence is very bad.
This issue was discovered [1] by Sashiko.
The Linux kernel CVE team has assigned CVE-2026-90004 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.1 with commit b1029f29eb1d5fbf07fa8db9b5e7ab6d9813ad67 and fixed in 7.2.5 with commit 463ebd63e8ee3d73022a18915ea43320dad8aad7 Issue introduced in 7.1 with commit b1029f29eb1d5fbf07fa8db9b5e7ab6d9813ad67 and fixed in 7.3-rc1 with commit c608748607620f331196ed0ba9fe4017892c1457
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-90004
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:
mm/damon/core.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/463ebd63e8ee3d73022a18915ea43320dad8aad7 https://git.kernel.org/stable/c/c608748607620f331196ed0ba9fe4017892c1457