Not scored
fuse: don't launder folios of a bad inode
- Severity
- Not scored
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: fuse: don't launder folios of a bad inode fuse_flush() and fuse_writepages() reject writing back dirty data for any inode that has been marked bad, but fuse_launder_folio() doesn't. This can cause the following warning in fuse_write_file_get() to trigger, as reported by syzbot: WARNING: fs/fuse/file.c:2043 at fuse_write_file_get fs/fuse/file.c:2043 [inline] WARNING: fs/fuse/file.c:2043 at fuse_iomap_writeback_range+0x7c8/0x18f0 fs/fuse/file.c:2227 Call Trace: iomap_writeback_folio+0x1526/0x2490 fs/iomap/buffered-io.c:2022 fuse_launder_folio+0x17b/0x240 fs/fuse/file.c:2331 folio_unmap_invalidate+0x4cd/0x830 mm/truncate.c:634 invalidate_inode_pages2_range+0x629/0xb30 mm/truncate.c:726 fuse_open+0x5a6/0x770 fs/fuse/file.c:297 This can be hit on a writeback cache mount: 1) a writeable file is open and a buffered write dirties some pages 2) another thread opens the same file read-only. fuse_open() passes the bad inode check and sends OPEN to the server. 3) a SETATTR reply with the wrong file type marks the inode bad 4) the writeable file is closed. Flush and release skip writeback because the inode is bad. The pages stay dirty but the file gets removed from write_files. 5) server replies to the OPEN. The reply has no FOPEN_KEEP_CACHE, so fuse_open() calls invalidate_inode_pages2(). 6) the invalidation finds the dirty pages and calls fuse_launder_folio(), which finds no wriable file and hits the WARN_ON in fuse_write_file_get(). Instead of trying to write back dirty data for the bad inode, fuse_launder_folio() should return -EIO.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 36cf9ae54b0ead0daab7701a994de3dcd9ef605d before d845e4306bcb56cecf47006e12d4a9c2424b76dc, from 5d069dbe8aaf2a197142558b6fb2978189ba3454 before c469b5b6ed441f39073e1a0c5761e85380ca51f1, from 5d069dbe8aaf2a197142558b6fb2978189ba3454 before e5aa194300693af04753fadef575cc78581c051f, from 5d069dbe8aaf2a197142558b6fb2978189ba3454 before ae29ed93288e8aa0e92fb849a52e68abbe9fcf30, from 5d069dbe8aaf2a197142558b6fb2978189ba3454 before 386a2e9de329e1590152f6f4628ced700af7e73c, from 5d069dbe8aaf2a197142558b6fb2978189ba3454 before d75a44d360b6410eb89d0029b3eb1eea0571e2f9, from 5d069dbe8aaf2a197142558b6fb2978189ba3454 before 5f8b531d751ca2998df4fbabf70855408cee5d01, from 5d069dbe8aaf2a197142558b6fb2978189ba3454 before 01d0f3d294af126f517d92c11e100525537f8be4 and 10 more Not affected: before 5.11, from 5.10.275 up to 5.10.*, from 5.15.226 up to 5.15.*, from 6.1.193 up to 6.1.*, from 6.6.163 up to 6.6.*, from 6.12.118 up to 6.12.* | CVE List |
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-100047 changed 2026-11-30 | CVE Terms of Use |
| NVD | CVE-2026-100047 changed 2026-11-30 | Public domain |