CVE-2026-92487: exfat: fix valid_size extension over a shared writable mapping
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
exfat: fix valid_size extension over a shared writable mapping
When a shared writable mapping has its valid_size extended by a buffered write or a page fault, exfat zeroes the page-cache gap below the new valid_size. A store through the mapping can race with this zeroing and be overwritten.
Fix this by zeroing the gap lazily. Drop ->map_pages so that every first write fault goes through exfat_page_mkwrite(), which advances valid_size to cover the faulting page. With fault-around enabled, a store could install a writable PTE, skip ->page_mkwrite(), and land past valid_size without advancing it. Extending valid_size one faulting page at a time also leaves never-written pages in a large mapping alone.
The gap is filled with block granularity, zeroing only the not-uptodate blocks and preserving blocks that may hold data stored through the mapping. On the buffered-write path the invalidate lock is held and the gap is unmapped before zeroing, so a racing store re-faults and, under the inode lock, completes only after the gap has been zeroed and valid_size covers it.
The Linux kernel CVE team has assigned CVE-2026-92487 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.2 with commit 82a81a7352bcf5f2756ac33d47ee0582737e9a85 and fixed in 7.2.6 with commit 24f20986b253c3e4eb13ebe3c2007d1d352408a6 Issue introduced in 7.2 with commit 82a81a7352bcf5f2756ac33d47ee0582737e9a85 and fixed in 7.3-rc1 with commit 1135704ed22f54873eb0498a232611d9eca30dd4
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-92487
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/exfat/exfat_fs.h
fs/exfat/file.c
fs/exfat/iomap.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/24f20986b253c3e4eb13ebe3c2007d1d352408a6 https://git.kernel.org/stable/c/1135704ed22f54873eb0498a232611d9eca30dd4