<?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>Wed, 30 Sep 2026 05:47:59 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-38658 — nvmet: pci-epf: Do not complete commands twice if nvmet_req_init() fails</title>
      <link>https://db.gcve.eu/vuln/cve-2025-38658</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: pci-epf: Do not complete commands twice if nvmet_req_init() fails&lt;/p&gt;
&lt;p&gt;Have nvmet_req_init() and req-&amp;gt;execute() complete failed commands.&lt;/p&gt;
&lt;p&gt;Description of the problem:
nvmet_req_init() calls __nvmet_req_complete() internally upon failure,
e.g., unsupported opcode, which calls the &amp;#34;queue_response&amp;#34; callback,
this results in nvmet_pci_epf_queue_response() being called, which will
call nvmet_pci_epf_complete_iod() if data_len is 0 or if dma_dir is
different from DMA_TO_DEVICE. This results in a double completion as
nvmet_pci_epf_exec_iod_work() also calls nvmet_pci_epf_complete_iod()
when nvmet_req_init() fails.&lt;/p&gt;
&lt;p&gt;Steps to reproduce:
On the host send a command with an unsupported opcode with nvme-cli,
For example the admin command &amp;#34;security receive&amp;#34;
$ sudo nvme security-recv /dev/nvme0n1 -n1 -x4096&lt;/p&gt;
&lt;p&gt;This triggers a double completion as nvmet_req_init() fails and
nvmet_pci_epf_queue_response() is called, here iod-&amp;gt;dma_dir is still
in the default state of &amp;#34;DMA_NONE&amp;#34; as set by default in
nvmet_pci_epf_alloc_iod(), so nvmet_pci_epf_complete_iod() is called.
Because nvmet_req_init() failed nvmet_pci_epf_complete_iod() is also
called in nvmet_pci_epf_exec_iod_work() leading to a double completion.
This not only sends two completions to the host but also corrupts the
state of the PCI NVMe target leading to kernel oops.&lt;/p&gt;
&lt;p&gt;This patch lets nvmet_req_init() and req-&amp;gt;execute() complete all failed
commands, and removes the…&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: pci-epf: Do not complete commands twice if nvmet_req_init() fails&lt;/p&gt;
&lt;p&gt;Have nvmet_req_init() and req-&amp;gt;execute() complete failed commands.&lt;/p&gt;
&lt;p&gt;Description of the problem:
nvmet_req_init() calls __nvmet_req_complete() internally upon failure,
e.g., unsupported opcode, which calls the &amp;#34;queue_response&amp;#34; callback,
this results in nvmet_pci_epf_queue_response() being called, which will
call nvmet_pci_epf_complete_iod() if data_len is 0 or if dma_dir is
different from DMA_TO_DEVICE. This results in a double completion as
nvmet_pci_epf_exec_iod_work() also calls nvmet_pci_epf_complete_iod()
when nvmet_req_init() fails.&lt;/p&gt;
&lt;p&gt;Steps to reproduce:
On the host send a command with an unsupported opcode with nvme-cli,
For example the admin command &amp;#34;security receive&amp;#34;
$ sudo nvme security-recv /dev/nvme0n1 -n1 -x4096&lt;/p&gt;
&lt;p&gt;This triggers a double completion as nvmet_req_init() fails and
nvmet_pci_epf_queue_response() is called, here iod-&amp;gt;dma_dir is still
in the default state of &amp;#34;DMA_NONE&amp;#34; as set by default in
nvmet_pci_epf_alloc_iod(), so nvmet_pci_epf_complete_iod() is called.
Because nvmet_req_init() failed nvmet_pci_epf_complete_iod() is also
called in nvmet_pci_epf_exec_iod_work() leading to a double completion.
This not only sends two completions to the host but also corrupts the
state of the PCI NVMe target leading to kernel oops.&lt;/p&gt;
&lt;p&gt;This patch lets nvmet_req_init() and req-&amp;gt;execute() complete all failed
commands, and removes the…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2025-38658</guid>
    </item>
  </channel>
</rss>
