<?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 06:55:21 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-26899 — block: fix deadlock between bd_link_disk_holder and partition scan</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-26899</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 deadlock between bd_link_disk_holder and partition scan&lt;/p&gt;
&lt;p&gt;&amp;#39;open_mutex&amp;#39; of gendisk is used to protect open/close block devices. But
in bd_link_disk_holder(), it is used to protect the creation of symlink
between holding disk and slave bdev, which introduces some issues.&lt;/p&gt;
&lt;p&gt;When bd_link_disk_holder() is called, the driver is usually in the process
of initialization/modification and may suspend submitting io. At this
time, any io hold &amp;#39;open_mutex&amp;#39;, such as scanning partitions, can cause
deadlocks. For example, in raid:&lt;/p&gt;
&lt;p&gt;T1                              T2
bdev_open_by_dev
 lock open_mutex [1]
 ...
  efi_partition
  ...
   md_submit_bio
				md_ioctl mddev_syspend
				  -&amp;gt; suspend all io
				 md_add_new_disk
				  bind_rdev_to_array
				   bd_link_disk_holder
				    try lock open_mutex [2]
    md_handle_request
     -&amp;gt; wait mddev_resume&lt;/p&gt;
&lt;p&gt;T1 scan partition, T2 add a new device to raid. T1 waits for T2 to resume
mddev, but T2 waits for open_mutex held by T1. Deadlock occurs.&lt;/p&gt;
&lt;p&gt;Fix it by introducing a local mutex &amp;#39;blk_holder_mutex&amp;#39; to replace
&amp;#39;open_mutex&amp;#39;.&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 deadlock between bd_link_disk_holder and partition scan&lt;/p&gt;
&lt;p&gt;&amp;#39;open_mutex&amp;#39; of gendisk is used to protect open/close block devices. But
in bd_link_disk_holder(), it is used to protect the creation of symlink
between holding disk and slave bdev, which introduces some issues.&lt;/p&gt;
&lt;p&gt;When bd_link_disk_holder() is called, the driver is usually in the process
of initialization/modification and may suspend submitting io. At this
time, any io hold &amp;#39;open_mutex&amp;#39;, such as scanning partitions, can cause
deadlocks. For example, in raid:&lt;/p&gt;
&lt;p&gt;T1                              T2
bdev_open_by_dev
 lock open_mutex [1]
 ...
  efi_partition
  ...
   md_submit_bio
				md_ioctl mddev_syspend
				  -&amp;gt; suspend all io
				 md_add_new_disk
				  bind_rdev_to_array
				   bd_link_disk_holder
				    try lock open_mutex [2]
    md_handle_request
     -&amp;gt; wait mddev_resume&lt;/p&gt;
&lt;p&gt;T1 scan partition, T2 add a new device to raid. T1 waits for T2 to resume
mddev, but T2 waits for open_mutex held by T1. Deadlock occurs.&lt;/p&gt;
&lt;p&gt;Fix it by introducing a local mutex &amp;#39;blk_holder_mutex&amp;#39; to replace
&amp;#39;open_mutex&amp;#39;.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-26899</guid>
    </item>
  </channel>
</rss>
