CVE-2026-46100

fs: afs: revert mmap_prepare() change

State
Published
Severity
7.8 High
Published
May 27, 2026
Updated
Aug 5, 2026
Reserved
May 13, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 9d5403b1036cdcd4be0f9f5568612c0e60e73d79 to before f51f85c044809fbd39ac8ae07ac99bc43ce32bd5Affected
  • 9d5403b1036cdcd4be0f9f5568612c0e60e73d79 to before 48c7a0eaeea41da17d1d84d2d7a4c40be122b246Affected
  • 9d5403b1036cdcd4be0f9f5568612c0e60e73d79 to before fbfc6578eaca12daa0c09df1e9ba7f2c657b49daAffected
LinuxLinux
  • 6.17Affected
  • before 6.17Not affected
  • 6.18.27 through 6.18.*Not affected
  • 7.0.4 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.