<?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>Tue, 29 Sep 2026 03:51:25 +0000</lastBuildDate>
    <item>
      <title>CVE-2023-52771 — cxl/port: Fix delete_endpoint() vs parent unregistration race</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2023-52771</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;cxl/port: Fix delete_endpoint() vs parent unregistration race&lt;/p&gt;
&lt;p&gt;The CXL subsystem, at cxl_mem -&amp;gt;probe() time, establishes a lineage of
ports (struct cxl_port objects) between an endpoint and the root of a
CXL topology. Each port including the endpoint port is attached to the
cxl_port driver.&lt;/p&gt;
&lt;p&gt;Given that setup, it follows that when either any port in that lineage
goes through a cxl_port -&amp;gt;remove() event, or the memdev goes through a
cxl_mem -&amp;gt;remove() event. The hierarchy below the removed port, or the
entire hierarchy if the memdev is removed needs to come down.&lt;/p&gt;
&lt;p&gt;The delete_endpoint() callback is careful to check whether it is being
called to tear down the hierarchy, or if it is only being called to
teardown the memdev because an ancestor port is going through
-&amp;gt;remove().&lt;/p&gt;
&lt;p&gt;That care needs to take the device_lock() of the endpoint&amp;#39;s parent.
Which requires 2 bugs to be fixed:&lt;/p&gt;
&lt;p&gt;1/ A reference on the parent is needed to prevent use-after-free
   scenarios like this signature:&lt;/p&gt;
&lt;p&gt;BUG: spinlock bad magic on CPU#0, kworker/u56:0/11
    Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS edk2-20230524-3.fc38 05/24/2023
    Workqueue: cxl_port detach_memdev [cxl_core]
    RIP: 0010:spin_bug+0x65/0xa0
    Call Trace:
      do_raw_spin_lock+0x69/0xa0
     __mutex_lock+0x695/0xb80
     delete_endpoint+0xad/0x150 [cxl_core]
     devres_release_all+0xb8/0x110
     device_unbind_cleanup+0xe/0x70
     device_release_…&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;cxl/port: Fix delete_endpoint() vs parent unregistration race&lt;/p&gt;
&lt;p&gt;The CXL subsystem, at cxl_mem -&amp;gt;probe() time, establishes a lineage of
ports (struct cxl_port objects) between an endpoint and the root of a
CXL topology. Each port including the endpoint port is attached to the
cxl_port driver.&lt;/p&gt;
&lt;p&gt;Given that setup, it follows that when either any port in that lineage
goes through a cxl_port -&amp;gt;remove() event, or the memdev goes through a
cxl_mem -&amp;gt;remove() event. The hierarchy below the removed port, or the
entire hierarchy if the memdev is removed needs to come down.&lt;/p&gt;
&lt;p&gt;The delete_endpoint() callback is careful to check whether it is being
called to tear down the hierarchy, or if it is only being called to
teardown the memdev because an ancestor port is going through
-&amp;gt;remove().&lt;/p&gt;
&lt;p&gt;That care needs to take the device_lock() of the endpoint&amp;#39;s parent.
Which requires 2 bugs to be fixed:&lt;/p&gt;
&lt;p&gt;1/ A reference on the parent is needed to prevent use-after-free
   scenarios like this signature:&lt;/p&gt;
&lt;p&gt;BUG: spinlock bad magic on CPU#0, kworker/u56:0/11
    Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS edk2-20230524-3.fc38 05/24/2023
    Workqueue: cxl_port detach_memdev [cxl_core]
    RIP: 0010:spin_bug+0x65/0xa0
    Call Trace:
      do_raw_spin_lock+0x69/0xa0
     __mutex_lock+0x695/0xb80
     delete_endpoint+0xad/0x150 [cxl_core]
     devres_release_all+0xb8/0x110
     device_unbind_cleanup+0xe/0x70
     device_release_…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2023-52771</guid>
    </item>
  </channel>
</rss>
