CVE-2026-142798
iomap: don't resubmit an ioend after ->writeback_submit() failed
Mitigation
- Upgrade Linux to 3f517370076f1fedaa38cd8c78ceb73616b79336 or later.
Who should check
- Anyone running Linux >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 35096f62ca37ef7d929c89c35938372f365aad25; >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 212557010f57ae2b2b376e09dc2de1880f56dbc9; >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 3f517370076f1fedaa38cd8c78ceb73616b79336
- Anyone running Linux 6.17
Vulnerability facts
- Affected
- Linux >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 35096f62ca37ef7d929c89c35938372f365aad25; >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 212557010f57ae2b2b376e09dc2de1880f56dbc9; >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 3f517370076f1fedaa38cd8c78ceb73616b79336; Linux 6.17
- Fixed in
- Linux 35096f62ca37ef7d929c89c35938372f365aad25, Linux 212557010f57ae2b2b376e09dc2de1880f56dbc9, Linux 3f517370076f1fedaa38cd8c78ceb73616b79336
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 35096f62ca37ef7d929c89c35938372f365aad25; >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 212557010f57ae2b2b376e09dc2de1880f56dbc9; >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 3f517370076f1fedaa38cd8c78ceb73616b79336 | — | cvelist |
| Linux | 6.17 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-142798. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-142798.md Affected: Linux >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 35096f62ca37ef7d929c89c35938372f365aad25; >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 212557010f57ae2b2b376e09dc2de1880f56dbc9; >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 3f517370076f1fedaa38cd8c78ceb73616b79336; Linux 6.17 Fixed in: Linux 35096f62ca37ef7d929c89c35938372f365aad25, Linux 212557010f57ae2b2b376e09dc2de1880f56dbc9, Linux 3f517370076f1fedaa38cd8c78ceb73616b79336 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
FAQ
Is CVE-2026-142798 being exploited?
There is no confirmed exploitation: CVE-2026-142798 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-142798?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2026-142798?
Linux >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 35096f62ca37ef7d929c89c35938372f365aad25; >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 212557010f57ae2b2b376e09dc2de1880f56dbc9; >= f4fa7981fa26c664cc540cbce9bcb7ffe02a8912, < 3f517370076f1fedaa38cd8c78ceb73616b79336; Linux 6.17.
Is there a fix for CVE-2026-142798?
Yes. Fixed in Linux 35096f62ca37ef7d929c89c35938372f365aad25, Linux 212557010f57ae2b2b376e09dc2de1880f56dbc9, Linux 3f517370076f1fedaa38cd8c78ceb73616b79336. Upgrade Linux to 3f517370076f1fedaa38cd8c78ceb73616b79336 or later.
How do I check if I'm affected by CVE-2026-142798?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| UNSCORED | CVE-2026-142948 i2c: designware: queue only one read command for block reads | Linux kernel | ||
| UNSCORED | CVE-2026-142947 cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails | Linux kernel | ||
| UNSCORED | CVE-2026-142946 ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device() | Linux kernel | ||
| UNSCORED | CVE-2026-142945 ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device() | Linux kernel | ||
| UNSCORED | CVE-2026-142944 ASoC: amd: acp-es8336: Use an owned codec device reference | Linux kernel |