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 6AA7124678C for ; Sat, 16 Aug 2025 10:58:37 +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=1755341917; cv=none; b=uawGlnc3GYsZsMGupqy+kp7og5/1RJLNrcgGAcDgyy7EIUoqQrLWyl+M4pgoYF1y5zpS6XQAfnShL9FvGKohY1JMUtVEXAlkXrkv4bi7uu7YqELt78QmCmie9w9qKgbfvx5VUB+jdJNcQvuyucJZsVRJfaDdt+ML3rdcKMupnNI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755341917; c=relaxed/simple; bh=zmf01mz3SJwvVBW2Bavl2ophmiB/JIlJ193xGRwAyI0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=P2+tRBI58wNFvIy7vWFI818ux7kgD8oW/cd8Xd6EA/npKIAituHvvg3aW0XO5TPLoeNEq5+gLpDzzWVTLDShXa/KA8IAzG9R1kn03oGHvdfP50HmChyMovBwfyr46bLAK+V9eE7J3a2vGK+yDDucUkh6qfzAW+zNPYg+Rt8RYL8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NQvXguZ6; 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="NQvXguZ6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92792C4CEEF; Sat, 16 Aug 2025 10:58:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755341917; bh=zmf01mz3SJwvVBW2Bavl2ophmiB/JIlJ193xGRwAyI0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NQvXguZ6E7nRIw4ZrX4haiKlJTkAlfYmuHWFDPnw2uTQcST18l+oGRYSOqojKU7s0 AY/RHvPG/2aYuOKbILGa7eHOBPiNhsg3Dsc/Lcit5AoGcbhb33wr6M8HNQaUjo11/E VW/6FqxLRgHRmDuO4JirK+1wotX+DpOdnEc3xvjE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38519: mm/damon: fix divide by zero in damon_get_intervals_score() Date: Sat, 16 Aug 2025 12:58:01 +0200 Message-ID: <2025081654-CVE-2025-38519-6cc4@gregkh> X-Mailer: git-send-email 2.50.1 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=2311; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UW61pse0Y9o5sk9aGLKw3yFAAlhjKMThnNgfOOdeuDg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkLUoxEtLdq3o3Pa1yg8aPhWfbVdYkfmNassijiF7a6N 0Xsbvj0jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgIQzzD/ILfmnfeZG9Jjs9b si/OZXJ16IIDegzzHV96P7v4xWRza9jp66IBm/PuLpqUAAA= 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: fix divide by zero in damon_get_intervals_score() The current implementation allows having zero size regions with no special reasons, but damon_get_intervals_score() gets crashed by divide by zero when the region size is zero. [ 29.403950] Oops: divide error: 0000 [#1] SMP NOPTI This patch fixes the bug, but does not disallow zero size regions to keep the backward compatibility since disallowing zero size regions might be a breaking change for some users. In addition, the same crash can happen when intervals_goal.access_bp is zero so this should be fixed in stable trees as well. The Linux kernel CVE team has assigned CVE-2025-38519 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit f04b0fedbe714f822bd066b319a60faa39a985a1 and fixed in 6.15.7 with commit ca4bb9ac706f05ead8ac1cce7b8245fc0645a687 Issue introduced in 6.15 with commit f04b0fedbe714f822bd066b319a60faa39a985a1 and fixed in 6.16 with commit bd225b9591442065beb876da72656f4a2d627d03 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-38519 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/ca4bb9ac706f05ead8ac1cce7b8245fc0645a687 https://git.kernel.org/stable/c/bd225b9591442065beb876da72656f4a2d627d03