<?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://cve.radiocsirt.org</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>Wed, 07 Oct 2026 02:34:04 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-48733 — btrfs: fix use-after-free after failure to create a snapshot</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2022-48733</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 use-after-free after failure to create a snapshot&lt;/p&gt;
&lt;p&gt;At ioctl.c:create_snapshot(), we allocate a pending snapshot structure and
then attach it to the transaction&amp;#39;s list of pending snapshots. After that
we call btrfs_commit_transaction(), and if that returns an error we jump
to &amp;#39;fail&amp;#39; label, where we kfree() the pending snapshot structure. This can
result in a later use-after-free of the pending snapshot:&lt;/p&gt;
&lt;p&gt;1) We allocated the pending snapshot and added it to the transaction&amp;#39;s
   list of pending snapshots;&lt;/p&gt;
&lt;p&gt;2) We call btrfs_commit_transaction(), and it fails either at the first
   call to btrfs_run_delayed_refs() or btrfs_start_dirty_block_groups().
   In both cases, we don&amp;#39;t abort the transaction and we release our
   transaction handle. We jump to the &amp;#39;fail&amp;#39; label and free the pending
   snapshot structure. We return with the pending snapshot still in the
   transaction&amp;#39;s list;&lt;/p&gt;
&lt;p&gt;3) Another task commits the transaction. This time there&amp;#39;s no error at
   all, and then during the transaction commit it accesses a pointer
   to the pending snapshot structure that the snapshot creation task
   has already freed, resulting in a user-after-free.&lt;/p&gt;
&lt;p&gt;This issue could actually be detected by smatch, which produced the
following warning:&lt;/p&gt;
&lt;p&gt;fs/btrfs/ioctl.c:843 create_snapshot() warn: &amp;#39;&amp;amp;pending_snapshot-&amp;gt;list&amp;#39; not removed from list&lt;/p&gt;
&lt;p&gt;So fix this by not having the snapshot creation ioctl directly add the
pending sn…&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 use-after-free after failure to create a snapshot&lt;/p&gt;
&lt;p&gt;At ioctl.c:create_snapshot(), we allocate a pending snapshot structure and
then attach it to the transaction&amp;#39;s list of pending snapshots. After that
we call btrfs_commit_transaction(), and if that returns an error we jump
to &amp;#39;fail&amp;#39; label, where we kfree() the pending snapshot structure. This can
result in a later use-after-free of the pending snapshot:&lt;/p&gt;
&lt;p&gt;1) We allocated the pending snapshot and added it to the transaction&amp;#39;s
   list of pending snapshots;&lt;/p&gt;
&lt;p&gt;2) We call btrfs_commit_transaction(), and it fails either at the first
   call to btrfs_run_delayed_refs() or btrfs_start_dirty_block_groups().
   In both cases, we don&amp;#39;t abort the transaction and we release our
   transaction handle. We jump to the &amp;#39;fail&amp;#39; label and free the pending
   snapshot structure. We return with the pending snapshot still in the
   transaction&amp;#39;s list;&lt;/p&gt;
&lt;p&gt;3) Another task commits the transaction. This time there&amp;#39;s no error at
   all, and then during the transaction commit it accesses a pointer
   to the pending snapshot structure that the snapshot creation task
   has already freed, resulting in a user-after-free.&lt;/p&gt;
&lt;p&gt;This issue could actually be detected by smatch, which produced the
following warning:&lt;/p&gt;
&lt;p&gt;fs/btrfs/ioctl.c:843 create_snapshot() warn: &amp;#39;&amp;amp;pending_snapshot-&amp;gt;list&amp;#39; not removed from list&lt;/p&gt;
&lt;p&gt;So fix this by not having the snapshot creation ioctl directly add the
pending sn…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2022-48733</guid>
    </item>
  </channel>
</rss>
