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.
Published: 2026-08-15
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Sat, 22 Aug 2026 06:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-194

Thu, 20 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-191
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 17 Aug 2026 19:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-194

Mon, 17 Aug 2026 17:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-194

Mon, 17 Aug 2026 06:00:00 +0000

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'}


Sat, 15 Aug 2026 11:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-194

Sat, 15 Aug 2026 06:00:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:43:20.980Z

Reserved: 2026-08-09T03:40:39.922Z

Link: CVE-2026-72367

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:10.117

Modified: 2026-08-17T06:18:40.890

Link: CVE-2026-72367

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72367 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T08:15:03Z

Weaknesses
  • CWE-191

    Integer Underflow (Wrap or Wraparound)