<?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>Fri, 02 Oct 2026 00:05:38 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-40925 — block: fix request.queuelist usage in flush</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-40925</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;block: fix request.queuelist usage in flush&lt;/p&gt;
&lt;p&gt;Friedrich Weber reported a kernel crash problem and bisected to commit
81ada09cc25e (&amp;#34;blk-flush: reuse rq queuelist in flush state machine&amp;#34;).&lt;/p&gt;
&lt;p&gt;The root cause is that we use &amp;#34;list_move_tail(&amp;amp;rq-&amp;gt;queuelist, pending)&amp;#34;
in the PREFLUSH/POSTFLUSH sequences. But rq-&amp;gt;queuelist.next == xxx since
it&amp;#39;s popped out from plug-&amp;gt;cached_rq in __blk_mq_alloc_requests_batch().
We don&amp;#39;t initialize its queuelist just for this first request, although
the queuelist of all later popped requests will be initialized.&lt;/p&gt;
&lt;p&gt;Fix it by changing to use &amp;#34;list_add_tail(&amp;amp;rq-&amp;gt;queuelist, pending)&amp;#34; so
rq-&amp;gt;queuelist doesn&amp;#39;t need to be initialized. It should be ok since rq
can&amp;#39;t be on any list when PREFLUSH or POSTFLUSH, has no move actually.&lt;/p&gt;
&lt;p&gt;Please note the commit 81ada09cc25e (&amp;#34;blk-flush: reuse rq queuelist in
flush state machine&amp;#34;) also has another requirement that no drivers would
touch rq-&amp;gt;queuelist after blk_mq_end_request() since we will reuse it to
add rq to the post-flush pending list in POSTFLUSH. If this is not true,
we will have to revert that commit IMHO.&lt;/p&gt;
&lt;p&gt;This updated version adds &amp;#34;list_del_init(&amp;amp;rq-&amp;gt;queuelist)&amp;#34; in flush rq
callback since the dm layer may submit request of a weird invalid format
(REQ_FSEQ_PREFLUSH | REQ_FSEQ_POSTFLUSH), which causes double list_add
if without this &amp;#34;list_del_init(&amp;amp;rq-&amp;gt;queuelist)&amp;#34;. The weird invalid format
problem should be fixed in dm layer.&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;block: fix request.queuelist usage in flush&lt;/p&gt;
&lt;p&gt;Friedrich Weber reported a kernel crash problem and bisected to commit
81ada09cc25e (&amp;#34;blk-flush: reuse rq queuelist in flush state machine&amp;#34;).&lt;/p&gt;
&lt;p&gt;The root cause is that we use &amp;#34;list_move_tail(&amp;amp;rq-&amp;gt;queuelist, pending)&amp;#34;
in the PREFLUSH/POSTFLUSH sequences. But rq-&amp;gt;queuelist.next == xxx since
it&amp;#39;s popped out from plug-&amp;gt;cached_rq in __blk_mq_alloc_requests_batch().
We don&amp;#39;t initialize its queuelist just for this first request, although
the queuelist of all later popped requests will be initialized.&lt;/p&gt;
&lt;p&gt;Fix it by changing to use &amp;#34;list_add_tail(&amp;amp;rq-&amp;gt;queuelist, pending)&amp;#34; so
rq-&amp;gt;queuelist doesn&amp;#39;t need to be initialized. It should be ok since rq
can&amp;#39;t be on any list when PREFLUSH or POSTFLUSH, has no move actually.&lt;/p&gt;
&lt;p&gt;Please note the commit 81ada09cc25e (&amp;#34;blk-flush: reuse rq queuelist in
flush state machine&amp;#34;) also has another requirement that no drivers would
touch rq-&amp;gt;queuelist after blk_mq_end_request() since we will reuse it to
add rq to the post-flush pending list in POSTFLUSH. If this is not true,
we will have to revert that commit IMHO.&lt;/p&gt;
&lt;p&gt;This updated version adds &amp;#34;list_del_init(&amp;amp;rq-&amp;gt;queuelist)&amp;#34; in flush rq
callback since the dm layer may submit request of a weird invalid format
(REQ_FSEQ_PREFLUSH | REQ_FSEQ_POSTFLUSH), which causes double list_add
if without this &amp;#34;list_del_init(&amp;amp;rq-&amp;gt;queuelist)&amp;#34;. The weird invalid format
problem should be fixed in dm layer.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-40925</guid>
    </item>
  </channel>
</rss>
