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 2511342586E for ; Wed, 7 Oct 2026 13:03:25 +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=1791378214; cv=none; b=oTOrZ+OU5FS7aL4BcMFcWIGOUWIfwO/rRouPMQxKuwOREEOiaUY/xUAmtapsNkfnZetl1Gs+GsKkxzBKI+iTKp6+KAn3t0huCQDXW0/asi/sXOe2uojlAvX+jnqe2p8hOkV2lMJjkTpWn+/28Q4w1KFlmQSZXt++PHLQy7TxwbU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791378214; c=relaxed/simple; bh=QaS9TjTC3Kk2SdmNgeRizdrmJRR48Ue34YQh5Gv2A7c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KtowUhOxMM+X8JC+T7rBZrstA6dEMpwnQuKSQsW7/oeeTtC/bM7At1afq8Fg9ft04t32v6/mDx7SxddvbP8mwnAPS/4+vgo/RJfSOGWggQByaEm9gRIPuij4NxR0bk0xZ+Ct7Sw2GCQ/j3Ny7NQFHFBVJz9sx0uKH3UwuECNAuQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ewHharEI; 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="ewHharEI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E0291F0089B; Wed, 7 Oct 2026 13:03:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791378205; bh=icDKuaOcyvy4TEb7mZhuqz5xNN6PWa/GG8yepWtzyG0=; h=From:To:Cc:Subject:Date:Reply-To; b=ewHharEIB5LDMfO/jE65VSM0WYNnwQa5efRtl9vuCw3t7pks4n5w1ClroMv3WrjPr f3zYCPC5f5mZsPhLzyx5I5daGIEmBdDgU1mGaPWg+/n4pjz9FfrAW3baHFeP419opQ Qqq8iv/qv24+BeVi9xTUVelBflAl1ovZIW98Raa4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98373: mm/hugetlb: preserve mremap address delta when skipping page tables Date: Wed, 7 Oct 2026 15:01:50 +0200 Message-ID: <2026100749-CVE-2026-98373-d56e@gregkh> X-Mailer: git-send-email 2.56.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=3090; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EJBM2Y8rAdB+PDK4sepUFiUs0gyL3sZRcWH3/wqfwdA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnHnPb2vJzGbKsvw39yyeErbqyZBdu3tM/TP3FKQKQs+ WJR/PmqjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI8SKGBRcNz64ytHtTnHvQ pEFUOPlBacmLTIZ5Ojb99Vts6w/+ehXAkXN7etwCYblyAA== 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/hugetlb: preserve mremap address delta when skipping page tables move_hugetlb_page_tables() optimizes mremap() by advancing to the last entry in the page table when the source page table does not exist, either initially or after unsharing a PMD table. The common loop increment then steps to the first entry in the next page table. However, the code advances both the source and destination addresses to the last entries in their respective page tables, which is wrong. The destination address must be advanced only by the same amount as the source address. If the source and destination offsets within their page tables differ, the destination address can be advanced too far, causing follow-up issues. Fix this by advancing the destination address by the source advance distance. With a reproducer, we were able to trigger a kernel panic on x86-64. With this fix in place, we can no longer reproduce the issue. The Linux kernel CVE team has assigned CVE-2026-98373 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit e95a9851787bbb3cd4deb40fe8bab03f731852d1 and fixed in 6.12.112 with commit 7a96b0f657c8d799ea5b8e02fc9ec7cca0e6e7ff Issue introduced in 6.0 with commit e95a9851787bbb3cd4deb40fe8bab03f731852d1 and fixed in 6.18.55 with commit 850cc4a84b36a0062dcd0391acd2450e20ab0767 Issue introduced in 6.0 with commit e95a9851787bbb3cd4deb40fe8bab03f731852d1 and fixed in 7.2.9 with commit 480a39b0a12c977ed6e755f3d12a23424c57d11f Issue introduced in 6.0 with commit e95a9851787bbb3cd4deb40fe8bab03f731852d1 and fixed in 7.3-rc5 with commit 9bdad082d44bdcf93716973dcba6be77e8a06e7b 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-98373 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/hugetlb.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/7a96b0f657c8d799ea5b8e02fc9ec7cca0e6e7ff https://git.kernel.org/stable/c/850cc4a84b36a0062dcd0391acd2450e20ab0767 https://git.kernel.org/stable/c/480a39b0a12c977ed6e755f3d12a23424c57d11f https://git.kernel.org/stable/c/9bdad082d44bdcf93716973dcba6be77e8a06e7b