<?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-06T03:36:30.361036+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-50067</id>
    <title>CVE-2022-50067 — btrfs: unset reloc control if transaction commit fails in prepare_to_relocate()</title>
    <updated>2026-10-06T03:36:30.378120+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: unset reloc control if transaction commit fails in prepare_to_relocate()</p>
<p>In btrfs_relocate_block_group(), the rc is allocated.  Then
btrfs_relocate_block_group() calls</p>
<p>relocate_block_group()
  prepare_to_relocate()
    set_reloc_control()</p>
<p>that assigns rc to the variable fs_info-&gt;reloc_ctl. When
prepare_to_relocate() returns, it calls</p>
<p>btrfs_commit_transaction()
  btrfs_start_dirty_block_groups()
    btrfs_alloc_path()
      kmem_cache_zalloc()</p>
<p>which may fail for example (or other errors could happen). When the
failure occurs, btrfs_relocate_block_group() detects the error and frees
rc and doesn't set fs_info-&gt;reloc_ctl to NULL. After that, in
btrfs_init_reloc_root(), rc is retrieved from fs_info-&gt;reloc_ctl and
then used, which may cause a use-after-free bug.</p>
<p>This possible bug can be triggered by calling btrfs_ioctl_balance()
before calling btrfs_ioctl_defrag().</p>
<p>To fix this possible bug, in prepare_to_relocate(), check if
btrfs_commit_transaction() fails. If the failure occurs,
unset_reloc_control() is called to set fs_info-&gt;reloc_ctl to NULL.</p>
<p>The error log in our fault-injection testing is shown as follows:</p>
<p>[   58.751070] BUG: KASAN: use-after-free in btrfs_init_reloc_root+0x7ca/0x920 [btrfs]
  ...
  [   58.753577] Call Trace:
  ...
  [   58.755800]  kasan_report+0x45/0x60
  [   58.756066]  btrfs_init_reloc_root+0x7ca/0x920 [btrfs]
  [   58.757304]  record_root_in_trans+0x792/0xa10 [btrfs]…</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/cve-2022-50067"/>
  </entry>
</feed>
