CVE-2026-46318

Source
https://cve.org/CVERecord?id=CVE-2026-46318
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46318.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-46318
Downstream
Related
Published
2026-06-09T12:11:11.181Z
Modified
2026-07-10T03:54:04.193116627Z
Summary
Revert "mm/hugetlbfs: update hugetlbfs to use mmap_prepare"
Details

In the Linux kernel, the following vulnerability has been resolved:

Revert "mm/hugetlbfs: update hugetlbfs to use mmap_prepare"

This reverts commit ea52cb24cd3f ("mm/hugetlbfs: update hugetlbfs to use mmapprepare") with conflict resolution to account for changes in commit ea52cb24cd3f ("mm/hugetlbfs: update hugetlbfs to use mmapprepare").

The patch incorrectly handled hugetlb VMA lock allocation at the mmapprepare stage, where a failed allocation occurring after mmapprepare is called might result in the lock leaking.

There is no risk of a merge causing a similar issues, as VMADONTEXPANDBIT is set for hugetlb mappings.

As a first step in addressing this issue, simply revert the change so we can rework how we do this having corrected the underlying issues.

We maintain the VMA flags changes as best we can, accounting for the fact that we were working with a VMA descriptor previously and propagating like-for-like changes for this.

Note that we invoke vmasetflags() and do not call vmastartwrite() as vmflagsset() does. This is OK as it's being done in an .mmap hook where the VMA is not yet linked into the tree so nobody else can be accessing it.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46318.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ea52cb24cd3fb121283754ab82b2cb3044609359
Fixed
3af5fc3f0ac98c624c109c8c0796fa46e814344c
Fixed
83f9efcce93f8574be2279090ee2aec58b86cda7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46318.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.12

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46318.json"