CVE-2026-46318: Revert "mm/hugetlbfs: update hugetlbfs to use mmap_prepare"

Published Jun 9, 2026
·
Updated

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

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

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.

Affected Software

7 affected components
Linux Linux kernel
Linux Linux kernel>=6.19<7.0.12
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3
Linux Linux kernel=7.1-rc4
Linux Linux kernel=7.1-rc5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch ea52cb24cd3f

Event History

Jun 9, 2026
CVE Published
via MITRE·12:11 PM
Data Sourced
via MITRE·12:11 PM
Description
Data Sourced
via NVD·01:16 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-46318?

The severity of CVE-2026-46318 is rated as 16.

2

How do I fix CVE-2026-46318?

To fix CVE-2026-46318, it is recommended to update to the latest version of the Linux kernel.

3

What systems are affected by CVE-2026-46318?

CVE-2026-46318 affects the Linux kernel's hugetlbfs implementation.

4

Is CVE-2026-46318 a critical vulnerability?

Yes, CVE-2026-46318 is considered a critical vulnerability due to its severity score.

5

What does CVE-2026-46318 involve?

CVE-2026-46318 involves the reversion of a previous kernel commit related to hugetlbfs functionality.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203