<?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>Thu, 01 Oct 2026 21:41:28 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-22083 — vhost-scsi: Fix handling of multiple calls to vhost_scsi_set_endpoint</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-22083</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP, Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP, Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;vhost-scsi: Fix handling of multiple calls to vhost_scsi_set_endpoint&lt;/p&gt;
&lt;p&gt;If vhost_scsi_set_endpoint is called multiple times without a
vhost_scsi_clear_endpoint between them, we can hit multiple bugs
found by Haoran Zhang:&lt;/p&gt;
&lt;p&gt;1. Use-after-free when no tpgs are found:&lt;/p&gt;
&lt;p&gt;This fixes a use after free that occurs when vhost_scsi_set_endpoint is
called more than once and calls after the first call do not find any
tpgs to add to the vs_tpg. When vhost_scsi_set_endpoint first finds
tpgs to add to the vs_tpg array match=true, so we will do:&lt;/p&gt;
&lt;p&gt;vhost_vq_set_backend(vq, vs_tpg);
...&lt;/p&gt;
&lt;p&gt;kfree(vs-&amp;gt;vs_tpg);
vs-&amp;gt;vs_tpg = vs_tpg;&lt;/p&gt;
&lt;p&gt;If vhost_scsi_set_endpoint is called again and no tpgs are found
match=false so we skip the vhost_vq_set_backend call leaving the
pointer to the vs_tpg we then free via:&lt;/p&gt;
&lt;p&gt;kfree(vs-&amp;gt;vs_tpg);
vs-&amp;gt;vs_tpg = vs_tpg;&lt;/p&gt;
&lt;p&gt;If a scsi request is then sent we do:&lt;/p&gt;
&lt;p&gt;vhost_scsi_handle_vq -&amp;gt; vhost_scsi_get_req -&amp;gt; vhost_vq_get_backend&lt;/p&gt;
&lt;p&gt;which sees the vs_tpg we just did a kfree on.&lt;/p&gt;
&lt;p&gt;2. Tpg dir removal hang:&lt;/p&gt;
&lt;p&gt;This patch fixes an issue where we cannot remove a LIO/target layer
tpg (and structs above it like the target) dir due to the refcount
dropping to -1.&lt;/p&gt;
&lt;p&gt;The problem is that if vhost_scsi_set_endpoint detects a tpg is already
in the vs-&amp;gt;vs_tpg array or if the tpg has been removed so
target_depend_item fails, the undepend goto handler will do
target_undepend_item on all tpgs in the vs_tpg array dropping their
refcount to 0.…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP, Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP, Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;vhost-scsi: Fix handling of multiple calls to vhost_scsi_set_endpoint&lt;/p&gt;
&lt;p&gt;If vhost_scsi_set_endpoint is called multiple times without a
vhost_scsi_clear_endpoint between them, we can hit multiple bugs
found by Haoran Zhang:&lt;/p&gt;
&lt;p&gt;1. Use-after-free when no tpgs are found:&lt;/p&gt;
&lt;p&gt;This fixes a use after free that occurs when vhost_scsi_set_endpoint is
called more than once and calls after the first call do not find any
tpgs to add to the vs_tpg. When vhost_scsi_set_endpoint first finds
tpgs to add to the vs_tpg array match=true, so we will do:&lt;/p&gt;
&lt;p&gt;vhost_vq_set_backend(vq, vs_tpg);
...&lt;/p&gt;
&lt;p&gt;kfree(vs-&amp;gt;vs_tpg);
vs-&amp;gt;vs_tpg = vs_tpg;&lt;/p&gt;
&lt;p&gt;If vhost_scsi_set_endpoint is called again and no tpgs are found
match=false so we skip the vhost_vq_set_backend call leaving the
pointer to the vs_tpg we then free via:&lt;/p&gt;
&lt;p&gt;kfree(vs-&amp;gt;vs_tpg);
vs-&amp;gt;vs_tpg = vs_tpg;&lt;/p&gt;
&lt;p&gt;If a scsi request is then sent we do:&lt;/p&gt;
&lt;p&gt;vhost_scsi_handle_vq -&amp;gt; vhost_scsi_get_req -&amp;gt; vhost_vq_get_backend&lt;/p&gt;
&lt;p&gt;which sees the vs_tpg we just did a kfree on.&lt;/p&gt;
&lt;p&gt;2. Tpg dir removal hang:&lt;/p&gt;
&lt;p&gt;This patch fixes an issue where we cannot remove a LIO/target layer
tpg (and structs above it like the target) dir due to the refcount
dropping to -1.&lt;/p&gt;
&lt;p&gt;The problem is that if vhost_scsi_set_endpoint detects a tpg is already
in the vs-&amp;gt;vs_tpg array or if the tpg has been removed so
target_depend_item fails, the undepend goto handler will do
target_undepend_item on all tpgs in the vs_tpg array dropping their
refcount to 0.…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-22083</guid>
    </item>
  </channel>
</rss>
