CVE-2026-99826

Source
https://cve.org/CVERecord?id=CVE-2026-99826
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99826.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99826
Downstream
Published
2026-11-30T13:17:23Z
Modified
2026-11-30T15:02:31Z
Summary
backing-file: always end a queued write
Details

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]

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99826.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2406a307ac7ddfd7effeeaff6947149ec6a95b4e
Fixed
f3a432558686e2a5338e228acb2a464fff5995d8
Fixed
4fbdca296d8b54d680784282bf007945454820fc
Fixed
9fef91f9e63b66743d8ada7436c44adf3f85859d
Fixed
7219ab069818c456a46e2303948f286e9f199947
Fixed
3bf132de175803dcea0d6598b47d467cb6a2a1b5
Fixed
c3fd39ceaaeb43b45a6ffddea62b9f09eeb3aeb7
Fixed
501ed625cdd25d5a264e1a553439963f9a810b63
Fixed
627cdcbc2a2eceb0452078a0c14370f9f1f17a91

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99826.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.6.0
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.118
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.64
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99826.json"