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 762D43CA481 for ; Mon, 10 Aug 2026 12:03:58 +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=1786363441; cv=none; b=FmX0JDvzaMKWomUXxBrIevIeM83S/MNYkzzCXumKMQkNCcJjfaB8pKesXy1/mpynnHa4sltdxAdEcOTehhc1LVV3LRfifu3Lbk8GiRA+ZPMZYmkIIC4+zsHx8CeGZDShSmNKZeSEV0W+PEjwjNh9F7ASqQfkMgXpsEhiytRTjO8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363441; c=relaxed/simple; bh=0CSq+jvdTB1bs5nPmMKGULYkcF7CfbNP1K0oIBVkjLs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CmGn3HrfFgUP5nfC4U0j8Fz47/867IPBrtdqhHzvQSB89011QdLBaf5ZtV7wtnD7lMPd6RfBnoe9tPeaY8vtHwVFKZQglEl/QGPh91rfXzTtMXzNQqLdcjCWhPdr2/NB/OyR1Pn88QTeRh4giwBd5A1dLv/fBHTLaeRMFSOrka0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=REhb5Bhh; 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="REhb5Bhh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E88C91F00A3A; Mon, 10 Aug 2026 12:03:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363436; bh=gD7Zg3QLaWr8HMxH2AWH2q+xFAmYxWW5lPIuORxEmAg=; h=From:To:Cc:Subject:Date:Reply-To; b=REhb5Bhh2LH5MTRQzC35F6fW8YXWD1PF8uZJuDLpwnNPve60WUZgNnWiSZKeHVB0s z1JLd86j/ymX14dy1wOugtdojYvIaqucDUsLMv0UWZ0uZ2ptGf+5MWuApvzpUI7EZk YkUo7S30BlH/n2Z1OAwLkZpjdCYBrnyaN+uvaJ00= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68163: mm/page_vma_mapped: fix device-private PMD handling Date: Mon, 10 Aug 2026 13:58:00 +0200 Message-ID: <2026081004-CVE-2026-68163-b4e1@gregkh> X-Mailer: git-send-email 2.55.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=3291; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8EsGKBRz1iSrf9Op83OFZKlwwvSxBS7lOuNfhSfk0M8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVeybMuibjbzytwfHaX24BpYlneq4a/93DcSn3ssq09 h0fXXtjO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAij8sZ5oq3iFuW2jieCDrf YGp+LWfr0pCwzQwLVp1Qu1QeGaGqlfhCZFF0Yr5VZz8TAA== 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/page_vma_mapped: fix device-private PMD handling Commit 65edfda6f3f2 ("mm/rmap: extend rmap and migration support device-private entries") introduced the concept of device-private PMD entries, but did not correctly update the rmap walk code to account for them. As a result, when page_vma_mapped_walk() encounters device-private PMD entries, it takes no action other than to acquire the PMD lock and exit. However this is highly problematic for two reasons - firstly, device private entries possess a PFN so check_pmd() needs to be called to ensure an overlapping PFN range. Secondly, and more importantly, if PVMW_MIGRATION is set the caller assumes the returned entry is a migration entry, resulting in memory corruption when the caller tries to interpret the device private entry as such. In addition, commit 146287290023 ("mm/huge_memory: implement device-private THP splitting") allowed device private PMDs to be split like THP mappings, but again did not update this code path. As a result, we might race a PMD split prior to acquiring the PMD lock. This patch addresses all of these issues by invoking check_pmd(), ensuring PMVW_MIGRATION is not set and checks whether a split raced us we do for PMD THP and migration entries. Instead of checking for a subset of the cases after taking the pmd_lock(), put device-private along with pmd_trans_huge() and pmd_is_migration_entry(). Also remove thp_migration_supported() as it is already guarded by pmd_is_migration_entry(). [akpm@linux-foundation.org: fix Raspberry Pi 1 build, per David] The Linux kernel CVE team has assigned CVE-2026-68163 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 65edfda6f3f2e58f757485a056e4f1775a1404a8 and fixed in 7.1.6 with commit ab6209f4b48a98ef14d6766acdb62aa9bb32e670 Issue introduced in 6.19 with commit 65edfda6f3f2e58f757485a056e4f1775a1404a8 and fixed in 7.2-rc5 with commit f84ca9b1888d8fce7dfefe0e750fa971f8797486 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-68163 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/page_vma_mapped.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/ab6209f4b48a98ef14d6766acdb62aa9bb32e670 https://git.kernel.org/stable/c/f84ca9b1888d8fce7dfefe0e750fa971f8797486