Description
In the Linux kernel, the following vulnerability has been resolved:
f2fs: fix defragment writeback range truncation on 32-bit
f2fs_defragment_range() flushes the range it is about to defragment:
filemap_write_and_wait_range(inode->i_mapping,
pg_start << PAGE_SHIFT,
(pg_end << PAGE_SHIFT) - 1);
pg_start and pg_end are pgoff_t, 32 bits on 32-bit kernels, so both
shifts are evaluated in 32 bits and truncated before they are widened to
the loff_t parameters. pg_end is only capped by the file's page count,
so for a file larger than 4 GiB the shift wraps.
For a 5 GiB file pg_end is 1310720 and the range collapses from
[0, 5 GiB) to [0, 1 GiB), leaving the rest of the dirty pages unwritten
before the blocks are moved. For 8 GiB the shift yields 0, the minus one
makes it (loff_t)-1, and the range becomes [0, LLONG_MAX].
The matching call in f2fs_collapse_range() already casts:
filemap_write_and_wait_range(inode->i_mapping,
(loff_t)index << PAGE_SHIFT,
((loff_t)pg_end << PAGE_SHIFT) - 1);
Do the same here. On i386 the shift changes from "shl $0xc,%ecx" to
"shld", i.e. from a 32-bit shift to a double-precision one.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | patch: 7.3.4 | — |
| Linux | Linux | d323d005ac4a2d413128267af76bb9d71f7303da <465d1f88b83828f969113faef1978fe6da0ca17f | — |
| Linux | Linux | patch: 7.4-rc1 | — |
| Linux | Linux | patch: 0 | — |
| Linux | Linux | d323d005ac4a2d413128267af76bb9d71f7303da <92154fe28c3701bebf75176dc5522bec62519a8f | — |
| Linux | Linux | patch: 6.18.63 | — |
| Linux | Linux | 4.5 | — |
| Linux | Linux | d323d005ac4a2d413128267af76bb9d71f7303da <ff39a2d5d66e6cd74f04d40ac36db5952a302271 | — |
| Linux | Linux | patch: 6.12.117 | — |
| Linux | Linux | d323d005ac4a2d413128267af76bb9d71f7303da <159489fafc3f9a5c8b2c2c4778b93b5b7f4ee4b1 | — |
| Linux | Linux | d323d005ac4a2d413128267af76bb9d71f7303da <55e004e52af96801577b6c3c4d52a578f369f4b5 | — |
| Linux | Linux | d323d005ac4a2d413128267af76bb9d71f7303da <16cb21f3f99296c2c93da11158d2c6a3577ba370 | — |
| Linux | Linux | patch: 5.15.226 | — |
| Linux | Linux | patch: 6.6.163 | — |
| Linux | Linux | patch: 6.1.193 | — |
| Linux | Linux | d323d005ac4a2d413128267af76bb9d71f7303da <c58db6d7e4ac63921940abd6c506621de78fd972 | — |
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/465d1f88b83828f969113faef1978fe6da0ca17f
- https://git.kernel.org/stable/c/159489fafc3f9a5c8b2c2c4778b93b5b7f4ee4b1
- https://git.kernel.org/stable/c/c58db6d7e4ac63921940abd6c506621de78fd972
- https://git.kernel.org/stable/c/55e004e52af96801577b6c3c4d52a578f369f4b5
- https://git.kernel.org/stable/c/16cb21f3f99296c2c93da11158d2c6a3577ba370
- https://git.kernel.org/stable/c/ff39a2d5d66e6cd74f04d40ac36db5952a302271
- https://git.kernel.org/stable/c/92154fe28c3701bebf75176dc5522bec62519a8f