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

fs: afs: revert mmap_prepare() change

Partially reverts commit 9d5403b1036c ("fs: convert most other
generic_file_*mmap() users to .mmap_prepare()").

This is because the .mmap invocation establishes a refcount, but
.mmap_prepare is called at a point where a merge or an allocation failure
might happen after the call, which would leak the refcount increment.

Functionality is being added to permit the use of .mmap_prepare in this
case, but in the interim, we need to fix this.
Published: 2026-05-27
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel contained a regression where the .mmap_prepare() routine could leave a reference count increment unreleased. The commit that reoriented generic_file_*mmap() calls back to .mmap_prepare() was partially reverted to avoid a situation where a merge or allocation failure might happen after the call, leading to a refcount leak. The resulting leak could, over time, consume kernel resources and potentially cause a denial‑of‑service scenario if unchecked. This weakness maps to the classic memory‑leak category.

Affected Systems

Systems running the Linux kernel are impacted, regardless of distribution, as the issue resides in core kernel source. No specific version range is supplied, so any kernel that applied the commit in question before the series of patches including this revert may be vulnerable.

Risk and Exploitability

With no published CVSS or EPSS score and no KEV listing, the exact risk remains undefined. The developers identified a refcount leak that could lead to resource exhaustion; however, no public exploit evidence is known. The absence of EPSS data does not confirm low exploitation probability, but recent kernel fixes suggest it is likely mitigated in newer releases. Until the fix is applied, administrators should treat the possibility of a denial‑of‑service vector as a concern.

Generated by OpenCVE AI on May 27, 2026 at 21:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel version that includes the revert of the problematic commit or a later revision where the refcount leak is fixed.
  • If immediate upgrade is not possible, disable or restrict unprivileged use of mmap for AFS file systems or enforce stricter access controls on kernel functions that use .mmap_prepare().
  • Monitor kernel memory usage and refcount metrics for abnormal growth, and apply additional kernel patches or reverts if necessary.

Generated by OpenCVE AI on May 27, 2026 at 21:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 27 May 2026 21:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-391

Wed, 27 May 2026 14:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: fs: afs: revert mmap_prepare() change Partially reverts commit 9d5403b1036c ("fs: convert most other generic_file_*mmap() users to .mmap_prepare()"). This is because the .mmap invocation establishes a refcount, but .mmap_prepare is called at a point where a merge or an allocation failure might happen after the call, which would leak the refcount increment. Functionality is being added to permit the use of .mmap_prepare in this case, but in the interim, we need to fix this.
Title fs: afs: revert mmap_prepare() change
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-05-27T12:59:06.853Z

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

Link: CVE-2026-46100

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-27T14:17:31.877

Modified: 2026-05-27T14:48:03.013

Link: CVE-2026-46100

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-27T21:30:34Z

Weaknesses