<?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://cve.radiocsirt.org</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>Sat, 10 Oct 2026 07:56:22 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-22126 — md: fix mddev uaf while iterating all_mddevs list</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2025-22126</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: fix mddev uaf while iterating all_mddevs list&lt;/p&gt;
&lt;p&gt;While iterating all_mddevs list from md_notify_reboot() and md_exit(),
list_for_each_entry_safe is used, and this can race with deletint the
next mddev, causing UAF:&lt;/p&gt;
&lt;p&gt;t1:
spin_lock
//list_for_each_entry_safe(mddev, n, ...)
 mddev_get(mddev1)
 // assume mddev2 is the next entry
 spin_unlock
            t2:
            //remove mddev2
            ...
            mddev_free
            spin_lock
            list_del
            spin_unlock
            kfree(mddev2)
 mddev_put(mddev1)
 spin_lock
 //continue dereference mddev2-&amp;gt;all_mddevs&lt;/p&gt;
&lt;p&gt;The old helper for_each_mddev() actually grab the reference of mddev2
while holding the lock, to prevent from being freed. This problem can be
fixed the same way, however, the code will be complex.&lt;/p&gt;
&lt;p&gt;Hence switch to use list_for_each_entry, in this case mddev_put() can free
the mddev1 and it&amp;#39;s not safe as well. Refer to md_seq_show(), also factor
out a helper mddev_put_locked() to fix this problem.&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: fix mddev uaf while iterating all_mddevs list&lt;/p&gt;
&lt;p&gt;While iterating all_mddevs list from md_notify_reboot() and md_exit(),
list_for_each_entry_safe is used, and this can race with deletint the
next mddev, causing UAF:&lt;/p&gt;
&lt;p&gt;t1:
spin_lock
//list_for_each_entry_safe(mddev, n, ...)
 mddev_get(mddev1)
 // assume mddev2 is the next entry
 spin_unlock
            t2:
            //remove mddev2
            ...
            mddev_free
            spin_lock
            list_del
            spin_unlock
            kfree(mddev2)
 mddev_put(mddev1)
 spin_lock
 //continue dereference mddev2-&amp;gt;all_mddevs&lt;/p&gt;
&lt;p&gt;The old helper for_each_mddev() actually grab the reference of mddev2
while holding the lock, to prevent from being freed. This problem can be
fixed the same way, however, the code will be complex.&lt;/p&gt;
&lt;p&gt;Hence switch to use list_for_each_entry, in this case mddev_put() can free
the mddev1 and it&amp;#39;s not safe as well. Refer to md_seq_show(), also factor
out a helper mddev_put_locked() to fix this problem.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2025-22126</guid>
    </item>
  </channel>
</rss>
