CVE-2026-142798

In the Linux kernel, the following vulnerability has been resolved: iomap: don't resubmit an ioend after ->writeback_submit() failed iomap_add_to_ioend() submits the pending ioend through ->writeback_submit() before allocating a new one for the current range. When the submission fails the helper completes the ioend with an error, but iomap_add_to_ioend() returns the error without clearing wpc->wb_ctx. iomap_writepages() then submits whatever wpc->wb_ctx points to, so the already completed ioend is submitted a second time. For XFS the second bio_endio() lands in xfs_end_bio(), which list_add_tail()s the already linked ioend into ip->i_ioend_list. This corrupts the list and leaves a use-after-free/double-free window against the ioend completion worker. Reproduced with a fault-injected ->writeback_submit() failure on a reflinked XFS file with several CoW writeback ranges in flight: the unfixed kernel hits repeated "list_add double add" warnings from __list_add_valid_or_report(), the fixed kernel fails writeback cleanly. Clear wpc->wb_ctx when ->writeback_submit() fails. The old iomap_submit_ioend() cleared the context unconditionally; that clear was lost when submission moved to iomap_ioend_writeback_submit(). The final ->writeback_submit() call in iomap_writepages() needs no equivalent fix: it is the last thing the function does before returning, and every caller allocates its iomap_writepage_ctx on the stack for a single call, so wpc->wb_ctx is never read again afterwards.

Package Linux Kernel
Published 2026-12-03
Last modified 2026-12-03
Patch available
Yes

Affected versions

Linux kernel versions 6.17 and later are affected. Fixed in 6.18.61, 7.3.2, 7.4-rc1 and their respective stable series.

Affected from
≥ 6.17
Fixed in
✓ 6.18.61 6.18.x ✓ 7.3.2 7.3.x ✓ 7.4-rc1

Frequently asked questions

  • What is CVE-2026-142798?

    CVE-2026-142798 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 6.17 onward and has been patched in 6.18.61, 7.3.2 and 7.4-rc1. CVE-2026-142798 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • Is there a patch available for CVE-2026-142798?

    Yes. CVE-2026-142798 has been patched. Fixed versions include 6.18.61, 7.3.2 and 7.4-rc1. If you are running Linux kernel 6.17 or later up to the fix versions, apply the relevant patch for your kernel branch.

  • Is CVE-2026-142798 actively exploited?

    No. CVE-2026-142798 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.