CVE-2026-46318

MEDIUM

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

Title source: cna
STIX 2.1

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.

Scores

CVSS v3 5.5
EPSS 0.0010
EPSS Percentile 1.0%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

Status published
Products (10)
linux/Kernel 6.19.0 - 7.0.12linux
Linux/Linux < 6.19
Linux/Linux 6.19
Linux/Linux 7.0.12 - 7.0.*
Linux/Linux 7.1
Linux/Linux 7.1-rc6
Linux/Linux ea52cb24cd3fb121283754ab82b2cb3044609359 - 3af5fc3f0ac98c624c109c8c0796fa46e814344c
Linux/Linux ea52cb24cd3fb121283754ab82b2cb3044609359 - 83f9efcce93f8574be2279090ee2aec58b86cda7
linux/linux_kernel 7.1 rc1 (5 CPE variants)
linux/linux_kernel 6.19 - 7.0.12
Published Jun 09, 2026
Tracked Since Jun 09, 2026