<?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>Fri, 04 Dec 2026 19:17:37 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-139416 — ALSA: rawmidi: Drain input work before freeing the runtime</title>
      <link>https://db.gcve.eu/vuln/cve-2026-139416</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: rawmidi: Drain input work before freeing the runtime&lt;/p&gt;
&lt;p&gt;The input runtime embeds event_work, so the work must be drained before
close_substream() frees the runtime. The cancellation in
snd_rawmidi_input_trigger() runs before close clears substream-&amp;gt;opened,
leaving a window for snd_rawmidi_receive() to enqueue more work.&lt;/p&gt;
&lt;p&gt;With a sequencer subscription to a USB MIDI input port, an in-flight
completion can overlap the last subscription&amp;#39;s midisynth_unsubscribe():&lt;/p&gt;
&lt;p&gt;1. snd_usbmidi_input_data() observes input_triggered and is delayed
   before calling snd_rawmidi_receive().
2. Unsubscribe enters close_substream(), clears input_triggered through
   the provider trigger callback and returns from cancel_work_sync().
   The substream is still opened.
3. The completion resumes. snd_rawmidi_receive() takes substream-&amp;gt;lock,
   sees opened set and queues runtime-&amp;gt;event_work before dropping the
   lock.
4. Close clears opened under that lock, closes the provider and frees
   the runtime. Stopping USB URBs does not drain the raw-MIDI work.
5. The queued work runs and snd_rawmidi_input_event_work() reads event
   or substream from the freed runtime, causing a use-after-free.&lt;/p&gt;
&lt;p&gt;Cancel input event_work again after clearing opened, before closing the
provider or releasing the runtime&amp;#39;s private data. Receive holds
substream-&amp;gt;lock through its opened check and work enqueue, so once close
has cleared opened under that lock, no f…&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: rawmidi: Drain input work before freeing the runtime&lt;/p&gt;
&lt;p&gt;The input runtime embeds event_work, so the work must be drained before
close_substream() frees the runtime. The cancellation in
snd_rawmidi_input_trigger() runs before close clears substream-&amp;gt;opened,
leaving a window for snd_rawmidi_receive() to enqueue more work.&lt;/p&gt;
&lt;p&gt;With a sequencer subscription to a USB MIDI input port, an in-flight
completion can overlap the last subscription&amp;#39;s midisynth_unsubscribe():&lt;/p&gt;
&lt;p&gt;1. snd_usbmidi_input_data() observes input_triggered and is delayed
   before calling snd_rawmidi_receive().
2. Unsubscribe enters close_substream(), clears input_triggered through
   the provider trigger callback and returns from cancel_work_sync().
   The substream is still opened.
3. The completion resumes. snd_rawmidi_receive() takes substream-&amp;gt;lock,
   sees opened set and queues runtime-&amp;gt;event_work before dropping the
   lock.
4. Close clears opened under that lock, closes the provider and frees
   the runtime. Stopping USB URBs does not drain the raw-MIDI work.
5. The queued work runs and snd_rawmidi_input_event_work() reads event
   or substream from the freed runtime, causing a use-after-free.&lt;/p&gt;
&lt;p&gt;Cancel input event_work again after clearing opened, before closing the
provider or releasing the runtime&amp;#39;s private data. Receive holds
substream-&amp;gt;lock through its opened check and work enqueue, so once close
has cleared opened under that lock, no f…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-139416</guid>
    </item>
  </channel>
</rss>
