<?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-29T16:42:59.779953+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-41051</id>
    <title>CVE-2024-41051 — cachefiles: wait for ondemand_object_worker to finish when dropping object</title>
    <updated>2026-09-29T16:42:59.791453+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>cachefiles: wait for ondemand_object_worker to finish when dropping object</p>
<p>When queuing ondemand_object_worker() to re-open the object,
cachefiles_object is not pinned. The cachefiles_object may be freed when
the pending read request is completed intentionally and the related
erofs is umounted. If ondemand_object_worker() runs after the object is
freed, it will incur use-after-free problem as shown below.</p>
<p>process A  processs B  process C  process D</p>
<p>cachefiles_ondemand_send_req()
// send a read req X
// wait for its completion</p>
<p>// close ondemand fd
           cachefiles_ondemand_fd_release()
           // set object as CLOSE</p>
<p>cachefiles_ondemand_daemon_read()
                       // set object as REOPENING
                       queue_work(fscache_wq, &amp;info-&gt;ondemand_work)</p>
<p>// close /dev/cachefiles
                                cachefiles_daemon_release
                                cachefiles_flush_reqs
                                complete(&amp;req-&gt;done)</p>
<p>// read req X is completed
// umount the erofs fs
cachefiles_put_object()
// object will be freed
cachefiles_ondemand_deinit_obj_info()
kmem_cache_free(object)
                       // both info and object are freed
                       ondemand_object_worker()</p>
<p>When dropping an object, it is no longer necessary to reopen the object,
so use cancel_work_sync() to cancel or wait f…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2024-41051"/>
  </entry>
</feed>
