<?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://vulnerability.circl.lu</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>Tue, 29 Sep 2026 05:19:02 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-40007 — netfs: fix reference leak</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-40007</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;netfs: fix reference leak&lt;/p&gt;
&lt;p&gt;Commit 20d72b00ca81 (&amp;#34;netfs: Fix the request&amp;#39;s work item to not
require a ref&amp;#34;) modified netfs_alloc_request() to initialize the
reference counter to 2 instead of 1.  The rationale was that the
requet&amp;#39;s &amp;#34;work&amp;#34; would release the second reference after completion
(via netfs_{read,write}_collection_worker()).  That works most of the
time if all goes well.&lt;/p&gt;
&lt;p&gt;However, it leaks this additional reference if the request is released
before the I/O operation has been submitted: the error code path only
decrements the reference counter once and the work item will never be
queued because there will never be a completion.&lt;/p&gt;
&lt;p&gt;This has caused outages of our whole server cluster today because
tasks were blocked in netfs_wait_for_outstanding_io(), leading to
deadlocks in Ceph (another bug that I will address soon in another
patch).  This was caused by a netfs_pgpriv2_begin_copy_to_cache() call
which failed in fscache_begin_write_operation().  The leaked
netfs_io_request was never completed, leaving `netfs_inode.io_count`
with a positive value forever.&lt;/p&gt;
&lt;p&gt;All of this is super-fragile code.  Finding out which code paths will
lead to an eventual completion and which do not is hard to see:&lt;/p&gt;
&lt;p&gt;- Some functions like netfs_create_write_req() allocate a request, but
  will never submit any I/O.&lt;/p&gt;
&lt;p&gt;- netfs_unbuffered_read_iter_locked() calls netfs_unbuffered_read()
  and then netfs_put_request(); however, netfs_unb…&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;netfs: fix reference leak&lt;/p&gt;
&lt;p&gt;Commit 20d72b00ca81 (&amp;#34;netfs: Fix the request&amp;#39;s work item to not
require a ref&amp;#34;) modified netfs_alloc_request() to initialize the
reference counter to 2 instead of 1.  The rationale was that the
requet&amp;#39;s &amp;#34;work&amp;#34; would release the second reference after completion
(via netfs_{read,write}_collection_worker()).  That works most of the
time if all goes well.&lt;/p&gt;
&lt;p&gt;However, it leaks this additional reference if the request is released
before the I/O operation has been submitted: the error code path only
decrements the reference counter once and the work item will never be
queued because there will never be a completion.&lt;/p&gt;
&lt;p&gt;This has caused outages of our whole server cluster today because
tasks were blocked in netfs_wait_for_outstanding_io(), leading to
deadlocks in Ceph (another bug that I will address soon in another
patch).  This was caused by a netfs_pgpriv2_begin_copy_to_cache() call
which failed in fscache_begin_write_operation().  The leaked
netfs_io_request was never completed, leaving `netfs_inode.io_count`
with a positive value forever.&lt;/p&gt;
&lt;p&gt;All of this is super-fragile code.  Finding out which code paths will
lead to an eventual completion and which do not is hard to see:&lt;/p&gt;
&lt;p&gt;- Some functions like netfs_create_write_req() allocate a request, but
  will never submit any I/O.&lt;/p&gt;
&lt;p&gt;- netfs_unbuffered_read_iter_locked() calls netfs_unbuffered_read()
  and then netfs_put_request(); however, netfs_unb…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-40007</guid>
    </item>
  </channel>
</rss>
