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 6847534B1B0 for ; Sat, 25 Jul 2026 08:52:48 +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=1784969569; cv=none; b=Xv/Hf+ZpT9NTCjp48ekiMAlGavoDZYzMLA5ur5mwisEgPf/vnjGp7Y8Sab5ARVm3jb8pc4rLqGNVC6cllsevXQ3elZvx8nK4o+zewxMaOlCVpzj+mr43gPSEwXBaLQsp97J15N7IdNi4SPMbd65aOSmWoLVNwfA1clWtlgVwVKM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784969569; c=relaxed/simple; bh=IY6aygtCuM0yk+gvseBKLin0y83PE5fv2sphPm6vLqI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iuCMR1GCzBMHClGogVHV6CbmzUQqQxOn8zNK9hQWgOc8TN+CRf9HS0f0QJBf3o3X3N9GMYyYY43ZSOLh3t9VgRO8BaOXCEwXa7g9gN5PB6NxtOJpVor+jLkMUbSRR7vecZleWdiDQGeXVDk1XZpyjI0+IYrOrDpUy1ZtVpzTfPc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=A5t8aLkH; 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="A5t8aLkH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BAA51F000E9; Sat, 25 Jul 2026 08:52:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784969568; bh=W1GyNKtWh+zAWCDZH5SkauMQD7GVSKtgP4kJYHeJyvA=; h=From:To:Cc:Subject:Date:Reply-To; b=A5t8aLkHv1NAgqcvwgdrYvxQWH5Bw8JPgtAfEGHa3iMIQ5m0VQBkdHfpDecMaqk5L aggYHjhJFcdEBNbAShGiH5z1kBFe4eknByhrzpeiZ3atasLfx4R81knl4cV8sp3H/a sBMz5MRCLhPzahkHT4/xU/CBj+DrXv3fJVYvi94c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64302: x86/mm: Fix freeing of PMD-sized vmemmap pages Date: Sat, 25 Jul 2026 10:48:39 +0200 Message-ID: <2026072507-CVE-2026-64302-9a28@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=3023; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=b2NtNqq+Hgg/IoxcjeWSdSuHtL/HBBzv5gkyNTfr22A=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkpFe6Tdk5/vX3d4iKu/7GlBUu2rY9iZo/pXN66UXjZ1 PfTuq7u7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJXKlgWHDQ2qPoS++P6Hs6 ey9krRDQCWSxcWRYMPXCFQYp3Z/Tet9XJH1yc7BUUNW8CgA= 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: x86/mm: Fix freeing of PMD-sized vmemmap pages Commit bf9e4e30f353 ("x86/mm: use pagetable_free()"), switched from freeing non-boot page tables through __free_pages() to pagetable_free(). However, the function is also called to free vmemmap pages. Given that vmemmap pages are not page tables, already the page_ptdesc(page) is wrong. But worse, pagetable_free() calls: __free_pages(page, compound_order(page)); Since vmemmap pages are not compound pages (see vmemmap_alloc_block()) -- except for HVO, which doesn't apply here -- only first page of a PMD-sized vmemmap page is freed, leaking the other ones. Fix it by properly decoupling pagetable and vmemmap freeing. free_pagetable() no longer has to mess with SECTION_INFO, as only the vmemmap is marked like that in register_page_bootmem_memmap(). The indentation in remove_pmd_table() is messed up. Fix that while touching it. Bootmem info handling will soon be fixed up. For now, handle it similar to free_pagetable(), just avoiding the ifdef. [ dhansen: changelog munging. More imperative voice ] The Linux kernel CVE team has assigned CVE-2026-64302 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18.7 with commit a1593c90896babf33e947910c7aecb9f50bab993 and fixed in 6.18.39 with commit add1e4112e00b619614784bf630aeebfdefa23e1 Issue introduced in 6.19 with commit bf9e4e30f3538391745a99bc2268ec4f5e4a401e and fixed in 7.1.4 with commit 03f6ecbc446c33b38fd452cd3c494092a8116967 Issue introduced in 6.19 with commit bf9e4e30f3538391745a99bc2268ec4f5e4a401e and fixed in 7.2-rc1 with commit 39406c05f8f150f1685839acd38ffdd69ff92031 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-64302 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/x86/mm/init_64.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/add1e4112e00b619614784bf630aeebfdefa23e1 https://git.kernel.org/stable/c/03f6ecbc446c33b38fd452cd3c494092a8116967 https://git.kernel.org/stable/c/39406c05f8f150f1685839acd38ffdd69ff92031