Description
In the Linux kernel, the following vulnerability has been resolved:
iomap: don't lose a fiemap iteration error when emitting the last extent
iomap_fiemap() emits extents one behind: iomap_fiemap_iter() flushes the
previous extent and remembers the current one, and the remembered extent
is written with FIEMAP_EXTENT_LAST after the iteration loop.
That final flush overwrites ret, so when ->iomap_begin() fails partway
through the iteration the error is replaced by the result of
iomap_to_fiemap() (zero on success) and iomap_fiemap() returns success
with a truncated extent list whose last entry is wrongly marked as the
last extent in the file. The pre-iomap_iter code returned the error
from inside the loop, before flushing the pending extent.
Check for the iteration error before flushing the pending extent, so
that real errors are propagated and only a successful iteration emits
the final FIEMAP_EXTENT_LAST extent. -ENOENT (no mapping) is still not
an error, and the pending extent is still emitted in that case.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 7892386d35715d14c469ec98b6deab037e2e2232 <0d0104adc2c8316433b660cdf6d182a09881864f | — |
| Linux | Linux | 7892386d35715d14c469ec98b6deab037e2e2232 <512d832beec8d2487e058befb90258e2bce89319 | — |
| Linux | Linux | patch: 6.1.193 | — |
| Linux | Linux | 7892386d35715d14c469ec98b6deab037e2e2232 <5d6f21538389fa2b9fa143afdebb4cbe170ec900 | — |
| Linux | Linux | patch: 7.4-rc1 | — |
| Linux | Linux | 5.15 | — |
| Linux | Linux | 7892386d35715d14c469ec98b6deab037e2e2232 <d6c4a5d2cc6ad695bdc89ce6ac028eac17484b9a | — |
| Linux | Linux | 7892386d35715d14c469ec98b6deab037e2e2232 <29d93cc25328ec27d34098c722ef837778612dd7 | — |
| Linux | Linux | 7892386d35715d14c469ec98b6deab037e2e2232 <635bacc0c05d369a0bea6855b354aa08cc0ab690 | — |
| Linux | Linux | patch: 5.15.226 | — |
| Linux | Linux | 7892386d35715d14c469ec98b6deab037e2e2232 <904e6876bb9924c8ce8eb83786c68e6404bdb042 | — |
| Linux | Linux | patch: 6.18.63 | — |
| Linux | Linux | patch: 0 | — |
| Linux | Linux | patch: 7.3.4 | — |
| Linux | Linux | patch: 6.6.163 | — |
| Linux | Linux | patch: 6.12.117 | — |
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/904e6876bb9924c8ce8eb83786c68e6404bdb042
- https://git.kernel.org/stable/c/635bacc0c05d369a0bea6855b354aa08cc0ab690
- https://git.kernel.org/stable/c/29d93cc25328ec27d34098c722ef837778612dd7
- https://git.kernel.org/stable/c/512d832beec8d2487e058befb90258e2bce89319
- https://git.kernel.org/stable/c/d6c4a5d2cc6ad695bdc89ce6ac028eac17484b9a
- https://git.kernel.org/stable/c/5d6f21538389fa2b9fa143afdebb4cbe170ec900
- https://git.kernel.org/stable/c/0d0104adc2c8316433b660cdf6d182a09881864f