CVE-2026-142798: Linux kernel · iomap: don't resubmit an ioend after ->writeback_submit() failed
Source GCVE Database
Not known to be exploited · fixed in 212557010f57ae2b2b376e09dc2de1880f56dbc9 : patch Linux kernel soon.
Data as of 3 Dec 2026, 08:16 UTC
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
Disclosed: evidence found.
CVE published 3 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| 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
- nvd.nist.gov/vuln/detail/CVE-2026-142798 (opens in a new tab)
- git.kernel.org/stable/c/212557010f57ae2b2b376e09dc2de1880f56dbc9 (opens in a new tab)
- git.kernel.org/stable/c/35096f62ca37ef7d929c89c35938372f365aad25 (opens in a new tab)
- git.kernel.org/stable/c/3f517370076f1fedaa38cd8c78ceb73616b79336 (opens in a new tab)