<?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>Tue, 06 Oct 2026 18:55:10 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-49926 — net: dsa: Fix possible memory leaks in dsa_loop_init()</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2022-49926</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: Fix possible memory leaks in dsa_loop_init()&lt;/p&gt;
&lt;p&gt;kmemleak reported memory leaks in dsa_loop_init():&lt;/p&gt;
&lt;p&gt;kmemleak: 12 new suspected memory leaks&lt;/p&gt;
&lt;p&gt;unreferenced object 0xffff8880138ce000 (size 2048):
  comm &amp;#34;modprobe&amp;#34;, pid 390, jiffies 4295040478 (age 238.976s)
  backtrace:
    [&amp;lt;000000006a94f1d5&amp;gt;] kmalloc_trace+0x26/0x60
    [&amp;lt;00000000a9c44622&amp;gt;] phy_device_create+0x5d/0x970
    [&amp;lt;00000000d0ee2afc&amp;gt;] get_phy_device+0xf3/0x2b0
    [&amp;lt;00000000dca0c71f&amp;gt;] __fixed_phy_register.part.0+0x92/0x4e0
    [&amp;lt;000000008a834798&amp;gt;] fixed_phy_register+0x84/0xb0
    [&amp;lt;0000000055223fcb&amp;gt;] dsa_loop_init+0xa9/0x116 [dsa_loop]
    ...&lt;/p&gt;
&lt;p&gt;There are two reasons for memleak in dsa_loop_init().&lt;/p&gt;
&lt;p&gt;First, fixed_phy_register() create and register phy_device:&lt;/p&gt;
&lt;p&gt;fixed_phy_register()
  get_phy_device()
    phy_device_create() # freed by phy_device_free()
  phy_device_register() # freed by phy_device_remove()&lt;/p&gt;
&lt;p&gt;But fixed_phy_unregister() only calls phy_device_remove().
So the memory allocated in phy_device_create() is leaked.&lt;/p&gt;
&lt;p&gt;Second, when mdio_driver_register() fail in dsa_loop_init(),
it just returns and there is no cleanup for phydevs.&lt;/p&gt;
&lt;p&gt;Fix the problems by catching the error of mdio_driver_register()
in dsa_loop_init(), then calling both fixed_phy_unregister() and
phy_device_free() to release phydevs.
Also add a function for phydevs cleanup to avoid duplacate.&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: Fix possible memory leaks in dsa_loop_init()&lt;/p&gt;
&lt;p&gt;kmemleak reported memory leaks in dsa_loop_init():&lt;/p&gt;
&lt;p&gt;kmemleak: 12 new suspected memory leaks&lt;/p&gt;
&lt;p&gt;unreferenced object 0xffff8880138ce000 (size 2048):
  comm &amp;#34;modprobe&amp;#34;, pid 390, jiffies 4295040478 (age 238.976s)
  backtrace:
    [&amp;lt;000000006a94f1d5&amp;gt;] kmalloc_trace+0x26/0x60
    [&amp;lt;00000000a9c44622&amp;gt;] phy_device_create+0x5d/0x970
    [&amp;lt;00000000d0ee2afc&amp;gt;] get_phy_device+0xf3/0x2b0
    [&amp;lt;00000000dca0c71f&amp;gt;] __fixed_phy_register.part.0+0x92/0x4e0
    [&amp;lt;000000008a834798&amp;gt;] fixed_phy_register+0x84/0xb0
    [&amp;lt;0000000055223fcb&amp;gt;] dsa_loop_init+0xa9/0x116 [dsa_loop]
    ...&lt;/p&gt;
&lt;p&gt;There are two reasons for memleak in dsa_loop_init().&lt;/p&gt;
&lt;p&gt;First, fixed_phy_register() create and register phy_device:&lt;/p&gt;
&lt;p&gt;fixed_phy_register()
  get_phy_device()
    phy_device_create() # freed by phy_device_free()
  phy_device_register() # freed by phy_device_remove()&lt;/p&gt;
&lt;p&gt;But fixed_phy_unregister() only calls phy_device_remove().
So the memory allocated in phy_device_create() is leaked.&lt;/p&gt;
&lt;p&gt;Second, when mdio_driver_register() fail in dsa_loop_init(),
it just returns and there is no cleanup for phydevs.&lt;/p&gt;
&lt;p&gt;Fix the problems by catching the error of mdio_driver_register()
in dsa_loop_init(), then calling both fixed_phy_unregister() and
phy_device_free() to release phydevs.
Also add a function for phydevs cleanup to avoid duplacate.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2022-49926</guid>
    </item>
  </channel>
</rss>
