<?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://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-28T09:32:33.085995+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" 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://vulnerability.circl.lu/vuln/cve-2023-54121</id>
    <title>CVE-2023-54121 — btrfs: fix incorrect splitting in btrfs_drop_extent_map_range</title>
    <updated>2026-09-28T09:32:33.088681+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: fix incorrect splitting in btrfs_drop_extent_map_range</p>
<p>In production we were seeing a variety of WARN_ON()'s in the extent_map
code, specifically in btrfs_drop_extent_map_range() when we have to call
add_extent_mapping() for our second split.</p>
<p>Consider the following extent map layout</p>
<p>PINNED
	[0 16K)  [32K, 48K)</p>
<p>and then we call btrfs_drop_extent_map_range for [0, 36K), with
skip_pinned == true.  The initial loop will have</p>
<p>start = 0
	end = 36K
	len = 36K</p>
<p>we will find the [0, 16k) extent, but since we are pinned we will skip
it, which has this code</p>
<p>start = em_end;
	if (end != (u64)-1)
		len = start + len - em_end;</p>
<p>em_end here is 16K, so now the values are</p>
<p>start = 16K
	len = 16K + 36K - 16K = 36K</p>
<p>len should instead be 20K.  This is a problem when we find the next
extent at [32K, 48K), we need to split this extent to leave [36K, 48k),
however the code for the split looks like this</p>
<p>split-&gt;start = start + len;
	split-&gt;len = em_end - (start + len);</p>
<p>In this case we have</p>
<p>em_end = 48K
	split-&gt;start = 16K + 36K       // this should be 16K + 20K
	split-&gt;len = 48K - (16K + 36K) // this overflows as 16K + 36K is 52K</p>
<p>and now we have an invalid extent_map in the tree that potentially
overlaps other entries in the extent map.  Even in the non-overlapping
case we will have split-&gt;start set improperly, which will cause problems
with any block related calculations.</p>
<p>We don't actually need len in this…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2023-54121"/>
  </entry>
</feed>
