<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Sat, 05 Dec 2026 12:36:50 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-142798 — iomap: don't resubmit an ioend after -&gt;writeback_submit() failed</title>
      <link>https://db.gcve.eu/vuln/cve-2026-142798</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;iomap: don&amp;#39;t resubmit an ioend after -&amp;gt;writeback_submit() failed&lt;/p&gt;
&lt;p&gt;iomap_add_to_ioend() submits the pending ioend through
-&amp;gt;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-&amp;gt;wb_ctx.  iomap_writepages() then submits whatever wpc-&amp;gt;wb_ctx
points to, so the already completed ioend is submitted a second time.&lt;/p&gt;
&lt;p&gt;For XFS the second bio_endio() lands in xfs_end_bio(), which
list_add_tail()s the already linked ioend into ip-&amp;gt;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
-&amp;gt;writeback_submit() failure on a reflinked XFS file with several
CoW writeback ranges in flight: the unfixed kernel hits repeated
&amp;#34;list_add double add&amp;#34; warnings from __list_add_valid_or_report(),
the fixed kernel fails writeback cleanly.&lt;/p&gt;
&lt;p&gt;Clear wpc-&amp;gt;wb_ctx when -&amp;gt;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
-&amp;gt;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-&amp;gt;wb_ctx is never read again after…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;iomap: don&amp;#39;t resubmit an ioend after -&amp;gt;writeback_submit() failed&lt;/p&gt;
&lt;p&gt;iomap_add_to_ioend() submits the pending ioend through
-&amp;gt;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-&amp;gt;wb_ctx.  iomap_writepages() then submits whatever wpc-&amp;gt;wb_ctx
points to, so the already completed ioend is submitted a second time.&lt;/p&gt;
&lt;p&gt;For XFS the second bio_endio() lands in xfs_end_bio(), which
list_add_tail()s the already linked ioend into ip-&amp;gt;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
-&amp;gt;writeback_submit() failure on a reflinked XFS file with several
CoW writeback ranges in flight: the unfixed kernel hits repeated
&amp;#34;list_add double add&amp;#34; warnings from __list_add_valid_or_report(),
the fixed kernel fails writeback cleanly.&lt;/p&gt;
&lt;p&gt;Clear wpc-&amp;gt;wb_ctx when -&amp;gt;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
-&amp;gt;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-&amp;gt;wb_ctx is never read again after…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-142798</guid>
    </item>
  </channel>
</rss>
