CVE-2026-142798

Not scored yetLast modified Dec 3, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 35096f62ca37ef7d929c89c35938372f365aad25; >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 212557010f57ae2b2b376e09dc2de1880f56dbc9; >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 3f517370076f1fedaa38cd8c78ceb73616b79336
LinuxLinux6.17

References

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-142799In the Linux kernel, the following vulnerability has been resolved: genirq: Move interrupt thread exit_work object to irqaction irq_threadCVE-2026-14288.8Single Sign-On Portal System developed by WellChoose has a OS Command Injection vulnerability, allowing authenticated remote attackers to inCVE-2026-142806.6The Events Manager – Calendar, Bookings, Tickets, and more! plugin for WordPress is vulnerable to Local File Inclusion in all versions up toCVE-2026-142800In the Linux kernel, the following vulnerability has been resolved: ALSA: control: Fix UAF in snd_ctl_elem_add() on card disconnect A use-CVE-2026-142801In the Linux kernel, the following vulnerability has been resolved: drm/msm: Fix vm_bo use-after-free in with_vm_locks() The unwind loop dCVE-2026-142802In the Linux kernel, the following vulnerability has been resolved: platform/x86/amd: hfi: Fix a use-after-free when unloading the driver CVE-2026-142803In the Linux kernel, the following vulnerability has been resolved: backlight: qcom-wled: Fix unbalanced OVP IRQ enable at probe wled_confCVE-2026-142804In the Linux kernel, the following vulnerability has been resolved: driver core: take parent lock in async device attach For device types CVE-2026-142805In the Linux kernel, the following vulnerability has been resolved: driver core: fix parent lock use-after-free on USB disconnect USB inteCVE-2026-142806In the Linux kernel, the following vulnerability has been resolved: net/sched: sch_teql: fix slaves_lock IRQ deadlock This is a followup oCVE-2026-142807In the Linux kernel, the following vulnerability has been resolved: ocfs2: publish the filecheck owner before adding sysfs attributes ocfsCVE-2026-142808In the Linux kernel, the following vulnerability has been resolved: HID: logitech-dj: validate unnumbered keyboard reports The HID core in
CVE-2026-142798: Unscored | Vulnix