<?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>Wed, 30 Sep 2026 03:34:53 +0000</lastBuildDate>
    <item>
      <title>CVE-2023-53823 — block/rq_qos: protect rq_qos apis with a new lock</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2023-53823</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/rq_qos: protect rq_qos apis with a new lock&lt;/p&gt;
&lt;p&gt;commit 50e34d78815e (&amp;#34;block: disable the elevator int del_gendisk&amp;#34;)
move rq_qos_exit() from disk_release() to del_gendisk(), this will
introduce some problems:&lt;/p&gt;
&lt;p&gt;1) If rq_qos_add() is triggered by enabling iocost/iolatency through
   cgroupfs, then it can concurrent with del_gendisk(), it&amp;#39;s not safe to
   write &amp;#39;q-&amp;gt;rq_qos&amp;#39; concurrently.&lt;/p&gt;
&lt;p&gt;2) Activate cgroup policy that is relied on rq_qos will call
   rq_qos_add() and blkcg_activate_policy(), and if rq_qos_exit() is
   called in the middle, null-ptr-dereference will be triggered in
   blkcg_activate_policy().&lt;/p&gt;
&lt;p&gt;3) blkg_conf_open_bdev() can call blkdev_get_no_open() first to find the
   disk, then if rq_qos_exit() from del_gendisk() is done before
   rq_qos_add(), then memory will be leaked.&lt;/p&gt;
&lt;p&gt;This patch add a new disk level mutex &amp;#39;rq_qos_mutex&amp;#39;:&lt;/p&gt;
&lt;p&gt;1) The lock will protect rq_qos_exit() directly.&lt;/p&gt;
&lt;p&gt;2) For wbt that doesn&amp;#39;t relied on blk-cgroup, rq_qos_add() can only be
   called from disk initialization for now because wbt can&amp;#39;t be
   destructed until rq_qos_exit(), so it&amp;#39;s safe not to protect wbt for
   now. Hoever, in case that rq_qos dynamically destruction is supported
   in the furture, this patch also protect rq_qos_add() from wbt_init()
   directly, this is enough because blk-sysfs already synchronize
   writers with disk removal.&lt;/p&gt;
&lt;p&gt;3) For iocost and iolatency, in order to synchronize disk removal and
   cgro…&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/rq_qos: protect rq_qos apis with a new lock&lt;/p&gt;
&lt;p&gt;commit 50e34d78815e (&amp;#34;block: disable the elevator int del_gendisk&amp;#34;)
move rq_qos_exit() from disk_release() to del_gendisk(), this will
introduce some problems:&lt;/p&gt;
&lt;p&gt;1) If rq_qos_add() is triggered by enabling iocost/iolatency through
   cgroupfs, then it can concurrent with del_gendisk(), it&amp;#39;s not safe to
   write &amp;#39;q-&amp;gt;rq_qos&amp;#39; concurrently.&lt;/p&gt;
&lt;p&gt;2) Activate cgroup policy that is relied on rq_qos will call
   rq_qos_add() and blkcg_activate_policy(), and if rq_qos_exit() is
   called in the middle, null-ptr-dereference will be triggered in
   blkcg_activate_policy().&lt;/p&gt;
&lt;p&gt;3) blkg_conf_open_bdev() can call blkdev_get_no_open() first to find the
   disk, then if rq_qos_exit() from del_gendisk() is done before
   rq_qos_add(), then memory will be leaked.&lt;/p&gt;
&lt;p&gt;This patch add a new disk level mutex &amp;#39;rq_qos_mutex&amp;#39;:&lt;/p&gt;
&lt;p&gt;1) The lock will protect rq_qos_exit() directly.&lt;/p&gt;
&lt;p&gt;2) For wbt that doesn&amp;#39;t relied on blk-cgroup, rq_qos_add() can only be
   called from disk initialization for now because wbt can&amp;#39;t be
   destructed until rq_qos_exit(), so it&amp;#39;s safe not to protect wbt for
   now. Hoever, in case that rq_qos dynamically destruction is supported
   in the furture, this patch also protect rq_qos_add() from wbt_init()
   directly, this is enough because blk-sysfs already synchronize
   writers with disk removal.&lt;/p&gt;
&lt;p&gt;3) For iocost and iolatency, in order to synchronize disk removal and
   cgro…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2023-53823</guid>
    </item>
  </channel>
</rss>
