<?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, 03 Oct 2026 05:53:51 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-50304 — mtd: core: fix possible resource leak in init_mtd()</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2022-50304</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;mtd: core: fix possible resource leak in init_mtd()&lt;/p&gt;
&lt;p&gt;I got the error report while inject fault in init_mtd():&lt;/p&gt;
&lt;p&gt;sysfs: cannot create duplicate filename &amp;#39;/devices/virtual/bdi/mtd-0&amp;#39;
Call Trace:
 &amp;lt;TASK&amp;gt;
 dump_stack_lvl+0x67/0x83
 sysfs_warn_dup+0x60/0x70
 sysfs_create_dir_ns+0x109/0x120
 kobject_add_internal+0xce/0x2f0
 kobject_add+0x98/0x110
 device_add+0x179/0xc00
 device_create_groups_vargs+0xf4/0x100
 device_create+0x7b/0xb0
 bdi_register_va.part.13+0x58/0x2d0
 bdi_register+0x9b/0xb0
 init_mtd+0x62/0x171 [mtd]
 do_one_initcall+0x6c/0x3c0
 do_init_module+0x58/0x222
 load_module+0x268e/0x27d0
 __do_sys_finit_module+0xd5/0x140
 do_syscall_64+0x37/0x90
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
 &amp;lt;/TASK&amp;gt;
kobject_add_internal failed for mtd-0 with -EEXIST, don&amp;#39;t try to register
	things with the same name in the same directory.
Error registering mtd class or bdi: -17&lt;/p&gt;
&lt;p&gt;If init_mtdchar() fails in init_mtd(), mtd_bdi will not be unregistered,
as a result, we can&amp;#39;t load the mtd module again, to fix this by calling
bdi_unregister(mtd_bdi) after out_procfs label.&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;mtd: core: fix possible resource leak in init_mtd()&lt;/p&gt;
&lt;p&gt;I got the error report while inject fault in init_mtd():&lt;/p&gt;
&lt;p&gt;sysfs: cannot create duplicate filename &amp;#39;/devices/virtual/bdi/mtd-0&amp;#39;
Call Trace:
 &amp;lt;TASK&amp;gt;
 dump_stack_lvl+0x67/0x83
 sysfs_warn_dup+0x60/0x70
 sysfs_create_dir_ns+0x109/0x120
 kobject_add_internal+0xce/0x2f0
 kobject_add+0x98/0x110
 device_add+0x179/0xc00
 device_create_groups_vargs+0xf4/0x100
 device_create+0x7b/0xb0
 bdi_register_va.part.13+0x58/0x2d0
 bdi_register+0x9b/0xb0
 init_mtd+0x62/0x171 [mtd]
 do_one_initcall+0x6c/0x3c0
 do_init_module+0x58/0x222
 load_module+0x268e/0x27d0
 __do_sys_finit_module+0xd5/0x140
 do_syscall_64+0x37/0x90
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
 &amp;lt;/TASK&amp;gt;
kobject_add_internal failed for mtd-0 with -EEXIST, don&amp;#39;t try to register
	things with the same name in the same directory.
Error registering mtd class or bdi: -17&lt;/p&gt;
&lt;p&gt;If init_mtdchar() fails in init_mtd(), mtd_bdi will not be unregistered,
as a result, we can&amp;#39;t load the mtd module again, to fix this by calling
bdi_unregister(mtd_bdi) after out_procfs label.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2022-50304</guid>
    </item>
  </channel>
</rss>
