CVE-2026-99826: backing-file: always end a queued write

Published Nov 30, 2026
·
Updated

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 kiocbstartwrite() needs a kiocbendwrite(). For a write that is queued, vfsiocbiterwrite() leaves the end to the completion, and backingaiorwcomplete() only calls kiocbendwrite() when IOCBWRITE 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 backingaio and to call kiocbendwrite() 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 IOCBWRITE either, FUSE passthrough, and an xfs upper filesystem.

[amir: use aio->iswrite to explicitly mark a write aio]

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:17 PM
Data Sourced
via MITRE·01:17 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203