Linux
fs: afs: revert mmap_prepare() change
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 9d5403b1036cdcd4be0f9f5568612c0e60e73d79, < f51f85c044809fbd39ac8ae07ac99bc43ce32bd5
- >= 9d5403b1036cdcd4be0f9f5568612c0e60e73d79, < 48c7a0eaeea41da17d1d84d2d7a4c40be122b246
- >= 9d5403b1036cdcd4be0f9f5568612c0e60e73d79, < fbfc6578eaca12daa0c09df1e9ba7f2c657b49da
Fixed in f51f85c044809fbd39ac8ae07ac99bc43ce32bd5, 48c7a0eaeea41da17d1d84d2d7a4c40be122b246, fbfc6578eaca12daa0c09df1e9ba7f2c657b49da
- 6.17
Fixed in 0, 6.18.27, 7.0.4, 7.1
Mitigation
Upgrade Linux to f51f85c044809fbd39ac8ae07ac99bc43ce32bd5 or 48c7a0eaeea41da17d1d84d2d7a4c40be122b246 or fbfc6578eaca12daa0c09df1e9ba7f2c657b49da or later.
Upgrade Linux to 0 or 6.18.27 or 7.0.4 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.