StraitOfVuln
Latest / CVE-2026-142798

CVE-2026-142798

Not yet scoredReceived
CVE.org ↗NVD ↗

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.

Details

CVE ID
CVE-2026-142798
Published / updated
03 Dec 2026, 04:18 UTC · last modified 03 Dec 2026, 04:18 UTC
Severity
Not yet scored by NVD
CVSS score
—
Affected vendor
Linux
Affected products
Linux
Affected versions
Linux: f4fa7981fa26c664cc540cbce9bcb7ffe02a8912 to before 35096f62ca37ef7d929c89c35938372f365aad25, f4fa7981fa26c664cc540cbce9bcb7ffe02a8912 to before 212557010f57ae2b2b376e09dc2de1880f56dbc9, f4fa7981fa26c664cc540cbce9bcb7ffe02a8912 to before 3f517370076f1fedaa38cd8c78ceb73616b79336
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
Linux 35096f62ca37ef7d929c89c35938372f365aad25, Linux 212557010f57ae2b2b376e09dc2de1880f56dbc9, Linux 3f517370076f1fedaa38cd8c78ceb73616b79336
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.29% probability of exploitation in the next 30 days · 24% percentile (03 Dec 2026)
Weakness
—
Remediation
See the vendor advisory below.
Source (CNA)
416baaa9-dc9f-4396-8d5f-8c081fb06d67