<?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>Thu, 01 Oct 2026 23:46:57 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-49902 — block: Fix possible memory leak for rq_wb on add_disk failure</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2022-49902</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 possible memory leak for rq_wb on add_disk failure&lt;/p&gt;
&lt;p&gt;kmemleak reported memory leaks in device_add_disk():&lt;/p&gt;
&lt;p&gt;kmemleak: 3 new suspected memory leaks&lt;/p&gt;
&lt;p&gt;unreferenced object 0xffff88800f420800 (size 512):
  comm &amp;#34;modprobe&amp;#34;, pid 4275, jiffies 4295639067 (age 223.512s)
  hex dump (first 32 bytes):
    04 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00  ................
    00 e1 f5 05 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [&amp;lt;00000000d3662699&amp;gt;] kmalloc_trace+0x26/0x60
    [&amp;lt;00000000edc7aadc&amp;gt;] wbt_init+0x50/0x6f0
    [&amp;lt;0000000069601d16&amp;gt;] wbt_enable_default+0x157/0x1c0
    [&amp;lt;0000000028fc393f&amp;gt;] blk_register_queue+0x2a4/0x420
    [&amp;lt;000000007345a042&amp;gt;] device_add_disk+0x6fd/0xe40
    [&amp;lt;0000000060e6aab0&amp;gt;] nbd_dev_add+0x828/0xbf0 [nbd]
    ...&lt;/p&gt;
&lt;p&gt;It is because the memory allocated in wbt_enable_default() is not
released in device_add_disk() error path.
Normally, these memory are freed in:&lt;/p&gt;
&lt;p&gt;del_gendisk()
  rq_qos_exit()
    rqos-&amp;gt;ops-&amp;gt;exit(rqos);
      wbt_exit()&lt;/p&gt;
&lt;p&gt;So rq_qos_exit() is called to free the rq_wb memory for wbt_init().
However in the error path of device_add_disk(), only
blk_unregister_queue() is called and make rq_wb memory leaked.&lt;/p&gt;
&lt;p&gt;Add rq_qos_exit() to the error path to fix it.&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 possible memory leak for rq_wb on add_disk failure&lt;/p&gt;
&lt;p&gt;kmemleak reported memory leaks in device_add_disk():&lt;/p&gt;
&lt;p&gt;kmemleak: 3 new suspected memory leaks&lt;/p&gt;
&lt;p&gt;unreferenced object 0xffff88800f420800 (size 512):
  comm &amp;#34;modprobe&amp;#34;, pid 4275, jiffies 4295639067 (age 223.512s)
  hex dump (first 32 bytes):
    04 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00  ................
    00 e1 f5 05 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [&amp;lt;00000000d3662699&amp;gt;] kmalloc_trace+0x26/0x60
    [&amp;lt;00000000edc7aadc&amp;gt;] wbt_init+0x50/0x6f0
    [&amp;lt;0000000069601d16&amp;gt;] wbt_enable_default+0x157/0x1c0
    [&amp;lt;0000000028fc393f&amp;gt;] blk_register_queue+0x2a4/0x420
    [&amp;lt;000000007345a042&amp;gt;] device_add_disk+0x6fd/0xe40
    [&amp;lt;0000000060e6aab0&amp;gt;] nbd_dev_add+0x828/0xbf0 [nbd]
    ...&lt;/p&gt;
&lt;p&gt;It is because the memory allocated in wbt_enable_default() is not
released in device_add_disk() error path.
Normally, these memory are freed in:&lt;/p&gt;
&lt;p&gt;del_gendisk()
  rq_qos_exit()
    rqos-&amp;gt;ops-&amp;gt;exit(rqos);
      wbt_exit()&lt;/p&gt;
&lt;p&gt;So rq_qos_exit() is called to free the rq_wb memory for wbt_init().
However in the error path of device_add_disk(), only
blk_unregister_queue() is called and make rq_wb memory leaked.&lt;/p&gt;
&lt;p&gt;Add rq_qos_exit() to the error path to fix it.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2022-49902</guid>
    </item>
  </channel>
</rss>
