Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4B61C27586C for ; Wed, 1 Oct 2025 07:47:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759304851; cv=none; b=VSCNZXgxu27jbdcidEF1RXwACei1C2JaHCBg5kk8yT+Ji/JWe96yNiwPyP5IXI5siBoQD/HWDM5rsCMFfFybx+U9uUKfwhIMdoLe4o4jOuoK/nsbB/6nuyxsnTutyssiGCu+GvJXhuZMNVZEfzkmUPUT3TgUliJsLFh1wJeMd7w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759304851; c=relaxed/simple; bh=8dCoh97YLkRNYkkCE50oTqQy7rNfi5oGxKNzjOgDGKM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Y9+eUP8xoDMGW8gefZwoXxKGJKc2vm95YheishxtBXWV2Rry4gnkv0ns4bTJC4J0Nejx5mBPsZ0ZqMxEB5BVMZ90PC/ZHMAKM/DiMQGZTSMlkvDq3wZFhbyMehsKpQ+P0Jh3bEB5LpEsTakrqeJ+b50nmiCmYsr+rVrvNPJwjmM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xgyBhxqR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="xgyBhxqR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADB29C4CEF5; Wed, 1 Oct 2025 07:47:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759304851; bh=8dCoh97YLkRNYkkCE50oTqQy7rNfi5oGxKNzjOgDGKM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xgyBhxqR9WLsBM4RlqTcEn2O9greSen0iDyqO75ax3UZ9mh/u8RoeXAuk8p37XdBG +OuxHHBWy6pVR7Ie8I3MxG160qqv5y7gEfJTc5bjTRpLTeH9X+sY/AD/4Dx2OWWn0/ BfGh8Vu2DOzptE1H/K9pirAMNuKuiy6/HYR+jUtI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39916: mm/damon/reclaim: avoid divide-by-zero in damon_reclaim_apply_parameters() Date: Wed, 1 Oct 2025 09:47:21 +0200 Message-ID: <2025100111-CVE-2025-39916-63c0@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2766; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=F+4K4YCzJVPhEVyox9pbQ3ARvJ5QjvpfvAeSy5kcA5M=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl37jSsYnLV8uYXnpZRZjVFbkf3WT37+9fcsgSYY+5Me nm0a97TjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI71KGBbss+l04lF+EH/58 VmJb5Anui/lqfgzz9F9U2Mzuvlsr9mNNlp+/01LTST5yAA== 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/reclaim: avoid divide-by-zero in damon_reclaim_apply_parameters() When creating a new scheme of DAMON_RECLAIM, the calculation of 'min_age_region' uses 'aggr_interval' as the divisor, which may lead to division-by-zero errors. Fix it by directly returning -EINVAL when such a case occurs. The Linux kernel CVE team has assigned CVE-2025-39916 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit f5a79d7c0c87c8d88bb5e3f3c898258fdf1b3b05 and fixed in 6.1.153 with commit 64dc351e58271c1e9005e42f5216b4f3d7a39b66 Issue introduced in 6.1 with commit f5a79d7c0c87c8d88bb5e3f3c898258fdf1b3b05 and fixed in 6.6.107 with commit 9fe0415156fbde773b31f920201cb70b1f0e40fe Issue introduced in 6.1 with commit f5a79d7c0c87c8d88bb5e3f3c898258fdf1b3b05 and fixed in 6.12.48 with commit 5d6eeb3c683c777ed4538eb3a650bb7da17a7cff Issue introduced in 6.1 with commit f5a79d7c0c87c8d88bb5e3f3c898258fdf1b3b05 and fixed in 6.16.8 with commit 40cb9b38b645126fdd1d6aa3d6811a8ad50ddfa1 Issue introduced in 6.1 with commit f5a79d7c0c87c8d88bb5e3f3c898258fdf1b3b05 and fixed in 6.17 with commit e6b543ca9806d7bced863f43020e016ee996c057 Issue introduced in 6.0.12 with commit fd3e613a912bbb344ee18579cc2ad3329aacba41 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-2025-39916 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/reclaim.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/64dc351e58271c1e9005e42f5216b4f3d7a39b66 https://git.kernel.org/stable/c/9fe0415156fbde773b31f920201cb70b1f0e40fe https://git.kernel.org/stable/c/5d6eeb3c683c777ed4538eb3a650bb7da17a7cff https://git.kernel.org/stable/c/40cb9b38b645126fdd1d6aa3d6811a8ad50ddfa1 https://git.kernel.org/stable/c/e6b543ca9806d7bced863f43020e016ee996c057