CVE-2026-142798
Last modified
CVE-2026-142798 is a vulnerability of currently unknown severity. 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.
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.
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 35096f62ca37ef7d929c89c35938372f365aad25; >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 212557010f57ae2b2b376e09dc2de1880f56dbc9; >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 3f517370076f1fedaa38cd8c78ceb73616b79336 |
| Linux | Linux | 6.17 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-142798?
How severe is CVE-2026-142798?
How do I fix CVE-2026-142798?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-142792In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142793In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142794In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142795In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142796In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142797In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142799In the Linux kernel, the following vulnerability has been re…
- CVE-2026-1428Single Sign-On Portal System developed by WellChoose has a O…8.8
- CVE-2026-14280The Events Manager – Calendar, Bookings, Tickets, and more! …6.6
- CVE-2026-142800In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142801In the Linux kernel, the following vulnerability has been re…7
- CVE-2026-142802In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2026-142798?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
