<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-01T21:41:28.974521+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2025-22083</id>
    <title>CVE-2025-22083 — vhost-scsi: Fix handling of multiple calls to vhost_scsi_set_endpoint</title>
    <updated>2026-10-01T21:41:29.391508+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> 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</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>vhost-scsi: Fix handling of multiple calls to vhost_scsi_set_endpoint</p>
<p>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:</p>
<p>1. Use-after-free when no tpgs are found:</p>
<p>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:</p>
<p>vhost_vq_set_backend(vq, vs_tpg);
...</p>
<p>kfree(vs-&gt;vs_tpg);
vs-&gt;vs_tpg = vs_tpg;</p>
<p>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:</p>
<p>kfree(vs-&gt;vs_tpg);
vs-&gt;vs_tpg = vs_tpg;</p>
<p>If a scsi request is then sent we do:</p>
<p>vhost_scsi_handle_vq -&gt; vhost_scsi_get_req -&gt; vhost_vq_get_backend</p>
<p>which sees the vs_tpg we just did a kfree on.</p>
<p>2. Tpg dir removal hang:</p>
<p>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.</p>
<p>The problem is that if vhost_scsi_set_endpoint detects a tpg is already
in the vs-&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.…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2025-22083"/>
  </entry>
</feed>
