<?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>Sat, 05 Dec 2026 12:44:33 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-142800 — ALSA: control: Fix UAF in snd_ctl_elem_add() on card disconnect</title>
      <link>https://db.gcve.eu/vuln/cve-2026-142800</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;ALSA: control: Fix UAF in snd_ctl_elem_add() on card disconnect&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;1. card-&amp;gt;shutdown is set to 1
  2. device_del(&amp;amp;card-&amp;gt;card_dev) drops the kobject reference on the
     parent USB interface device (card-&amp;gt;dev = &amp;amp;intf-&amp;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-&amp;gt;dev points to&lt;/p&gt;
&lt;p&gt;When the userfaultfd is resolved and the thread resumes,
snd_ctl_elem_add() acquires controls_rwsem without checking
card-&amp;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-&amp;gt;dev, ...) on the freed USB interface:&lt;/p&gt;
&lt;p&gt;KASAN: slab-use-after-free Read in __dev_printk&lt;/p&gt;
&lt;p&gt;Add a card-&amp;gt;shutdown guard immediately after acquiring controls_rwsem
in snd_ctl_elem_add().  At that point card-&amp;gt;sh…&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;ALSA: control: Fix UAF in snd_ctl_elem_add() on card disconnect&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;1. card-&amp;gt;shutdown is set to 1
  2. device_del(&amp;amp;card-&amp;gt;card_dev) drops the kobject reference on the
     parent USB interface device (card-&amp;gt;dev = &amp;amp;intf-&amp;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-&amp;gt;dev points to&lt;/p&gt;
&lt;p&gt;When the userfaultfd is resolved and the thread resumes,
snd_ctl_elem_add() acquires controls_rwsem without checking
card-&amp;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-&amp;gt;dev, ...) on the freed USB interface:&lt;/p&gt;
&lt;p&gt;KASAN: slab-use-after-free Read in __dev_printk&lt;/p&gt;
&lt;p&gt;Add a card-&amp;gt;shutdown guard immediately after acquiring controls_rwsem
in snd_ctl_elem_add().  At that point card-&amp;gt;sh…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-142800</guid>
    </item>
  </channel>
</rss>
