Skip to contentSkip to conversation

CVE-2026-52905: mm/damon/core: disallow non-power of two min_region_sz on damon_start()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 9

lore
Share & tools
lore
#0 lore raw

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

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

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

mm/damon/core: disallow non-power of two min_region_sz on damon_start()

Commit d8f867fa0825 ("mm/damon: add damon_ctx->min_sz_region") introduced a bug that allows unaligned DAMON region address ranges. Commit c80f46ac228b ("mm/damon/core: disallow non-power of two min_region_sz") fixed it, but only for damon_commit_ctx() use case. Still, DAMON sysfs interface can emit non-power of two min_region_sz via damon_start(). Fix the path by adding the is_power_of_2() check on damon_start().

The issue was discovered by sashiko [1].

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

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

	Issue introduced in 6.18 with commit d8f867fa0825fb3e358457566d7326d8aab2406a and fixed in 6.18.30 with commit 1de2db19a6028abe7d905875922faef5b873de67
	Issue introduced in 6.18 with commit d8f867fa0825fb3e358457566d7326d8aab2406a and fixed in 7.0.4 with commit 89b6226b6c2a4add3939f361653a47c212d6ab75
	Issue introduced in 6.18 with commit d8f867fa0825fb3e358457566d7326d8aab2406a and fixed in 7.1-rc1 with commit 95093e5cb4c5b50a5b1a4b79f2942b62744bd66a

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-52905

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/1de2db19a6028abe7d905875922faef5b873de67
	https://git.kernel.org/stable/c/89b6226b6c2a4add3939f361653a47c212d6ab75
	https://git.kernel.org/stable/c/95093e5cb4c5b50a5b1a4b79f2942b62744bd66a