CVE-2026-72367

iomap: guard io_size EOF trim against concurrent truncate underflow

Published Aug 15, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

iomap: guard io_size EOF trim against concurrent truncate underflow

iomap: fix zero padding data issue in concurrent append writes
changed ioend accounting so that io_size tracks only valid data
within EOF. This trims io_size when a writeback range extends
past end_pos:

ioend->io_size += map_len;
if (ioend->io_offset + ioend->io_size > end_pos)
ioend->io_size = end_pos - ioend->io_offset;

However, if end_pos ends up below ioend->io_offset, the subtraction
becomes negative and is stored in size_t io_size, causing an unsigned
wrap to a huge value. This can happen when writeback continues past
byte-level EOF up to a block-aligned range, or when a concurrent
truncate shrinks the file after end_pos was sampled in
iomap_writeback_handle_eof().

A wrapped io_size can mislead append detection and corrupt
completion-time size handling, since filesystem end_io paths consume
io_size for decisions such as on-disk EOF updates and unwritten/COW
completion ranges.

Fix this by clamping io_size to zero when EOF has moved to or before
the ioend start offset. This preserves the original intent of trimming
io_size to valid in-EOF data while avoiding the underflow.

Analysis

AI-generated

Technical impact

In the Linux kernel, the iomap subsystem can calculate an IO size larger than the file’s end position when a concurrent truncate reduces the file size below the current writeback offset. The calculation stores a huge unsigned value due to an underflow, misleading append detection and corrupting decisions made during end‑of‑file handling. An attacker who can trigger concurrent writes and truncations could potentially corrupt filesystem metadata or data, leading to data loss or denial of service. The weakness is an integer underflow in size handling.

Affected Systems

All Linux kernel releases that include the unpatched iomap code are affected. Prior to the commit that clamps the IO size to zero when EOF has moved to or before the ioend start offset, any Linux kernel version used on the system is vulnerable. Exact kernel version numbers are not specified in the advisory, so all versions before the patch should be considered affected.

Risk and Exploitability

CVSS score of 8.8 indicates high severity. The EPSS score of < 1% indicates a low probability of exploitation. The vulnerability exists in kernel space, and based on the requirement to perform concurrent write and truncate operations on a file, it is inferred that local privileges are needed to trigger the conditions that lead to the underflow. Consequently, the vulnerability is not trivially exploitable over the network. Because it is not listed in the CISA KEV catalog and no public exploits are known, the likelihood of exploitation is moderate, but the potential impact on data integrity and service availability is high.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to the latest stable release that incorporates the iomap patch, ensuring the commit that clamps io_size is present.
  • If an immediate kernel upgrade is not feasible, apply the upstream patch manually to the iomap code in the current kernel source tree and rebuild the kernel.
  • After patching, monitor system logs and filesystem integrity checks for anomalous writeback or truncation events to detect any residual corruption attempts.

Generated by OpenCVE AI on August 22, 2026 at 08:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4904-1 linux-6.12 security update
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-194
Type Values Removed Values Added
Weaknesses CWE-194
Type Values Removed Values Added
Weaknesses CWE-194
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-194
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: iomap: guard io_size EOF trim against concurrent truncate underflow iomap: fix zero padding data issue in concurrent append writes changed ioend accounting so that io_size tracks only valid data within EOF. This trims io_size when a writeback range extends past end_pos: ioend->io_size += map_len; if (ioend->io_offset + ioend->io_size > end_pos) ioend->io_size = end_pos - ioend->io_offset; However, if end_pos ends up below ioend->io_offset, the subtraction becomes negative and is stored in size_t io_size, causing an unsigned wrap to a huge value. This can happen when writeback continues past byte-level EOF up to a block-aligned range, or when a concurrent truncate shrinks the file after end_pos was sampled in iomap_writeback_handle_eof(). A wrapped io_size can mislead append detection and corrupt completion-time size handling, since filesystem end_io paths consume io_size for decisions such as on-disk EOF updates and unwritten/COW completion ranges. Fix this by clamping io_size to zero when EOF has moved to or before the ioend start offset. This preserves the original intent of trimming io_size to valid in-EOF data while avoiding the underflow.
Title iomap: guard io_size EOF trim against concurrent truncate underflow
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-191

    Integer Underflow (Wrap or Wraparound)

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 21, 2026, 12:44 PM
Reserved
Aug 9, 2026, 3:40 AM
Status
Received
Published
Aug 15, 2026, 6:22 AM
Modified
Oct 21, 2026, 1:19 PM
Severity
Moderate
Public date
Aug 15, 2026, 12:00 AM