<?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://db.gcve.eu</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>Mon, 02 Nov 2026 23:11:33 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-98815 — nvme: fix cdev lifetime</title>
      <link>https://db.gcve.eu/vuln/cve-2026-98815</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;nvme: fix cdev lifetime&lt;/p&gt;
&lt;p&gt;Sashiko bot reported a potential problem for the cdev lifetime in [0]
- the code there is heavily based on the NVMe code.&lt;/p&gt;
&lt;p&gt;Currently the NS head .open and .release file_operations methods take and
put a reference to the nvme_ns_head to ensure that this structure does not
disappear while we open fds for that cdev.&lt;/p&gt;
&lt;p&gt;In multipath mode, when we teardown the NS head, we call nvme_cdev_del() -&amp;gt;
cdev_device_del() -&amp;gt; cdev_del(). However after cdev_del() returns, cdevs
already open will remain and their fops will still be callable. As such,
we can still reference the cdev after the nvme_ns_head reference count
drops to 0 (and is freed).&lt;/p&gt;
&lt;p&gt;This can be shown with an application which delays between opening the cdev
and issuing the ioctl while the NS head is being torn down:&lt;/p&gt;
&lt;p&gt;# ./ioctl_file /dev/ng1n1 &amp;amp;
# waiting 10 seconds ....&lt;/p&gt;
&lt;p&gt;# ./ini_nvme_teardown.sh
[   21.221718] nvme nvme1: Removing ctrl: NQN &amp;#34;nvme-test-target&amp;#34;
[   21.274609] nvme nvme2: Removing ctrl: NQN &amp;#34;nvme-test-target&amp;#34;
# now going to issue ioctl ....
[   26.549285] ==================================================================
[   26.550841] BUG: KASAN: slab-use-after-free in cdev_put.part.0+0x3d/0x40
[   26.552352] Read of size 8 at addr ffff88811e7fa170 by task ioctl_file/237
[   26.553805]
[   26.554227] CPU: 3 UID: 0 PID: 237 Comm: ioctl_file Not tainted 7.2.0-rc1-00004-g6852a10e32d4 #921 PREEMPT(lazy)
[   26.554236] Hardwar…&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;nvme: fix cdev lifetime&lt;/p&gt;
&lt;p&gt;Sashiko bot reported a potential problem for the cdev lifetime in [0]
- the code there is heavily based on the NVMe code.&lt;/p&gt;
&lt;p&gt;Currently the NS head .open and .release file_operations methods take and
put a reference to the nvme_ns_head to ensure that this structure does not
disappear while we open fds for that cdev.&lt;/p&gt;
&lt;p&gt;In multipath mode, when we teardown the NS head, we call nvme_cdev_del() -&amp;gt;
cdev_device_del() -&amp;gt; cdev_del(). However after cdev_del() returns, cdevs
already open will remain and their fops will still be callable. As such,
we can still reference the cdev after the nvme_ns_head reference count
drops to 0 (and is freed).&lt;/p&gt;
&lt;p&gt;This can be shown with an application which delays between opening the cdev
and issuing the ioctl while the NS head is being torn down:&lt;/p&gt;
&lt;p&gt;# ./ioctl_file /dev/ng1n1 &amp;amp;
# waiting 10 seconds ....&lt;/p&gt;
&lt;p&gt;# ./ini_nvme_teardown.sh
[   21.221718] nvme nvme1: Removing ctrl: NQN &amp;#34;nvme-test-target&amp;#34;
[   21.274609] nvme nvme2: Removing ctrl: NQN &amp;#34;nvme-test-target&amp;#34;
# now going to issue ioctl ....
[   26.549285] ==================================================================
[   26.550841] BUG: KASAN: slab-use-after-free in cdev_put.part.0+0x3d/0x40
[   26.552352] Read of size 8 at addr ffff88811e7fa170 by task ioctl_file/237
[   26.553805]
[   26.554227] CPU: 3 UID: 0 PID: 237 Comm: ioctl_file Not tainted 7.2.0-rc1-00004-g6852a10e32d4 #921 PREEMPT(lazy)
[   26.554236] Hardwar…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-98815</guid>
    </item>
  </channel>
</rss>
