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 2FA74393791 for ; Tue, 16 Dec 2025 13:31:13 +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=1765891874; cv=none; b=JYP+F+ZtK+ytPSdKV4HmEkrfSGgiEUtf8DllHlezo2oLdy8pkNxKmD5uTHsrA7tEcMadRLDUqkaXAm8J7DhpqcGkUf/m3gdI2KtN8t+dY8OrMKTnO8nwvOGg+sLtBQzC/iqUvdxH54Nh5tpDFlPXWykGDCkmvK7nVdbRGo53XCc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765891874; c=relaxed/simple; bh=MJ4A2GwojmkthAkDtqz9TYyQZT7Lol8T6a6MB7siKjM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=er3QAjOdfSDClmn4cb4zEYailVH3blj9UwuRG+Nc4SfnkUyes8xzETeU+8q5lqTXDBj5SWRIet78u/KnOOdFhlwMvlL3AUwR63NWUKFpFlfoISIL6Hb8jh6yJqspGj6sCbC91awhiQHZWSmhkfJGoo31ZmbTaKJXVrHibPTXLB4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iRKNCM6v; 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="iRKNCM6v" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 381CEC4CEF5; Tue, 16 Dec 2025 13:31:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765891873; bh=MJ4A2GwojmkthAkDtqz9TYyQZT7Lol8T6a6MB7siKjM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=iRKNCM6vaNKa3UaQ1UP84D6sLae4vxWS64scay3W4boHfcIJocEyMm8mESU8XpvzA z5f1Ft3UDo0r3piASWo3F2K3xi/n08VvD5dhRM/EeGQypaUaTXdFHCl3lOV/HJgQyC aan8ESiBbBcaQ2rQLuK7p9Rv07Ta8xCifSAp3Jic= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40353: arm64: mte: Do not warn if the page is already tagged in copy_highpage() Date: Tue, 16 Dec 2025 14:30:40 +0100 Message-ID: <2025121636-CVE-2025-40353-fb93@gregkh> X-Mailer: git-send-email 2.52.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=2343; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ey+TaE0rxvfKesOm4CRnntPDqXSVZTW1QCaFK+v+nM8=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOcX/FagrdeoV/O6dzePdHXxfrCKm9xFos4BT5cZ6Fm PCLq+s7YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCL2Kgzz7LaxNZnMC0tUuliW NYH/3K2EWabFDPPDpe4dyznOOv+bPc/9g4nql9pWvXkNAA== 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: arm64: mte: Do not warn if the page is already tagged in copy_highpage() The arm64 copy_highpage() assumes that the destination page is newly allocated and not MTE-tagged (PG_mte_tagged unset) and warns accordingly. However, following commit 060913999d7a ("mm: migrate: support poisoned recover from migrate folio"), folio_mc_copy() is called before __folio_migrate_mapping(). If the latter fails (-EAGAIN), the copy will be done again to the same destination page. Since copy_highpage() already set the PG_mte_tagged flag, this second copy will warn. Replace the WARN_ON_ONCE(page already tagged) in the arm64 copy_highpage() with a comment. The Linux kernel CVE team has assigned CVE-2025-40353 to this issue. Affected and fixed versions =========================== Fixed in 6.12.56 with commit 5ff5765a1fc526f07d3bbaedb061d970eb13bcf4 Fixed in 6.17.6 with commit 0bbf3fc6e9211fce9889fe8efbb89c220504d617 Fixed in 6.18 with commit b98c94eed4a975e0c80b7e90a649a46967376f58 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-40353 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: arch/arm64/mm/copypage.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/5ff5765a1fc526f07d3bbaedb061d970eb13bcf4 https://git.kernel.org/stable/c/0bbf3fc6e9211fce9889fe8efbb89c220504d617 https://git.kernel.org/stable/c/b98c94eed4a975e0c80b7e90a649a46967376f58