<?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 01:18:19 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-48818 — net: dsa: mv88e6xxx: don't use devres for mdiobus</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2022-48818</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;net: dsa: mv88e6xxx: don&amp;#39;t use devres for mdiobus&lt;/p&gt;
&lt;p&gt;As explained in commits:
74b6d7d13307 (&amp;#34;net: dsa: realtek: register the MDIO bus under devres&amp;#34;)
5135e96a3dd2 (&amp;#34;net: dsa: don&amp;#39;t allocate the slave_mii_bus using devres&amp;#34;)&lt;/p&gt;
&lt;p&gt;mdiobus_free() will panic when called from devm_mdiobus_free() &amp;lt;-
devres_release_all() &amp;lt;- __device_release_driver(), and that mdiobus was
not previously unregistered.&lt;/p&gt;
&lt;p&gt;The mv88e6xxx is an MDIO device, so the initial set of constraints that
I thought would cause this (I2C or SPI buses which call -&amp;gt;remove on
-&amp;gt;shutdown) do not apply. But there is one more which applies here.&lt;/p&gt;
&lt;p&gt;If the DSA master itself is on a bus that calls -&amp;gt;remove from -&amp;gt;shutdown
(like dpaa2-eth, which is on the fsl-mc bus), there is a device link
between the switch and the DSA master, and device_links_unbind_consumers()
will unbind the Marvell switch driver on shutdown.&lt;/p&gt;
&lt;p&gt;systemd-shutdown[1]: Powering off.
mv88e6085 0x0000000008b96000:00 sw_gl0: Link is Down
fsl-mc dpbp.9: Removing from iommu group 7
fsl-mc dpbp.8: Removing from iommu group 7
------------[ cut here ]------------
kernel BUG at drivers/net/phy/mdio_bus.c:677!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 1 Comm: systemd-shutdow Not tainted 5.16.5-00040-gdc05f73788e5 #15
pc : mdiobus_free+0x44/0x50
lr : devm_mdiobus_free+0x10/0x20
Call trace:
 mdiobus_free+0x44/0x50
 devm_mdiobus_free+0x10/0x20
 devres_release_all+0xa0/0x100
 __d…&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;net: dsa: mv88e6xxx: don&amp;#39;t use devres for mdiobus&lt;/p&gt;
&lt;p&gt;As explained in commits:
74b6d7d13307 (&amp;#34;net: dsa: realtek: register the MDIO bus under devres&amp;#34;)
5135e96a3dd2 (&amp;#34;net: dsa: don&amp;#39;t allocate the slave_mii_bus using devres&amp;#34;)&lt;/p&gt;
&lt;p&gt;mdiobus_free() will panic when called from devm_mdiobus_free() &amp;lt;-
devres_release_all() &amp;lt;- __device_release_driver(), and that mdiobus was
not previously unregistered.&lt;/p&gt;
&lt;p&gt;The mv88e6xxx is an MDIO device, so the initial set of constraints that
I thought would cause this (I2C or SPI buses which call -&amp;gt;remove on
-&amp;gt;shutdown) do not apply. But there is one more which applies here.&lt;/p&gt;
&lt;p&gt;If the DSA master itself is on a bus that calls -&amp;gt;remove from -&amp;gt;shutdown
(like dpaa2-eth, which is on the fsl-mc bus), there is a device link
between the switch and the DSA master, and device_links_unbind_consumers()
will unbind the Marvell switch driver on shutdown.&lt;/p&gt;
&lt;p&gt;systemd-shutdown[1]: Powering off.
mv88e6085 0x0000000008b96000:00 sw_gl0: Link is Down
fsl-mc dpbp.9: Removing from iommu group 7
fsl-mc dpbp.8: Removing from iommu group 7
------------[ cut here ]------------
kernel BUG at drivers/net/phy/mdio_bus.c:677!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 1 Comm: systemd-shutdow Not tainted 5.16.5-00040-gdc05f73788e5 #15
pc : mdiobus_free+0x44/0x50
lr : devm_mdiobus_free+0x10/0x20
Call trace:
 mdiobus_free+0x44/0x50
 devm_mdiobus_free+0x10/0x20
 devres_release_all+0xa0/0x100
 __d…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2022-48818</guid>
    </item>
  </channel>
</rss>
