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 4A1103C9EF1 for ; Mon, 10 Aug 2026 12:04:19 +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=1786363460; cv=none; b=LJHL32FfcmK9xJCBffgXlle3VB2sqvoKjRLTcwOiU7tTnJXO7ag/awzrfompaOGwRD5Rqr1pwYaYcfwSwiJCQmkG4vXlut+4Jwmf7zIcAatPoZ5DNq8IijfI1CYI2qqO1FbbWEl1gxA7z2eTXqr8fv/1WIvWhoSMHeJz2VSkKnI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363460; c=relaxed/simple; bh=VGsN2S+tgm+IxJUy7kooTVx30kgxxsUZ9dEIWzTA8mo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=k62waPCLUgKkI3umCK5E+MoilnX8dpMeoQL8vORG1DPlxYnZhXGSLgulC7nnzG2jbSZqqcg0zt66Bm3HbMq4o7Th865Y9qxOzP3hohMRBxpOi3n3X7U77JDSvpE/EJdTIOsWlIXIm8B4bavmniQp5O3Nx4IraLqzemdqntN6k7Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kvB4jnQD; 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="kvB4jnQD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91DF11F000E9; Mon, 10 Aug 2026 12:04:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363459; bh=JHhFxveeS4bPHdlVaY6y3CpL3f0V1WYfJEpkl2H3LvE=; h=From:To:Cc:Subject:Date:Reply-To; b=kvB4jnQDRRU9xE5aE0+XY1ES01GWEt74iMPDrAQXIr+rJ6Ca1AyLUbzP4NvN0jtvg QWrVK+9kSoQcHmqEcYifmhG2Nj1YxcKYn29lZeXHrSqT2irnxVBzMBsXbkpETAJtbk a3noHPoO6E8xtE69cYcOxaVcY93i5/YjxbpqdEjk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68172: arm64: make huge_ptep_get handled unaligned addresses Date: Mon, 10 Aug 2026 13:58:09 +0200 Message-ID: <2026081006-CVE-2026-68172-3462@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=3155; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pHifS5I5xG8hdUOl4awRKr0guXWZT9f9rl5VrMuZt4M=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVeyadeW379/mH3vUMAXWf+W+VXC/3nCmVXc207+X/H bmW7mt+dMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEal4wLDhnH/BVS+12utfp Gf6fPPIjQyc/5GSYZ3rym1QO25moo2/fl3veW5cmovq7GwA= 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: make huge_ptep_get handled unaligned addresses huge_ptep_get() can be handed a virtual address pointing to the middle of a contpmd/contpte mapped hugetlb folio (examples of callers are pagemap_hugetlb_range, page_mapped_in_vma). The arm64 helper rewalks the pgtables in find_num_contig to answer whether the huge pte we have maps a contpmd or a contpte hugetlb folio, and returns CONT_PMDS or CONT_PTES, so that it can collect a/d bits over the contiguous ptes. We can falsely return CONT_PTES instead of CONT_PMDS if the addr is not aligned. On systems where CONT_PTES != CONT_PMDS (meaning page size is 16K), we could collect excess A/D bit state, meaning extra work for the kernel. Even worse, we may iterate beyond the PTE table and dereference a garbage ptep pointer to access physical memory we don't own. Since the ptep pointer is a linear map address, we may run off the end of the linear map or into a hole, dereference a VA not mapped into the kernel pgtables and cause kernel panic. Fix this by aligning the pmdp pointer down to a contpmd base before checking equality with the passed huge pte pointer, to correctly answer whether the huge pte is the base of a contpmd block. The Linux kernel CVE team has assigned CVE-2026-68172 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 29cb80519689706387bde47000dbb2ed91143063 and fixed in 6.18.42 with commit 9cd4b1a52eff330798d668c1775f8bc450776280 Issue introduced in 6.16 with commit 29cb80519689706387bde47000dbb2ed91143063 and fixed in 7.1.6 with commit f3530aec26563f4d483ff31402392961362e9bc6 Issue introduced in 6.16 with commit 29cb80519689706387bde47000dbb2ed91143063 and fixed in 7.2-rc5 with commit f73a8edc2ccc6ec72c37d5c578e7592d2e1f9922 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-68172 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/hugetlbpage.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/9cd4b1a52eff330798d668c1775f8bc450776280 https://git.kernel.org/stable/c/f3530aec26563f4d483ff31402392961362e9bc6 https://git.kernel.org/stable/c/f73a8edc2ccc6ec72c37d5c578e7592d2e1f9922