Description
In the Linux kernel, the following vulnerability has been resolved:
backing-file: always end a queued write
Writes to a loop device with direct I/O on an overlay file make the
next freeze of the upper filesystem hang for ever.
Every kiocb_start_write() needs a kiocb_end_write(). For a write that
is queued, vfs_iocb_iter_write() leaves the end to the completion, and
backing_aio_rw_complete() only calls kiocb_end_write() when IOCB_WRITE
is set in the flags copied from the submitter. In-kernel submitters
such as loop do not set that flag, so each queued write keeps the
freeze protection of the backing filesystem.
Direct writes to a loop device with direct I/O backed by an overlay
file left fsfreeze of the ext4 upper filesystem, and a later touch
there, blocked in D state. It takes write access to the node of the
loop device, which root has by default, to attach the file and to write.
The fix used here is to mark a write in struct backing_aio and to call
kiocb_end_write() on completion of every marked write.
Reproduced under qemu without KVM, on v7.3-rc6-21-g602042bf29f6 with
earlier fixes of this series applied, with and without this change,
once each. The kernel was not changed for the run. With this change
fsfreeze finished in about a second. Not run: the nvmet and LIO file
backends, which do not set IOCB_WRITE either, FUSE passthrough, and an
xfs upper filesystem.
[amir: use aio->is_write to explicitly mark a write aio]
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | patch: 5.10.275 | — |
| Linux | Linux | 2406a307ac7ddfd7effeeaff6947149ec6a95b4e <4fbdca296d8b54d680784282bf007945454820fc | — |
| Linux | Linux | patch: 7.3.4 | — |
| Linux | Linux | patch: 6.18.64 | — |
| Linux | Linux | 2406a307ac7ddfd7effeeaff6947149ec6a95b4e <9fef91f9e63b66743d8ada7436c44adf3f85859d | — |
| Linux | Linux | patch: 7.4-rc1 | — |
| Linux | Linux | patch: 0 | — |
| Linux | Linux | 2406a307ac7ddfd7effeeaff6947149ec6a95b4e <501ed625cdd25d5a264e1a553439963f9a810b63 | — |
| Linux | Linux | 2406a307ac7ddfd7effeeaff6947149ec6a95b4e <7219ab069818c456a46e2303948f286e9f199947 | — |
| Linux | Linux | 2406a307ac7ddfd7effeeaff6947149ec6a95b4e <f3a432558686e2a5338e228acb2a464fff5995d8 | — |
| Linux | Linux | patch: 6.1.193 | — |
| Linux | Linux | 5.6 | — |
| Linux | Linux | 2406a307ac7ddfd7effeeaff6947149ec6a95b4e <c3fd39ceaaeb43b45a6ffddea62b9f09eeb3aeb7 | — |
| Linux | Linux | patch: 5.15.226 | — |
| Linux | Linux | patch: 6.6.163 | — |
| Linux | Linux | patch: 6.12.118 | — |
| Linux | Linux | 2406a307ac7ddfd7effeeaff6947149ec6a95b4e <3bf132de175803dcea0d6598b47d467cb6a2a1b5 | — |
| Linux | Linux | 2406a307ac7ddfd7effeeaff6947149ec6a95b4e <627cdcbc2a2eceb0452078a0c14370f9f1f17a91 | — |
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.118-1 | — |
| Debian 12 | linux | No fix yet | — |
| Debian 12 | linux-6.12 | 6.12.118-1~deb12u1 | DLA-4961-1 |
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 10 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-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-preview 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | linux-aws-5.15 +10 | No fix yet | — |
Advisories 2
- DLA-4961-1 linux-6.12 - security update Debian Security (DSA / DLA) · Dec 2, 2026
- 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/f3a432558686e2a5338e228acb2a464fff5995d8
- https://git.kernel.org/stable/c/4fbdca296d8b54d680784282bf007945454820fc
- https://git.kernel.org/stable/c/9fef91f9e63b66743d8ada7436c44adf3f85859d
- https://git.kernel.org/stable/c/7219ab069818c456a46e2303948f286e9f199947
- https://git.kernel.org/stable/c/3bf132de175803dcea0d6598b47d467cb6a2a1b5
- https://git.kernel.org/stable/c/c3fd39ceaaeb43b45a6ffddea62b9f09eeb3aeb7
- https://git.kernel.org/stable/c/501ed625cdd25d5a264e1a553439963f9a810b63
- https://git.kernel.org/stable/c/627cdcbc2a2eceb0452078a0c14370f9f1f17a91