{"id":"CVE-2026-72367","aliases":["CVE-2026-72367"],"related":[],"kind":"vulnerability","state":"published","title":"iomap: guard io_size EOF trim against concurrent truncate underflow","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\niomap: guard io_size EOF trim against concurrent truncate underflow\n\niomap: fix zero padding data issue in concurrent append writes\nchanged ioend accounting so that io_size tracks only valid data\nwithin EOF.  This trims io_size when a writeback range extends\npast end_pos:\n\n    ioend->io_size += map_len;\n    if (ioend->io_offset + ioend->io_size > end_pos)\n        ioend->io_size = end_pos - ioend->io_offset;\n\nHowever, if end_pos ends up below ioend->io_offset, the subtraction\nbecomes negative and is stored in size_t io_size, causing an unsigned\nwrap to a huge value.  This can happen when writeback continues past\nbyte-level EOF up to a block-aligned range, or when a concurrent\ntruncate shrinks the file after end_pos was sampled in\niomap_writeback_handle_eof().\n\nA wrapped io_size can mislead append detection and corrupt\ncompletion-time size handling, since filesystem end_io paths consume\nio_size for decisions such as on-disk EOF updates and unwritten/COW\ncompletion ranges.\n\nFix this by clamping io_size to zero when EOF has moved to or before\nthe ioend start offset.  This preserves the original intent of trimming\nio_size to valid in-EOF data while avoiding the underflow.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\niomap: guard io_size EOF trim against concurrent truncate underflow\n\niomap: fix zero padding data issue in concurrent append writes\nchanged ioend accounting so that io_size tracks only valid data\nwithin EOF.  This trims io_size when a writeback range extends\npast end_pos:\n\n    ioend->io_size += map_len;\n    if (ioend->io_offset + ioend->io_size > end_pos)\n        ioend->io_size = end_pos - ioend->io_offset;\n\nHowever, if end_pos ends up below ioend->io_offset, the subtraction\nbecomes negative and is stored in size_t io_size, causing an unsigned\nwrap to a huge value.  This can happen when writeback continues past\nbyte-level EOF up to a block-aligned range, or when a concurrent\ntruncate shrinks the file after end_pos was sampled in\niomap_writeback_handle_eof().\n\nA wrapped io_size can mislead append detection and corrupt\ncompletion-time size handling, since filesystem end_io paths consume\nio_size for decisions such as on-disk EOF updates and unwritten/COW\ncompletion ranges.\n\nFix this by clamping io_size to zero when EOF has moved to or before\nthe ioend start offset.  This preserves the original intent of trimming\nio_size to valid in-EOF data while avoiding the underflow.","source":"cvelist"}],"published":"2026-08-15T05:56:04.669Z","modified":"2026-10-21T13:19:36.047Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"82c59a86a247a8970d353d10f52a37e5564fb137","fixed":"cc1d6af0bee27d6595908b497424f338161299fc","status":"affected"},{"type":"git","introduced":"51d20d1dacbec589d459e11fc88fbca419f84a99","fixed":"1f38f65bf965fce9aa159d45c5347538f56c5973","status":"affected"},{"type":"git","introduced":"51d20d1dacbec589d459e11fc88fbca419f84a99","fixed":"7f7780abb4c0fdc9a2603aea8e985ff14ee900e0","status":"affected"},{"type":"git","introduced":"51d20d1dacbec589d459e11fc88fbca419f84a99","fixed":"55ec50d046c03b3724741957f7b007856e36dbe7","status":"affected"},{"type":"semver","introduced":"6.12.10","fixed":"6.12.114","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.13","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.40","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.5","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/cc1d6af0bee27d6595908b497424f338161299fc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1f38f65bf965fce9aa159d45c5347538f56c5973","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7f7780abb4c0fdc9a2603aea8e985ff14ee900e0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/55ec50d046c03b3724741957f7b007856e36dbe7","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-72367","url":"https://www.cve.org/CVERecord?id=CVE-2026-72367","licence":"CVE Terms of Use","modified":"2026-10-21T12:44:42.934Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-72367","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72367","licence":"Public domain","modified":"2026-10-21T13:19:36.047Z"}],"updatedAt":"2026-11-25T22:59:33.096Z","epss":{"score":0.00601,"percentile":0.50147,"date":"2026-12-01T12:00:22.000Z"}}