<?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>Fri, 02 Oct 2026 16:11:40 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-74321 — btrfs: fix invalid pointer dereference in __btrfs_run_delayed_refs()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-74321</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;btrfs: fix invalid pointer dereference in __btrfs_run_delayed_refs()&lt;/p&gt;
&lt;p&gt;In the beginning of the loop, we try to obtain a locked delayed ref head,
if &amp;#39;locked_ref&amp;#39; is currently NULL, by calling btrfs_select_ref_head(),
which can return an error pointer. If the error pointer is -EAGAIN we do
a continue and go back to the beginning of the loop, which will not try
again to call btrfs_select_ref_head() since &amp;#39;locked_ref&amp;#39; is no longer
NULL but it&amp;#39;s ERR_PTR(-EAGAIN), and then we do:&lt;/p&gt;
&lt;p&gt;spin_lock(&amp;amp;locked_ref-&amp;gt;lock);&lt;/p&gt;
&lt;p&gt;against a ERR_PTR(-EAGAIN) value, generating an invalid pointer
dereference.&lt;/p&gt;
&lt;p&gt;Fix this by ensuring that &amp;#39;locked_ref&amp;#39; is set to NULL when
btrfs_select_ref_head() returns ERR_PTR(-EAGAIN) and incrementing &amp;#39;count&amp;#39;
as well, to prevent infinite looping. We do this by doing a goto to the
bottom of the loop that already sets &amp;#39;locked_ref&amp;#39; to NULL and does a
cond_resched(), with an increment to &amp;#39;count&amp;#39; right before the goto.
These measures were in place before the refactoring in commit 0110a4c43451
(&amp;#34;btrfs: refactor __btrfs_run_delayed_refs loop&amp;#34;) but were unintentionally
lost afterwards.&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;btrfs: fix invalid pointer dereference in __btrfs_run_delayed_refs()&lt;/p&gt;
&lt;p&gt;In the beginning of the loop, we try to obtain a locked delayed ref head,
if &amp;#39;locked_ref&amp;#39; is currently NULL, by calling btrfs_select_ref_head(),
which can return an error pointer. If the error pointer is -EAGAIN we do
a continue and go back to the beginning of the loop, which will not try
again to call btrfs_select_ref_head() since &amp;#39;locked_ref&amp;#39; is no longer
NULL but it&amp;#39;s ERR_PTR(-EAGAIN), and then we do:&lt;/p&gt;
&lt;p&gt;spin_lock(&amp;amp;locked_ref-&amp;gt;lock);&lt;/p&gt;
&lt;p&gt;against a ERR_PTR(-EAGAIN) value, generating an invalid pointer
dereference.&lt;/p&gt;
&lt;p&gt;Fix this by ensuring that &amp;#39;locked_ref&amp;#39; is set to NULL when
btrfs_select_ref_head() returns ERR_PTR(-EAGAIN) and incrementing &amp;#39;count&amp;#39;
as well, to prevent infinite looping. We do this by doing a goto to the
bottom of the loop that already sets &amp;#39;locked_ref&amp;#39; to NULL and does a
cond_resched(), with an increment to &amp;#39;count&amp;#39; right before the goto.
These measures were in place before the refactoring in commit 0110a4c43451
(&amp;#34;btrfs: refactor __btrfs_run_delayed_refs loop&amp;#34;) but were unintentionally
lost afterwards.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-74321</guid>
    </item>
  </channel>
</rss>
