<?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>Tue, 29 Sep 2026 07:25:34 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-41051 — cachefiles: wait for ondemand_object_worker to finish when dropping object</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-41051</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;cachefiles: wait for ondemand_object_worker to finish when dropping object&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;process A  processs B  process C  process D&lt;/p&gt;
&lt;p&gt;cachefiles_ondemand_send_req()
// send a read req X
// wait for its completion&lt;/p&gt;
&lt;p&gt;// close ondemand fd
           cachefiles_ondemand_fd_release()
           // set object as CLOSE&lt;/p&gt;
&lt;p&gt;cachefiles_ondemand_daemon_read()
                       // set object as REOPENING
                       queue_work(fscache_wq, &amp;amp;info-&amp;gt;ondemand_work)&lt;/p&gt;
&lt;p&gt;// close /dev/cachefiles
                                cachefiles_daemon_release
                                cachefiles_flush_reqs
                                complete(&amp;amp;req-&amp;gt;done)&lt;/p&gt;
&lt;p&gt;// 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()&lt;/p&gt;
&lt;p&gt;When dropping an object, it is no longer necessary to reopen the object,
so use cancel_work_sync() to cancel or wait f…&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;cachefiles: wait for ondemand_object_worker to finish when dropping object&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;process A  processs B  process C  process D&lt;/p&gt;
&lt;p&gt;cachefiles_ondemand_send_req()
// send a read req X
// wait for its completion&lt;/p&gt;
&lt;p&gt;// close ondemand fd
           cachefiles_ondemand_fd_release()
           // set object as CLOSE&lt;/p&gt;
&lt;p&gt;cachefiles_ondemand_daemon_read()
                       // set object as REOPENING
                       queue_work(fscache_wq, &amp;amp;info-&amp;gt;ondemand_work)&lt;/p&gt;
&lt;p&gt;// close /dev/cachefiles
                                cachefiles_daemon_release
                                cachefiles_flush_reqs
                                complete(&amp;amp;req-&amp;gt;done)&lt;/p&gt;
&lt;p&gt;// 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()&lt;/p&gt;
&lt;p&gt;When dropping an object, it is no longer necessary to reopen the object,
so use cancel_work_sync() to cancel or wait f…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-41051</guid>
    </item>
  </channel>
</rss>
