Description
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
mmap_prepare") with conflict resolution to account for changes in commit
ea52cb24cd3f ("mm/hugetlbfs: update hugetlbfs to use mmap_prepare").

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

There is no risk of a merge causing a similar issues, as
VMA_DONTEXPAND_BIT 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 vma_set_flags() and do not call vma_start_write() as
vm_flags_set() 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.
Published: 2026-06-09
Score: 5.5 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel commit that attempted to use mmap_prepare for hugetlbfs mismanaged the allocation of VMA lock structures. If a memory allocation fails after mmap_prepare is invoked, the lock associated with the hugeTLB virtual memory area may leak, creating an uncontrolled increase in kernel-held locks. This lock leak can exhaust lock resources, degrading system stability or enabling a denial‑of‑service attack. The weakness is a failure to release a critical kernel resource, matching CWE‑400 and CWE‑772.

Affected Systems

Linux kernel versions that incorporated the problematic commit before its revert are affected. The vulnerability resides in the hugetlbfs memory manager within the kernel’s virtual memory subsystem. Any distribution kernel that included this commit prior to the revert is at risk, as the vendor product list is generic Linux kernel.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, and no EPSS data is available. The vulnerability is not listed in CISA KEV. The issue arises during a failed mmap operation; therefore, the most likely attack vector is local or privileged, where an attacker can induce mmap failures in hugetlbfs to exhaust lock resources, resulting in a denial of service. Because the commit has been reverted, the risk persists only until a system is updated to a patched kernel that includes the revert.

Generated by OpenCVE AI on June 10, 2026 at 02:12 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the system’s Linux kernel to the latest stable release that contains the revert of the problematic commit, thereby removing the lock‑allocation bug.
  • If a custom kernel is used, rebuild the kernel after removing or disabling the commit that introduced the mmap_prepare misuse.
  • Reduce the use of hugeTLB memory or configure limits on the number of hugeTLB mappings to mitigate the potential for lock leaks until an official patch is applied.

Generated by OpenCVE AI on June 10, 2026 at 02:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 10 Jun 2026 02:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-400

Wed, 10 Jun 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


Tue, 09 Jun 2026 13:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-400

Tue, 09 Jun 2026 12:30:00 +0000

Type Values Removed Values Added
Description 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 mmap_prepare") with conflict resolution to account for changes in commit ea52cb24cd3f ("mm/hugetlbfs: update hugetlbfs to use mmap_prepare"). The patch incorrectly handled hugetlb VMA lock allocation at the mmap_prepare stage, where a failed allocation occurring after mmap_prepare is called might result in the lock leaking. There is no risk of a merge causing a similar issues, as VMA_DONTEXPAND_BIT 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 vma_set_flags() and do not call vma_start_write() as vm_flags_set() 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.
Title Revert "mm/hugetlbfs: update hugetlbfs to use mmap_prepare"
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-09T12:11:11.181Z

Reserved: 2026-05-13T15:03:33.112Z

Link: CVE-2026-46318

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-06-09T13:16:37.107

Modified: 2026-06-09T13:16:37.107

Link: CVE-2026-46318

cve-icon Redhat

Severity : Low

Publid Date: 2026-06-09T00:00:00Z

Links: CVE-2026-46318 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-06-10T02:15:19Z

Weaknesses