<?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 06:31:53 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-42152 — nvmet: fix a possible leak when destroy a ctrl during qp establishment</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-42152</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;nvmet: fix a possible leak when destroy a ctrl during qp establishment&lt;/p&gt;
&lt;p&gt;In nvmet_sq_destroy we capture sq-&amp;gt;ctrl early and if it is non-NULL we
know that a ctrl was allocated (in the admin connect request handler)
and we need to release pending AERs, clear ctrl-&amp;gt;sqs and sq-&amp;gt;ctrl
(for nvme-loop primarily), and drop the final reference on the ctrl.&lt;/p&gt;
&lt;p&gt;However, a small window is possible where nvmet_sq_destroy starts (as
a result of the client giving up and disconnecting) concurrently with
the nvme admin connect cmd (which may be in an early stage). But *before*
kill_and_confirm of sq-&amp;gt;ref (i.e. the admin connect managed to get an sq
live reference). In this case, sq-&amp;gt;ctrl was allocated however after it was
captured in a local variable in nvmet_sq_destroy.
This prevented the final reference drop on the ctrl.&lt;/p&gt;
&lt;p&gt;Solve this by re-capturing the sq-&amp;gt;ctrl after all inflight request has
completed, where for sure sq-&amp;gt;ctrl reference is final, and move forward
based on that.&lt;/p&gt;
&lt;p&gt;This issue was observed in an environment with many hosts connecting
multiple ctrls simoutanuosly, creating a delay in allocating a ctrl
leading up to this race window.&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;nvmet: fix a possible leak when destroy a ctrl during qp establishment&lt;/p&gt;
&lt;p&gt;In nvmet_sq_destroy we capture sq-&amp;gt;ctrl early and if it is non-NULL we
know that a ctrl was allocated (in the admin connect request handler)
and we need to release pending AERs, clear ctrl-&amp;gt;sqs and sq-&amp;gt;ctrl
(for nvme-loop primarily), and drop the final reference on the ctrl.&lt;/p&gt;
&lt;p&gt;However, a small window is possible where nvmet_sq_destroy starts (as
a result of the client giving up and disconnecting) concurrently with
the nvme admin connect cmd (which may be in an early stage). But *before*
kill_and_confirm of sq-&amp;gt;ref (i.e. the admin connect managed to get an sq
live reference). In this case, sq-&amp;gt;ctrl was allocated however after it was
captured in a local variable in nvmet_sq_destroy.
This prevented the final reference drop on the ctrl.&lt;/p&gt;
&lt;p&gt;Solve this by re-capturing the sq-&amp;gt;ctrl after all inflight request has
completed, where for sure sq-&amp;gt;ctrl reference is final, and move forward
based on that.&lt;/p&gt;
&lt;p&gt;This issue was observed in an environment with many hosts connecting
multiple ctrls simoutanuosly, creating a delay in allocating a ctrl
leading up to this race window.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-42152</guid>
    </item>
  </channel>
</rss>
