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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | patch: 6.1.193 | — |
| Linux | Linux | 3db1de0e582c358dd013f3703cd55b5fe4076436 <06dfe4a7eb696d868b196c2a49873142f19bd862 | — |
| Linux | Linux | patch: 6.18.63 | — |
| Linux | Linux | 5.19 | — |
| Linux | Linux | patch: 6.6.163 | — |
| Linux | Linux | patch: 7.3.4 | — |
| Linux | Linux | 5.18.18 <5.19 | — |
| Linux | Linux | 3db1de0e582c358dd013f3703cd55b5fe4076436 <41f17fbbd2199e6cfc6edcbce6f7e33885c1aea8 | — |
| Linux | Linux | patch: 6.12.117 | — |
| Linux | Linux | 3db1de0e582c358dd013f3703cd55b5fe4076436 <5e93214d8ccbf8fd0e955faf4f4070df1f4175e8 | — |
| Linux | Linux | patch: 0 | — |
| Linux | Linux | 3db1de0e582c358dd013f3703cd55b5fe4076436 <8dca8bd7f58137b11d7b6b64b44f7c1cd5ed8817 | — |
| Linux | Linux | patch: 7.4-rc1 | — |
| Linux | Linux | 3db1de0e582c358dd013f3703cd55b5fe4076436 <e40ae42d992ebec22e073a19d62555635b96aa1e | — |
| Linux | Linux | 3db1de0e582c358dd013f3703cd55b5fe4076436 <3c818534db37f5cfe72c19a78a436bddcb13a177 | — |
| Linux | Linux | 6db52f1944417c2601182a591a704e2f119c5215 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 7.3.4-1 | — |
| Debian 13 | linux | 6.12.117-1 | — |
| Debian 12 | linux | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 24.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu 26.10 | linux +8 | No fix yet | — |
| Ubuntu 26.04 LTS | linux +14 | No fix yet | — |
| Ubuntu 24.04 LTS | linux +52 | No fix yet | — |
Show 19 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | linux +59 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gke +28 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 24.04 LTS | linux-realtime +3 | No fix yet | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime +2 | No fix yet | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 24.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-preview 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | linux +21 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | linux +12 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | linux +7 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | linux +3 | No fix yet | — |
Advisories 1
- WID-SEC-2026-4889 Linux Kernel: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Nov 30, 2026
References
- https://git.kernel.org/stable/c/e40ae42d992ebec22e073a19d62555635b96aa1e
- https://git.kernel.org/stable/c/3c818534db37f5cfe72c19a78a436bddcb13a177
- https://git.kernel.org/stable/c/8dca8bd7f58137b11d7b6b64b44f7c1cd5ed8817
- https://git.kernel.org/stable/c/5e93214d8ccbf8fd0e955faf4f4070df1f4175e8
- https://git.kernel.org/stable/c/41f17fbbd2199e6cfc6edcbce6f7e33885c1aea8
- https://git.kernel.org/stable/c/06dfe4a7eb696d868b196c2a49873142f19bd862