<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://cve.radiocsirt.org/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-12T09:31:13.404154+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>csirt@opendfir.org</email>
  </author>
  <link href="https://cve.radiocsirt.org" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/cve-2022-49079</id>
    <title>CVE-2022-49079 — btrfs: zoned: traverse devices under chunk_mutex in btrfs_can_activate_zone</title>
    <updated>2026-10-12T09:31:13.405227+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>btrfs: zoned: traverse devices under chunk_mutex in btrfs_can_activate_zone</p>
<p>btrfs_can_activate_zone() can be called with the device_list_mutex already
held, which will lead to a deadlock:</p>
<p>insert_dev_extents() // Takes device_list_mutex
`-&gt; insert_dev_extent()
 `-&gt; btrfs_insert_empty_item()
  `-&gt; btrfs_insert_empty_items()
   `-&gt; btrfs_search_slot()
    `-&gt; btrfs_cow_block()
     `-&gt; __btrfs_cow_block()
      `-&gt; btrfs_alloc_tree_block()
       `-&gt; btrfs_reserve_extent()
        `-&gt; find_free_extent()
         `-&gt; find_free_extent_update_loop()
          `-&gt; can_allocate_chunk()
           `-&gt; btrfs_can_activate_zone() // Takes device_list_mutex again</p>
<p>Instead of using the RCU on fs_devices-&gt;device_list we
can use fs_devices-&gt;alloc_list, protected by the chunk_mutex to traverse
the list of active devices.</p>
<p>We are in the chunk allocation thread. The newer chunk allocation
happens from the devices in the fs_device-&gt;alloc_list protected by the
chunk_mutex.</p>
<p>btrfs_create_chunk()
    lockdep_assert_held(&amp;info-&gt;chunk_mutex);
    gather_device_info
      list_for_each_entry(device, &amp;fs_devices-&gt;alloc_list, dev_alloc_list)</p>
<p>Also, a device that reappears after the mount won't join the alloc_list
yet and, it will be in the dev_list, which we don't want to consider in
the context of the chunk alloc.</p>
<p>[15.166572] WARNING: possible recursive locking detected
  [15.167117] 5.17.0-rc6-dennis #79 Not tainted
  [15.167…</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/cve-2022-49079"/>
  </entry>
</feed>
