mm/hugetlb: preserve mremap address delta when skipping page tables
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.
CVE-2026-98373
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-98373
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "e95a9851787bbb3cd4deb40fe8bab03f731852d1",
"lessThan": "cf73ef2a761df9329af116c905a7a94b317921e4",
"versionType": "git"
},
{
"status": "affected",
"version": "e95a9851787bbb3cd4deb40fe8bab03f731852d1",
"lessThan": "7a96b0f657c8d799ea5b8e02fc9ec7cca0e6e7ff",
"versionType": "git"
},
{
"status": "affected",
"version": "e95a9851787bbb3cd4deb40fe8bab03f731852d1",
"lessThan": "850cc4a84b36a0062dcd0391acd2450e20ab0767",
"versionType": "git"
},
{
"status": "affected",
"version": "e95a9851787bbb3cd4deb40fe8bab03f731852d1",
"lessThan": "480a39b0a12c977ed6e755f3d12a23424c57d11f",
"versionType": "git"
},
{
"status": "affected",
"version": "e95a9851787bbb3cd4deb40fe8bab03f731852d1",
"lessThan": "9bdad082d44bdcf93716973dcba6be77e8a06e7b",
"versionType": "git"
}
],
"programFiles": [
"mm/hugetlb.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.0"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.0",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.112",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.55",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.9",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"mm/hugetlb.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-98373
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #48875 · Revision 1
- Added to Heist Feed
- Publisher date