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 0290836605D for ; Sat, 15 Aug 2026 06:18:45 +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=1786774726; cv=none; b=ZRPu8U8mZZfEbbjSWmiinhAtMqWX7mAIRVmcMcW7IiAhibTdHHrrHzNmNoFifvb6o59Ofr7+lOVIvj8dXYEDDOhtQHjO8VR8YemjELv0s6YNbIS3rVIujvJnh0MguuRyXf0/4PgCUIuyNOHD6QiJ/BR3x9Bc8hfqXW/eWa+ML9o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774726; c=relaxed/simple; bh=wO7Z2M5PYhalylHf62kMah9vWz+Kmcna2wn6EWdEAk8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DcF26e9jedRGzRPClUI4A5ef/Y6eV4jcOR9ETAwIFGlF5UAMNw8T1KU7cn31NmH1DYjaDzMj9zfqisjXfI0ToUb93j30e5MEqqzEnc2bjM6wD2pCw15xlR6U7PkccNB57Lf4iR3oHNJk8ICvM0womToDRqO4yGLl6um+2yRAC+U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=i8sDQu8n; 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="i8sDQu8n" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 471781F000E9; Sat, 15 Aug 2026 06:18:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774724; bh=hA3T0j1yQ6DiU4p+GKJd9PP4sRzQFXDOLCDAyQ4bWqI=; h=From:To:Cc:Subject:Date:Reply-To; b=i8sDQu8ndfYs6sZCA6DZUtt+gieT5c4Vcke5dKJJOmjP3hSNOYYfEwVH5ZoqZ1WC3 XJjTMbAX713/QbusW9iNqtfb0b34nH7CcaBF4uw2Fkig7OkvL2vSX9NlGDZCw3M+RZ mmQpGsV6F3lpoSgwCmKxSNgEmdJ9xMku5UMqExyo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72212: mm/memory_hotplug: fix incorrect altmap passing in error path Date: Sat, 15 Aug 2026 15:04:51 +0900 Message-ID: <2026081545-CVE-2026-72212-c4ed@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=3069; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PaCL+q2izKZkBJt7KcZ88+BG0YSFLuln57lv1RExPZc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDCed6z6GvLwX6PNUUUOwfH+x6eU+dcXzGTbb5KpDP MRT7qzviGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIk87WCYXynrK2F0cmqx60S1 Cx/O/Nr144qELMOCsznX+2ZlvN62aUvKf+6Ohwtc2Wa/AgA= 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/memory_hotplug: fix incorrect altmap passing in error path In create_altmaps_and_memory_blocks(), when arch_add_memory() succeeds with memmap_on_memory enabled, the vmemmap pages are allocated from params.altmap. If create_memory_block_devices() subsequently fails, the error path calls arch_remove_memory() with a NULL altmap instead of params.altmap. This is a bug that could lead to memory corruption. Since altmap is NULL, vmemmap_free() falls back to freeing the vmemmap pages into the system buddy allocator via free_pages() instead of the altmap. arch_remove_memory() then immediately destroys the physical linear mapping for this memory. This injects unowned pages into the buddy allocator, causing machine checks or memory corruption if the system later attempts to allocate and use those freed pages. Fix this by passing params.altmap to arch_remove_memory() in the error path. The Linux kernel CVE team has assigned CVE-2026-72212 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 6b8f0798b85aa529011570369db985a788f3003f and fixed in 6.12.97 with commit 3833e6abdbbfb59ec8203a84a84206cb7ffb41ac Issue introduced in 6.8 with commit 6b8f0798b85aa529011570369db985a788f3003f and fixed in 6.18.40 with commit 722e6c54bde6391fb95f0357f555aca887c7b18c Issue introduced in 6.8 with commit 6b8f0798b85aa529011570369db985a788f3003f and fixed in 7.1.5 with commit 2f9e3ec17c3d2093c664c00a027588a446c39894 Issue introduced in 6.8 with commit 6b8f0798b85aa529011570369db985a788f3003f and fixed in 7.2-rc1 with commit 2fac4afa0e2e68841334c78c1821e49f74fbc66a 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-72212 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/memory_hotplug.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/3833e6abdbbfb59ec8203a84a84206cb7ffb41ac https://git.kernel.org/stable/c/722e6c54bde6391fb95f0357f555aca887c7b18c https://git.kernel.org/stable/c/2f9e3ec17c3d2093c664c00a027588a446c39894 https://git.kernel.org/stable/c/2fac4afa0e2e68841334c78c1821e49f74fbc66a