<?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>Mon, 28 Sep 2026 07:55:12 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-40118 — scsi: pm80xx: Fix array-index-out-of-of-bounds on rmmod</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-40118</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;scsi: pm80xx: Fix array-index-out-of-of-bounds on rmmod&lt;/p&gt;
&lt;p&gt;Since commit f7b705c238d1 (&amp;#34;scsi: pm80xx: Set phy_attached to zero when
device is gone&amp;#34;) UBSAN reports:&lt;/p&gt;
&lt;p&gt;UBSAN: array-index-out-of-bounds in drivers/scsi/pm8001/pm8001_sas.c:786:17
  index 28 is out of range for type &amp;#39;pm8001_phy [16]&amp;#39;&lt;/p&gt;
&lt;p&gt;on rmmod when using an expander.&lt;/p&gt;
&lt;p&gt;For a direct attached device, attached_phy contains the local phy id.
For a device behind an expander, attached_phy contains the remote phy
id, not the local phy id.&lt;/p&gt;
&lt;p&gt;I.e. while pm8001_ha will have pm8001_ha-&amp;gt;chip-&amp;gt;n_phy local phys, for a
device behind an expander, attached_phy can be much larger than
pm8001_ha-&amp;gt;chip-&amp;gt;n_phy (depending on the amount of phys of the
expander).&lt;/p&gt;
&lt;p&gt;E.g. on my system pm8001_ha has 8 phys with phy ids 0-7.  One of the
ports has an expander connected.  The expander has 31 phys with phy ids
0-30.&lt;/p&gt;
&lt;p&gt;The pm8001_ha-&amp;gt;phy array only contains the phys of the HBA.  It does not
contain the phys of the expander.  Thus, it is wrong to use attached_phy
to index the pm8001_ha-&amp;gt;phy array for a device behind an expander.&lt;/p&gt;
&lt;p&gt;Thus, we can only clear phy_attached for devices that are directly
attached.&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;scsi: pm80xx: Fix array-index-out-of-of-bounds on rmmod&lt;/p&gt;
&lt;p&gt;Since commit f7b705c238d1 (&amp;#34;scsi: pm80xx: Set phy_attached to zero when
device is gone&amp;#34;) UBSAN reports:&lt;/p&gt;
&lt;p&gt;UBSAN: array-index-out-of-bounds in drivers/scsi/pm8001/pm8001_sas.c:786:17
  index 28 is out of range for type &amp;#39;pm8001_phy [16]&amp;#39;&lt;/p&gt;
&lt;p&gt;on rmmod when using an expander.&lt;/p&gt;
&lt;p&gt;For a direct attached device, attached_phy contains the local phy id.
For a device behind an expander, attached_phy contains the remote phy
id, not the local phy id.&lt;/p&gt;
&lt;p&gt;I.e. while pm8001_ha will have pm8001_ha-&amp;gt;chip-&amp;gt;n_phy local phys, for a
device behind an expander, attached_phy can be much larger than
pm8001_ha-&amp;gt;chip-&amp;gt;n_phy (depending on the amount of phys of the
expander).&lt;/p&gt;
&lt;p&gt;E.g. on my system pm8001_ha has 8 phys with phy ids 0-7.  One of the
ports has an expander connected.  The expander has 31 phys with phy ids
0-30.&lt;/p&gt;
&lt;p&gt;The pm8001_ha-&amp;gt;phy array only contains the phys of the HBA.  It does not
contain the phys of the expander.  Thus, it is wrong to use attached_phy
to index the pm8001_ha-&amp;gt;phy array for a device behind an expander.&lt;/p&gt;
&lt;p&gt;Thus, we can only clear phy_attached for devices that are directly
attached.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-40118</guid>
    </item>
  </channel>
</rss>
