Skip to main content
VulnerabilityPublished

CVE-2026-142798: Linux kernel · iomap: don't resubmit an ioend after ->writeback_submit() failed

Source GCVE Database

0
Compare
Authoritative record:CVE-2026-142798· High

Not known to be exploited · fixed in 212557010f57ae2b2b376e09dc2de1880f56dbc9 : patch Linux kernel soon.

Data as of 3 Dec 2026, 08:16 UTC

Severity
High

Rated by Threat Radar · CVSS not yet scored by NVD

Thin evidence

One scorer or none
Patch
Available – fixed in 212557010f57ae2b2b376e09dc2de1880f56dbc9, 35096f62ca37ef7d929c89c35938372f365aad25, 3f517370076f1fedaa38cd8c78ceb73616b79336

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.

What to do

Upgrade Linux kernel to 212557010f57ae2b2b376e09dc2de1880f56dbc9, 35096f62ca37ef7d929c89c35938372f365aad25 or 3f517370076f1fedaa38cd8c78ceb73616b79336.

Affected software

ProductAffectedFixed in
LinuxLinuxAffected
  • ≥ f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 212557010f57ae2b2b376e09dc2de1880f56dbc9
Fixed in
  • 212557010f57ae2b2b376e09dc2de1880f56dbc9
LinuxLinuxAffected
  • ≥ f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 35096f62ca37ef7d929c89c35938372f365aad25
Fixed in
  • 35096f62ca37ef7d929c89c35938372f365aad25
LinuxLinuxAffected
  • ≥ f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 3f517370076f1fedaa38cd8c78ceb73616b79336
Fixed in
  • 3f517370076f1fedaa38cd8c78ceb73616b79336
LinuxLinuxAffected
  • =6.17
Fixed in–

Description

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.

References

Community reviews

Loading reviews…