<?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 13:21:46 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-47741 — btrfs: fix race setting file private on concurrent lseek using same fd</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-47741</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 setting file private on concurrent lseek using same fd&lt;/p&gt;
&lt;p&gt;When doing concurrent lseek(2) system calls against the same file
descriptor, using multiple threads belonging to the same process, we have
a short time window where a race happens and can result in a memory leak.&lt;/p&gt;
&lt;p&gt;The race happens like this:&lt;/p&gt;
&lt;p&gt;1) A program opens a file descriptor for a file and then spawns two
   threads (with the pthreads library for example), lets call them
   task A and task B;&lt;/p&gt;
&lt;p&gt;2) Task A calls lseek with SEEK_DATA or SEEK_HOLE and ends up at
   file.c:find_desired_extent() while holding a read lock on the inode;&lt;/p&gt;
&lt;p&gt;3) At the start of find_desired_extent(), it extracts the file&amp;#39;s
   private_data pointer into a local variable named &amp;#39;private&amp;#39;, which has
   a value of NULL;&lt;/p&gt;
&lt;p&gt;4) Task B also calls lseek with SEEK_DATA or SEEK_HOLE, locks the inode
   in shared mode and enters file.c:find_desired_extent(), where it also
   extracts file-&amp;gt;private_data into its local variable &amp;#39;private&amp;#39;, which
   has a NULL value;&lt;/p&gt;
&lt;p&gt;5) Because it saw a NULL file private, task A allocates a private
   structure and assigns to the file structure;&lt;/p&gt;
&lt;p&gt;6) Task B also saw a NULL file private so it also allocates its own file
   private and then assigns it to the same file structure, since both
   tasks are using the same file descriptor.&lt;/p&gt;
&lt;p&gt;At this point we leak the private structure allocated by task A.&lt;/p&gt;
&lt;p&gt;Besides the memory leak, there&amp;#39;s also the detai…&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 setting file private on concurrent lseek using same fd&lt;/p&gt;
&lt;p&gt;When doing concurrent lseek(2) system calls against the same file
descriptor, using multiple threads belonging to the same process, we have
a short time window where a race happens and can result in a memory leak.&lt;/p&gt;
&lt;p&gt;The race happens like this:&lt;/p&gt;
&lt;p&gt;1) A program opens a file descriptor for a file and then spawns two
   threads (with the pthreads library for example), lets call them
   task A and task B;&lt;/p&gt;
&lt;p&gt;2) Task A calls lseek with SEEK_DATA or SEEK_HOLE and ends up at
   file.c:find_desired_extent() while holding a read lock on the inode;&lt;/p&gt;
&lt;p&gt;3) At the start of find_desired_extent(), it extracts the file&amp;#39;s
   private_data pointer into a local variable named &amp;#39;private&amp;#39;, which has
   a value of NULL;&lt;/p&gt;
&lt;p&gt;4) Task B also calls lseek with SEEK_DATA or SEEK_HOLE, locks the inode
   in shared mode and enters file.c:find_desired_extent(), where it also
   extracts file-&amp;gt;private_data into its local variable &amp;#39;private&amp;#39;, which
   has a NULL value;&lt;/p&gt;
&lt;p&gt;5) Because it saw a NULL file private, task A allocates a private
   structure and assigns to the file structure;&lt;/p&gt;
&lt;p&gt;6) Task B also saw a NULL file private so it also allocates its own file
   private and then assigns it to the same file structure, since both
   tasks are using the same file descriptor.&lt;/p&gt;
&lt;p&gt;At this point we leak the private structure allocated by task A.&lt;/p&gt;
&lt;p&gt;Besides the memory leak, there&amp;#39;s also the detai…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-47741</guid>
    </item>
  </channel>
</rss>
