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 EEBEE405C32 for ; Wed, 27 May 2026 13:04:21 +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=1779887063; cv=none; b=FbrJC0QQq5Mj0NQIOq6bDTNfJ/Uz/OnEvsEylw/lVPCjXxIo2rKJtxKM2papo33lUntlA6urBIqNhqG16ie5zoVAQYcAg90ZBjP3zAOXA24M0qg/m5nFHL+JvQMMNV5Y9XrQF6kR5PMpIJELpaYYmFlOe3mYGhKKJzwJ8+jzmL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887063; c=relaxed/simple; bh=wm34wQUXzRW9EdvkIEHaCJ3TRLhBIRiHq7rcm7rr48I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nfJRbt6GR6fnW/PKgpGM2ym4aPHHsYCaffbnSGeBfrEwSMZzmmiOxOXm+ptpdjmjJbALtUP7wCgCJlZ9IDaxzH93uyLOO8FN500OHcbEdW5Ux12YVGKyOSTWqdm7Xhf+ahVfu5SyuVgSf44JpQ5wXHHPvSvwbmVTySd3Z0j+zsU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=H85z9tOF; 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="H85z9tOF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FE8F1F000E9; Wed, 27 May 2026 13:04:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779887061; bh=svgQ0wlxZFgJQ1Vn8tEPc0bsI3IJOOLLTRDAIEiT50Y=; h=From:To:Cc:Subject:Date:Reply-To; b=H85z9tOFK4JeqBgrxtjCycqGMlYpAU41irTUckG+iepTdJXBm7aWtdqqSBWwpHiE+ LmJih/ZG6sePDDQLybMninQ5/aMaT8ZYRf3hk8dobDHP1xXF9e5r7KZ+s/pxIt7KnT /cSeZtQ5AgK+oVIN61CLvxZfCXxIcfbxUeWoiVuw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46067: mm/damon/core: validate damos_quota_goal->nid for node_memcg_{used,free}_bp Date: Wed, 27 May 2026 14:59:58 +0200 Message-ID: <2026052757-CVE-2026-46067-aef8@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=2548; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HrGHzzxsMlSEgzSyyNRHniVnVqKOu2J7ijGV5ZnVB7c=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliryZOmcTO5Rv1xO1lif2XzoapczIPfJL4/vvAkw+bp yvvnXXbpiOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmEpbHsGCRzpos4etbXz86 0CKy/7+ZuaEs91OG+VEzJQ5zNd+vXR3u1LrOSkJeJ59xGwA= 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: validate damos_quota_goal->nid for node_memcg_{used,free}_bp Users can set damos_quota_goal->nid with arbitrary value for node_memcg_{used,free}_bp. But DAMON core is using those for NODE-DATA() without a validation of the value. This can result in out of bounds memory access. The issue can actually triggered using DAMON user-space tool (damo), like below. $ sudo mkdir /sys/fs/cgroup/foo $ sudo ./damo start --damos_action stat --damos_quota_interval 1s \ --damos_quota_goal node_memcg_used_bp 50% -1 /foo $ sudo dmseg [...] [ 524.181426] Unable to handle kernel paging request at virtual address 0000000000002c00 Fix this issue by adding the validation of the given node id. If an invalid node id is given, it returns 0% for used memory ratio, and 100% for free memory ratio. The Linux kernel CVE team has assigned CVE-2026-46067 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit b74a120bcf50787e5b9a2c3dcff999f9836ce1db and fixed in 7.0.4 with commit da10db73ada26345244ea5dc52f974692bd05f66 Issue introduced in 6.19 with commit b74a120bcf50787e5b9a2c3dcff999f9836ce1db and fixed in 7.1-rc1 with commit a34dac6482e53e2c76944f25b1489b9b7da3a6e6 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-46067 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/da10db73ada26345244ea5dc52f974692bd05f66 https://git.kernel.org/stable/c/a34dac6482e53e2c76944f25b1489b9b7da3a6e6