<?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>Sat, 03 Oct 2026 19:36:31 +0000</lastBuildDate>
    <item>
      <title>CVE-2023-52896 — btrfs: fix race between quota rescan and disable leading to NULL pointer deref</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2023-52896</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 race between quota rescan and disable leading to NULL pointer deref&lt;/p&gt;
&lt;p&gt;If we have one task trying to start the quota rescan worker while another
one is trying to disable quotas, we can end up hitting a race that results
in the quota rescan worker doing a NULL pointer dereference. The steps for
this are the following:&lt;/p&gt;
&lt;p&gt;1) Quotas are enabled;&lt;/p&gt;
&lt;p&gt;2) Task A calls the quota rescan ioctl and enters btrfs_qgroup_rescan().
   It calls qgroup_rescan_init() which returns 0 (success) and then joins a
   transaction and commits it;&lt;/p&gt;
&lt;p&gt;3) Task B calls the quota disable ioctl and enters btrfs_quota_disable().
   It clears the bit BTRFS_FS_QUOTA_ENABLED from fs_info-&amp;gt;flags and calls
   btrfs_qgroup_wait_for_completion(), which returns immediately since the
   rescan worker is not yet running.
   Then it starts a transaction and locks fs_info-&amp;gt;qgroup_ioctl_lock;&lt;/p&gt;
&lt;p&gt;4) Task A queues the rescan worker, by calling btrfs_queue_work();&lt;/p&gt;
&lt;p&gt;5) The rescan worker starts, and calls rescan_should_stop() at the start
   of its while loop, which results in 0 iterations of the loop, since
   the flag BTRFS_FS_QUOTA_ENABLED was cleared from fs_info-&amp;gt;flags by
   task B at step 3);&lt;/p&gt;
&lt;p&gt;6) Task B sets fs_info-&amp;gt;quota_root to NULL;&lt;/p&gt;
&lt;p&gt;7) The rescan worker tries to start a transaction and uses
   fs_info-&amp;gt;quota_root as the root argument for btrfs_start_transaction().
   This results in a NULL pointer dereference down the call chain of
   btrfs_sta…&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 race between quota rescan and disable leading to NULL pointer deref&lt;/p&gt;
&lt;p&gt;If we have one task trying to start the quota rescan worker while another
one is trying to disable quotas, we can end up hitting a race that results
in the quota rescan worker doing a NULL pointer dereference. The steps for
this are the following:&lt;/p&gt;
&lt;p&gt;1) Quotas are enabled;&lt;/p&gt;
&lt;p&gt;2) Task A calls the quota rescan ioctl and enters btrfs_qgroup_rescan().
   It calls qgroup_rescan_init() which returns 0 (success) and then joins a
   transaction and commits it;&lt;/p&gt;
&lt;p&gt;3) Task B calls the quota disable ioctl and enters btrfs_quota_disable().
   It clears the bit BTRFS_FS_QUOTA_ENABLED from fs_info-&amp;gt;flags and calls
   btrfs_qgroup_wait_for_completion(), which returns immediately since the
   rescan worker is not yet running.
   Then it starts a transaction and locks fs_info-&amp;gt;qgroup_ioctl_lock;&lt;/p&gt;
&lt;p&gt;4) Task A queues the rescan worker, by calling btrfs_queue_work();&lt;/p&gt;
&lt;p&gt;5) The rescan worker starts, and calls rescan_should_stop() at the start
   of its while loop, which results in 0 iterations of the loop, since
   the flag BTRFS_FS_QUOTA_ENABLED was cleared from fs_info-&amp;gt;flags by
   task B at step 3);&lt;/p&gt;
&lt;p&gt;6) Task B sets fs_info-&amp;gt;quota_root to NULL;&lt;/p&gt;
&lt;p&gt;7) The rescan worker tries to start a transaction and uses
   fs_info-&amp;gt;quota_root as the root argument for btrfs_start_transaction().
   This results in a NULL pointer dereference down the call chain of
   btrfs_sta…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2023-52896</guid>
    </item>
  </channel>
</rss>
