<?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-29T21:35:36.855692+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-2024-46734</id>
    <title>CVE-2024-46734 — btrfs: fix race between direct IO write and fsync when using same fd</title>
    <updated>2026-09-29T21:35:36.856884+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 race between direct IO write and fsync when using same fd</p>
<p>If we have 2 threads that are using the same file descriptor and one of
them is doing direct IO writes while the other is doing fsync, we have a
race where we can end up either:</p>
<p>1) Attempt a fsync without holding the inode's lock, triggering an
   assertion failures when assertions are enabled;</p>
<p>2) Do an invalid memory access from the fsync task because the file private
   points to memory allocated on stack by the direct IO task and it may be
   used by the fsync task after the stack was destroyed.</p>
<p>The race happens like this:</p>
<p>1) A user space program opens a file descriptor with O_DIRECT;</p>
<p>2) The program spawns 2 threads using libpthread for example;</p>
<p>3) One of the threads uses the file descriptor to do direct IO writes,
   while the other calls fsync using the same file descriptor.</p>
<p>4) Call task A the thread doing direct IO writes and task B the thread
   doing fsyncs;</p>
<p>5) Task A does a direct IO write, and at btrfs_direct_write() sets the
   file's private to an on stack allocated private with the member
   'fsync_skip_inode_lock' set to true;</p>
<p>6) Task B enters btrfs_sync_file() and sees that there's a private
   structure associated to the file which has 'fsync_skip_inode_lock' set
   to true, so it skips locking the inode's VFS lock;</p>
<p>7) Task A completes the direct IO write, and resets the file's private to
   NULL since it had no…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2024-46734"/>
  </entry>
</feed>
