Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1373413D76 for ; Tue, 9 Jun 2026 12:36:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781008583; cv=none; b=Y2AFzFbM54seCLCzCYdhYoKsCw+BG+H+Q3EMK8OK2Ebz3y3gz5MV1wUCIhJwdfLcwT5TAtn+e5iCO+oWmB/CvbwypjkoJQbf4qeLvWLPSsN/x/5jhbRDGhIspFh5s0615Wc369MZn+TUIomCwHI5m7KkIH1G3X7BFFUR+SooXRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781008583; c=relaxed/simple; bh=8I5TSVHfs/I8mQKbHfyD9R0/8VAOmc0L6Lbvkcjmfzc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CwpSbNxLdboNYAIGZOH2vrlGBFmkSZFK7AnK50FB26dwdxfpn0CRtJm5TE0CPHfYTGzQ4p22j8LVvstLg/6ap7SBEVudNtM+Ga78Z1GCGGBFGT+XnUOC1XEA4HyQGdSNFt0iCFu0cbQyU07lOmhFnThgcmUzVgP/7mMvjCNHNLw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bykNIAlA; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="bykNIAlA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA5FE1F00893; Tue, 9 Jun 2026 12:36:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1781008582; bh=5QJtBFQwQoNfWA0h8YRysKn9mpQ79DopyAqVhy+886g=; h=From:To:Cc:Subject:Date:Reply-To; b=bykNIAlAzZPeNmH31hZffnlSwSONgG5F7W6F8CvNoEgUcLRgZJTC35BHq9a/nSdMU 2f0fLy/GD02oyuBhaw4Tt/kIEp0a2GOxW+QDJ61HbnIH0YnylcupoAPM9ecQrgmPsK 6ytNlc2XZwniLBNU3Ch6ILMaNBQVuUdaQqfQO7A0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-52905: mm/damon/core: disallow non-power of two min_region_sz on damon_start() Date: Tue, 9 Jun 2026 14:35:14 +0200 Message-ID: <2026060913-CVE-2026-52905-6528@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2469; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=G8xf4liWsKKvZse0Pv3ieyF2uggG6kpUsZJwRGW7MEk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkaHI2s+WosZeXPqlLKDvet2G3YI/e0t2SZ0sml2g0zs uRUBD92xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwES45BkWHMy6Ps2hUOdCSryZ wBsJxsnvvrxZybDgaImB1GsvCZPOzJobOpczd1602V8CAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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