Skip to contentSkip to conversation

CVE-2026-53388: fuse: re-lock request before replacing page cache folio

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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().

The Linux kernel CVE team has assigned CVE-2026-53388 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 2.6.35 with commit ce534fb052928ce556639d7ecf01cbf4e01321e1 and fixed in 5.15.211 with commit 7c18691e0cfda29672f79bafde8abdb7710674f6
	Issue introduced in 2.6.35 with commit ce534fb052928ce556639d7ecf01cbf4e01321e1 and fixed in 6.1.177 with commit 5927b43a4f8d89e86930f524bf63e9c7e66f61b4
	Issue introduced in 2.6.35 with commit ce534fb052928ce556639d7ecf01cbf4e01321e1 and fixed in 6.6.144 with commit 030fe3e9d8abdee303dd7e9e42f45082d382a407
	Issue introduced in 2.6.35 with commit ce534fb052928ce556639d7ecf01cbf4e01321e1 and fixed in 6.12.95 with commit 46473ddccdc5065033e397d6e62c280dbcd3d9c2
	Issue introduced in 2.6.35 with commit ce534fb052928ce556639d7ecf01cbf4e01321e1 and fixed in 6.18.37 with commit af2892249d982a1c036ca456cc135374e68b6677
	Issue introduced in 2.6.35 with commit ce534fb052928ce556639d7ecf01cbf4e01321e1 and fixed in 7.0.14 with commit 0223f452532d9cd8a5e87c45de828fd93c99bd25
	Issue introduced in 2.6.35 with commit ce534fb052928ce556639d7ecf01cbf4e01321e1 and fixed in 7.1.2 with commit e28db6ac4792d065ab32565fd9f0a2361c3d4666
	Issue introduced in 2.6.35 with commit ce534fb052928ce556639d7ecf01cbf4e01321e1 and fixed in 7.2-rc1 with commit a078484921052d0badd827fcc2770b5cfc1d4120

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-53388

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
fs/fuse/dev.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/7c18691e0cfda29672f79bafde8abdb7710674f6
	https://git.kernel.org/stable/c/5927b43a4f8d89e86930f524bf63e9c7e66f61b4
	https://git.kernel.org/stable/c/030fe3e9d8abdee303dd7e9e42f45082d382a407
	https://git.kernel.org/stable/c/46473ddccdc5065033e397d6e62c280dbcd3d9c2
	https://git.kernel.org/stable/c/af2892249d982a1c036ca456cc135374e68b6677
	https://git.kernel.org/stable/c/0223f452532d9cd8a5e87c45de828fd93c99bd25
	https://git.kernel.org/stable/c/e28db6ac4792d065ab32565fd9f0a2361c3d4666
	https://git.kernel.org/stable/c/a078484921052d0badd827fcc2770b5cfc1d4120