CVE-2026-72370: iomap: release pages on atomic dio size mismatch
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
iomap: release pages on atomic dio size mismatch
If bio_iov_iter_get_pages() or the bounce helper succeeds but builds a short bio, the REQ_ATOMIC size check rejects it before submission. The old error path only dropped the bio reference, leaving any pages already attached to the bio unreleased.
Release or unbounce the pages before falling through to out_put_bio on this error path.
This bug was reported by sashiko:
https://sashiko.dev/#/patchset/20260608073134.95964-1-changfengnan%40bytedance.com
The Linux kernel CVE team has assigned CVE-2026-72370 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.13 with commit 9e0933c21c128d6d8ac4d8aae0babaf9a43100b8 and fixed in 7.1.5 with commit 27ddd3442fc6f698fb8577c7cfb243ddd81ea8c0 Issue introduced in 6.13 with commit 9e0933c21c128d6d8ac4d8aae0babaf9a43100b8 and fixed in 7.2-rc2 with commit 681e452683b69a8e1a571cba0f238f8ceacf55d2
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-72370
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/iomap/direct-io.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/27ddd3442fc6f698fb8577c7cfb243ddd81ea8c0 https://git.kernel.org/stable/c/681e452683b69a8e1a571cba0f238f8ceacf55d2