<?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>Sun, 04 Oct 2026 07:49:19 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-50379 — btrfs: fix race between quota enable and quota rescan ioctl</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2022-50379</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 enable and quota rescan ioctl&lt;/p&gt;
&lt;p&gt;When enabling quotas, at btrfs_quota_enable(), after committing the
transaction, we change fs_info-&amp;gt;quota_root to point to the quota root we
created and set BTRFS_FS_QUOTA_ENABLED at fs_info-&amp;gt;flags. Then we try
to start the qgroup rescan worker, first by initializing it with a call
to qgroup_rescan_init() - however if that fails we end up freeing the
quota root but we leave fs_info-&amp;gt;quota_root still pointing to it, this
can later result in a use-after-free somewhere else.&lt;/p&gt;
&lt;p&gt;We have previously set the flags BTRFS_FS_QUOTA_ENABLED and
BTRFS_QGROUP_STATUS_FLAG_ON, so we can only fail with -EINPROGRESS at
btrfs_quota_enable(), which is possible if someone already called the
quota rescan ioctl, and therefore started the rescan worker.&lt;/p&gt;
&lt;p&gt;So fix this by ignoring an -EINPROGRESS and asserting we can&amp;#39;t get any
other error.&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 enable and quota rescan ioctl&lt;/p&gt;
&lt;p&gt;When enabling quotas, at btrfs_quota_enable(), after committing the
transaction, we change fs_info-&amp;gt;quota_root to point to the quota root we
created and set BTRFS_FS_QUOTA_ENABLED at fs_info-&amp;gt;flags. Then we try
to start the qgroup rescan worker, first by initializing it with a call
to qgroup_rescan_init() - however if that fails we end up freeing the
quota root but we leave fs_info-&amp;gt;quota_root still pointing to it, this
can later result in a use-after-free somewhere else.&lt;/p&gt;
&lt;p&gt;We have previously set the flags BTRFS_FS_QUOTA_ENABLED and
BTRFS_QGROUP_STATUS_FLAG_ON, so we can only fail with -EINPROGRESS at
btrfs_quota_enable(), which is possible if someone already called the
quota rescan ioctl, and therefore started the rescan worker.&lt;/p&gt;
&lt;p&gt;So fix this by ignoring an -EINPROGRESS and asserting we can&amp;#39;t get any
other error.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2022-50379</guid>
    </item>
  </channel>
</rss>
