<?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://db.gcve.eu</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 23:03:15 +0000</lastBuildDate>
    <item>
      <title>CVE-2023-53515 — virtio-mmio: don't break lifecycle of vm_dev</title>
      <link>https://db.gcve.eu/vuln/cve-2023-53515</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;virtio-mmio: don&amp;#39;t break lifecycle of vm_dev&lt;/p&gt;
&lt;p&gt;vm_dev has a separate lifecycle because it has a &amp;#39;struct device&amp;#39;
embedded. Thus, having a release callback for it is correct.&lt;/p&gt;
&lt;p&gt;Allocating the vm_dev struct with devres totally breaks this protection,
though. Instead of waiting for the vm_dev release callback, the memory
is freed when the platform_device is removed. Resulting in a
use-after-free when finally the callback is to be called.&lt;/p&gt;
&lt;p&gt;To easily see the problem, compile the kernel with
CONFIG_DEBUG_KOBJECT_RELEASE and unbind with sysfs.&lt;/p&gt;
&lt;p&gt;The fix is easy, don&amp;#39;t use devres in this case.&lt;/p&gt;
&lt;p&gt;Found during my research about object lifetime problems.&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;virtio-mmio: don&amp;#39;t break lifecycle of vm_dev&lt;/p&gt;
&lt;p&gt;vm_dev has a separate lifecycle because it has a &amp;#39;struct device&amp;#39;
embedded. Thus, having a release callback for it is correct.&lt;/p&gt;
&lt;p&gt;Allocating the vm_dev struct with devres totally breaks this protection,
though. Instead of waiting for the vm_dev release callback, the memory
is freed when the platform_device is removed. Resulting in a
use-after-free when finally the callback is to be called.&lt;/p&gt;
&lt;p&gt;To easily see the problem, compile the kernel with
CONFIG_DEBUG_KOBJECT_RELEASE and unbind with sysfs.&lt;/p&gt;
&lt;p&gt;The fix is easy, don&amp;#39;t use devres in this case.&lt;/p&gt;
&lt;p&gt;Found during my research about object lifetime problems.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2023-53515</guid>
    </item>
  </channel>
</rss>
