Description

In the Linux kernel, the following vulnerability has been resolved: f2fs: disallow mmap write and data-modifying fallocate on atomic files Stores through a shared writable mapping and fallocate with FALLOC_FL_PUNCH_HOLE, FALLOC_FL_ZERO_RANGE, FALLOC_FL_COLLAPSE_RANGE or FALLOC_FL_INSERT_RANGE do not go through ->write_begin, so they bypass the COW inode and modify the original inode directly. Reject them while the file is in atomic write mode, as fallocate already does for pinned and compressed files. A write fault gets SIGBUS and fallocate gets -EOPNOTSUPP. fallocate without these flags only preallocates blocks and stays allowed. f2fs_vm_page_mkwrite() cannot take inode_lock, so check the flag under invalidate_lock, and hold invalidate_lock in f2fs_ioc_start_atomic_write() from the flush until the flag is set. Otherwise a fault could check the flag, then start_atomic_write could flush and set the flag, and the fault would dirty the folio afterwards.

Affected products

VendorProductVersions
LinuxLinux3db1de0e582c358dd013f3703cd55b5fe4076436 to <e40ae42d992ebec22e073a19d62555635b96aa1e [affected]; 3db1de0e582c358dd013f3703cd55b5fe4076436 to <3c818534db37f5cfe72c19a78a436bddcb13a177 [affected]; 3db1de0e582c358dd013f3703cd55b5fe4076436 to <8dca8bd7f58137b11d7b6b64b44f7c1cd5ed8817 [affected]; 3db1de0e582c358dd013f3703cd55b5fe4076436 to <5e93214d8ccbf8fd0e955faf4f4070df1f4175e8 [affected]; 3db1de0e582c358dd013f3703cd55b5fe4076436 to <41f17fbbd2199e6cfc6edcbce6f7e33885c1aea8 [affected]; 3db1de0e582c358dd013f3703cd55b5fe4076436 to <06dfe4a7eb696d868b196c2a49873142f19bd862 [affected]; 6db52f1944417c2601182a591a704e2f119c5215 [affected]; 5.18.18 to <5.19 [affected]
LinuxLinux5.19 [affected]; 0 to <5.19 [unaffected]; 6.1.193 to <=6.1.* [unaffected]; 6.6.163 to <=6.6.* [unaffected]; 6.12.117 to <=6.12.* [unaffected]; 6.18.63 to <=6.18.* [unaffected]; 7.3.4 to <=7.3.* [unaffected]; 7.4-rc1 to <=* [unaffected]

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Assess this vulnerability

Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.

Browse all CVE security advisories · Symaro cybersecurity services

Generated from the official CVE List on 01 Dec 2026 08:04 UTC.