<?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, 06 Oct 2026 16:20:55 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-39476 — md/raid5: fix deadlock that raid5d() wait for itself to clear MD_SB_CHANGE_PENDING</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-39476</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;md/raid5: fix deadlock that raid5d() wait for itself to clear MD_SB_CHANGE_PENDING&lt;/p&gt;
&lt;p&gt;Xiao reported that lvm2 test lvconvert-raid-takeover.sh can hang with
small possibility, the root cause is exactly the same as commit
bed9e27baf52 (&amp;#34;Revert &amp;#34;md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d&amp;#34;&amp;#34;)&lt;/p&gt;
&lt;p&gt;However, Dan reported another hang after that, and junxiao investigated
the problem and found out that this is caused by plugged bio can&amp;#39;t issue
from raid5d().&lt;/p&gt;
&lt;p&gt;Current implementation in raid5d() has a weird dependence:&lt;/p&gt;
&lt;p&gt;1) md_check_recovery() from raid5d() must hold &amp;#39;reconfig_mutex&amp;#39; to clear
   MD_SB_CHANGE_PENDING;
2) raid5d() handles IO in a deadloop, until all IO are issued;
3) IO from raid5d() must wait for MD_SB_CHANGE_PENDING to be cleared;&lt;/p&gt;
&lt;p&gt;This behaviour is introduce before v2.6, and for consequence, if other
context hold &amp;#39;reconfig_mutex&amp;#39;, and md_check_recovery() can&amp;#39;t update
super_block, then raid5d() will waste one cpu 100% by the deadloop, until
&amp;#39;reconfig_mutex&amp;#39; is released.&lt;/p&gt;
&lt;p&gt;Refer to the implementation from raid1 and raid10, fix this problem by
skipping issue IO if MD_SB_CHANGE_PENDING is still set after
md_check_recovery(), daemon thread will be woken up when &amp;#39;reconfig_mutex&amp;#39;
is released. Meanwhile, the hang problem will be fixed as well.&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;md/raid5: fix deadlock that raid5d() wait for itself to clear MD_SB_CHANGE_PENDING&lt;/p&gt;
&lt;p&gt;Xiao reported that lvm2 test lvconvert-raid-takeover.sh can hang with
small possibility, the root cause is exactly the same as commit
bed9e27baf52 (&amp;#34;Revert &amp;#34;md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d&amp;#34;&amp;#34;)&lt;/p&gt;
&lt;p&gt;However, Dan reported another hang after that, and junxiao investigated
the problem and found out that this is caused by plugged bio can&amp;#39;t issue
from raid5d().&lt;/p&gt;
&lt;p&gt;Current implementation in raid5d() has a weird dependence:&lt;/p&gt;
&lt;p&gt;1) md_check_recovery() from raid5d() must hold &amp;#39;reconfig_mutex&amp;#39; to clear
   MD_SB_CHANGE_PENDING;
2) raid5d() handles IO in a deadloop, until all IO are issued;
3) IO from raid5d() must wait for MD_SB_CHANGE_PENDING to be cleared;&lt;/p&gt;
&lt;p&gt;This behaviour is introduce before v2.6, and for consequence, if other
context hold &amp;#39;reconfig_mutex&amp;#39;, and md_check_recovery() can&amp;#39;t update
super_block, then raid5d() will waste one cpu 100% by the deadloop, until
&amp;#39;reconfig_mutex&amp;#39; is released.&lt;/p&gt;
&lt;p&gt;Refer to the implementation from raid1 and raid10, fix this problem by
skipping issue IO if MD_SB_CHANGE_PENDING is still set after
md_check_recovery(), daemon thread will be woken up when &amp;#39;reconfig_mutex&amp;#39;
is released. Meanwhile, the hang problem will be fixed as well.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-39476</guid>
    </item>
  </channel>
</rss>
