Linux
fuse: re-lock request before replacing page cache folio
In the Linux kernel, the following vulnerability has been resolved: fuse: re-lock request before replacing page cache folio fuse_try_move_folio() unlocks the request on entry but does not re-lock it on the success path. This means fuse_chan_abort() can end the request and free the fuse_io_args (eg fuse_readpages_end()) while the subsequent copy chain logic after fuse_try_move_folio() accesses the fuse_io_args, leading to use-after-free issues. Fix this by calling lock_request() before replace_page_cache_folio(). This ensures the request is locked on the success path which will prevent the fuse_io_args from being freed while the later copying logic runs, and also ensures that the ap->folios[i]->mapping is never null since ap->folios[i] will always point to the newfolio after replace_page_cache_folio().
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= ce534fb052928ce556639d7ecf01cbf4e01321e1, < 7c18691e0cfda29672f79bafde8abdb7710674f6
- >= ce534fb052928ce556639d7ecf01cbf4e01321e1, < 5927b43a4f8d89e86930f524bf63e9c7e66f61b4
- >= ce534fb052928ce556639d7ecf01cbf4e01321e1, < 030fe3e9d8abdee303dd7e9e42f45082d382a407
- >= ce534fb052928ce556639d7ecf01cbf4e01321e1, < 46473ddccdc5065033e397d6e62c280dbcd3d9c2
- >= ce534fb052928ce556639d7ecf01cbf4e01321e1, < af2892249d982a1c036ca456cc135374e68b6677
- >= ce534fb052928ce556639d7ecf01cbf4e01321e1, < 0223f452532d9cd8a5e87c45de828fd93c99bd25
- >= ce534fb052928ce556639d7ecf01cbf4e01321e1, < e28db6ac4792d065ab32565fd9f0a2361c3d4666
- >= ce534fb052928ce556639d7ecf01cbf4e01321e1, < a078484921052d0badd827fcc2770b5cfc1d4120
Fixed in 7c18691e0cfda29672f79bafde8abdb7710674f6, 5927b43a4f8d89e86930f524bf63e9c7e66f61b4, 030fe3e9d8abdee303dd7e9e42f45082d382a407, 46473ddccdc5065033e397d6e62c280dbcd3d9c2, af2892249d982a1c036ca456cc135374e68b6677, 0223f452532d9cd8a5e87c45de828fd93c99bd25, e28db6ac4792d065ab32565fd9f0a2361c3d4666, a078484921052d0badd827fcc2770b5cfc1d4120
- 2.6.35
Fixed in 0, 5.15.211, 6.1.177, 6.6.144, 6.12.95, 6.18.37, 7.0.14, 7.1.2, 7.2
Mitigation
Upgrade Linux to 7c18691e0cfda29672f79bafde8abdb7710674f6 or 5927b43a4f8d89e86930f524bf63e9c7e66f61b4 or 030fe3e9d8abdee303dd7e9e42f45082d382a407 or 46473ddccdc5065033e397d6e62c280dbcd3d9c2 or af2892249d982a1c036ca456cc135374e68b6677 or 0223f452532d9cd8a5e87c45de828fd93c99bd25 or e28db6ac4792d065ab32565fd9f0a2361c3d4666 or a078484921052d0badd827fcc2770b5cfc1d4120 or later.
Upgrade Linux to 0 or 5.15.211 or 6.1.177 or 6.6.144 or 6.12.95 or 6.18.37 or 7.0.14 or 7.1.2 or 7.2 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.