<?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://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-12-05T12:44:43.028581+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" 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://db.gcve.eu/vuln/cve-2026-142800</id>
    <title>CVE-2026-142800 — ALSA: control: Fix UAF in snd_ctl_elem_add() on card disconnect</title>
    <updated>2026-12-05T12:44:43.030060+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>ALSA: control: Fix UAF in snd_ctl_elem_add() on card disconnect</p>
<p>A use-after-free can be triggered via SNDRV_CTL_IOCTL_ELEM_ADD when a
USB audio card is disconnected while an ELEM_ADD ioctl is in flight.</p>
<p>The reproducer parks the ioctl thread inside copy_from_user() using
userfaultfd, then tears down the USB device.  Unlike every other
ALSA control _user handler (ELEM_INFO, ELEM_READ, ELEM_WRITE, TLV_*),
snd_ctl_elem_add_user() never calls snd_power_ref_and_wait(), so the
parked thread holds no power reference.  snd_card_disconnect() therefore
cannot observe it via snd_power_sync_ref() and proceeds unimpeded:</p>
<p>1. card-&gt;shutdown is set to 1
  2. device_del(&amp;card-&gt;card_dev) drops the kobject reference on the
     parent USB interface device (card-&gt;dev = &amp;intf-&gt;dev)
  3. The USB core drops its own reference and calls device_release(),
     freeing the struct usb_interface, including the embedded struct
     device that card-&gt;dev points to</p>
<p>When the userfaultfd is resolved and the thread resumes,
snd_ctl_elem_add() acquires controls_rwsem without checking
card-&gt;shutdown and calls __snd_ctl_add_replace().  Because the
reproducer pre-registered the same control, the CTL_ADD_EXCLUSIVE
path calls dev_err(card-&gt;dev, ...) on the freed USB interface:</p>
<p>KASAN: slab-use-after-free Read in __dev_printk</p>
<p>Add a card-&gt;shutdown guard immediately after acquiring controls_rwsem
in snd_ctl_elem_add().  At that point card-&gt;sh…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-142800"/>
  </entry>
</feed>
