<?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-09-30T10:56:01.243806+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-2026-89777</id>
    <title>CVE-2026-89777 — vfio/pci: clear vdev-&gt;msi_perm after freeing it on init failure</title>
    <updated>2026-09-30T10:56:01.258621+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>vfio/pci: clear vdev-&gt;msi_perm after freeing it on init failure</p>
<p>vfio_msi_cap_len() lazily allocates the per-device MSI permission table:</p>
<p>vdev-&gt;msi_perm = kmalloc_obj(struct perm_bits, GFP_KERNEL_ACCOUNT);
	if (!vdev-&gt;msi_perm)
		return -ENOMEM;</p>
<p>ret = init_pci_cap_msi_perm(vdev-&gt;msi_perm, len, flags);
	if (ret) {
		kfree(vdev-&gt;msi_perm);
		return ret;		/* vdev-&gt;msi_perm left dangling */
	}</p>
<p>When init_pci_cap_msi_perm() -&gt; alloc_perm_bits() fails with -ENOMEM, the
error path frees vdev-&gt;msi_perm but leaves the freed pointer stored in
it. vdev-&gt;msi_perm is not re-zeroed later because struct
vfio_pci_core_device is per-device and persists across open/close cycles,
and the vfio_config_init() error path returns without calling
vfio_config_free(). So the dangling pointer outlives the failed open.</p>
<p>That leads to two use-after-frees on the same device:</p>
<p>1. Reuse. The next vfio_config_init() sees the stale pointer at
   "if (vdev-&gt;msi_perm) return len;" and reuses the freed object. MSI
   config accesses in vfio_pci_config_rw_single() then dereference and
   call the freed perm-&gt;readfn / perm-&gt;writefn function pointers.</p>
<p>2. Double free. A later vfio_config_free() runs free_perm_bits() and
   kfree() on the already-freed object.</p>
<p>Fix it by NULLing vdev-&gt;msi_perm after the kfree(), matching the
NULL-after-free discipline already used in free_perm_bits() and
vfio_config_free().</p>
<p>BUG: KASAN: slab-use-after-free in…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-89777"/>
  </entry>
</feed>
