<?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>Sat, 03 Oct 2026 04:16:40 +0000</lastBuildDate>
    <item>
      <title>CVE-2023-52617 — PCI: switchtec: Fix stdev_release() crash after surprise hot remove</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2023-52617</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;PCI: switchtec: Fix stdev_release() crash after surprise hot remove&lt;/p&gt;
&lt;p&gt;A PCI device hot removal may occur while stdev-&amp;gt;cdev is held open. The call
to stdev_release() then happens during close or exit, at a point way past
switchtec_pci_remove(). Otherwise the last ref would vanish with the
trailing put_device(), just before return.&lt;/p&gt;
&lt;p&gt;At that later point in time, the devm cleanup has already removed the
stdev-&amp;gt;mmio_mrpc mapping. Also, the stdev-&amp;gt;pdev reference was not a counted
one. Therefore, in DMA mode, the iowrite32() in stdev_release() will cause
a fatal page fault, and the subsequent dma_free_coherent(), if reached,
would pass a stale &amp;amp;stdev-&amp;gt;pdev-&amp;gt;dev pointer.&lt;/p&gt;
&lt;p&gt;Fix by moving MRPC DMA shutdown into switchtec_pci_remove(), after
stdev_kill(). Counting the stdev-&amp;gt;pdev ref is now optional, but may prevent
future accidents.&lt;/p&gt;
&lt;p&gt;Reproducible via the script at
https://lore.kernel.org/r/20231113212150.96410-1-dns@arista.com&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;PCI: switchtec: Fix stdev_release() crash after surprise hot remove&lt;/p&gt;
&lt;p&gt;A PCI device hot removal may occur while stdev-&amp;gt;cdev is held open. The call
to stdev_release() then happens during close or exit, at a point way past
switchtec_pci_remove(). Otherwise the last ref would vanish with the
trailing put_device(), just before return.&lt;/p&gt;
&lt;p&gt;At that later point in time, the devm cleanup has already removed the
stdev-&amp;gt;mmio_mrpc mapping. Also, the stdev-&amp;gt;pdev reference was not a counted
one. Therefore, in DMA mode, the iowrite32() in stdev_release() will cause
a fatal page fault, and the subsequent dma_free_coherent(), if reached,
would pass a stale &amp;amp;stdev-&amp;gt;pdev-&amp;gt;dev pointer.&lt;/p&gt;
&lt;p&gt;Fix by moving MRPC DMA shutdown into switchtec_pci_remove(), after
stdev_kill(). Counting the stdev-&amp;gt;pdev ref is now optional, but may prevent
future accidents.&lt;/p&gt;
&lt;p&gt;Reproducible via the script at
https://lore.kernel.org/r/20231113212150.96410-1-dns@arista.com&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2023-52617</guid>
    </item>
  </channel>
</rss>
