<?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://vulnerability.circl.lu</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:48:13 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-74682 — ALSA: usb-audio: fix OOB write on Type II inbound URBs</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-74682</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: usb-audio: fix OOB write on Type II inbound URBs&lt;/p&gt;
&lt;p&gt;data_ep_set_params() sizes each URB transfer buffer before it adds the
Format Type II transfer delimiter:&lt;/p&gt;
&lt;p&gt;u-&amp;gt;packets = urb_packs;
	u-&amp;gt;buffer_size = maxsize * u-&amp;gt;packets;&lt;/p&gt;
&lt;p&gt;if (fmt-&amp;gt;fmt_type == UAC_FORMAT_TYPE_II)
		u-&amp;gt;packets++; /* for transfer delimiter */
	u-&amp;gt;urb = usb_alloc_urb(u-&amp;gt;packets, GFP_KERNEL);&lt;/p&gt;
&lt;p&gt;buffer_size is computed from the pre-increment packet count and never
recomputed, so for a Type II endpoint the buffer is one packet short of
the packet count the URB is built with.&lt;/p&gt;
&lt;p&gt;prepare_inbound_urb() then lays out one iso frame per packet and never
consults buffer_size:&lt;/p&gt;
&lt;p&gt;offs = 0;
	for (i = 0; i &amp;lt; urb_ctx-&amp;gt;packets; i++) {
		urb-&amp;gt;iso_frame_desc[i].offset = offs;
		urb-&amp;gt;iso_frame_desc[i].length = ep-&amp;gt;curpacksize;
		offs += ep-&amp;gt;curpacksize;
	}&lt;/p&gt;
&lt;p&gt;urb-&amp;gt;transfer_buffer_length = offs;
	urb-&amp;gt;number_of_packets = urb_ctx-&amp;gt;packets;&lt;/p&gt;
&lt;p&gt;The last descriptor therefore points one packet past the end of the
transfer buffer, where the host controller writes device data on every
inbound transfer.  prepare_silent_urb() and prepare_playback_urb() bound
their fill loops by ctx-&amp;gt;buffer_size, so only capture is affected.&lt;/p&gt;
&lt;p&gt;fmt_type comes from the device&amp;#39;s audio streaming descriptors, so any
device advertising a Type II capture format hits this once userspace sets
hw_params on the stream.&lt;/p&gt;
&lt;p&gt;KASAN on 7.2.0-rc5 (arm64) with a dummy_hcd/raw-gadget device, one report
per inb…&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: usb-audio: fix OOB write on Type II inbound URBs&lt;/p&gt;
&lt;p&gt;data_ep_set_params() sizes each URB transfer buffer before it adds the
Format Type II transfer delimiter:&lt;/p&gt;
&lt;p&gt;u-&amp;gt;packets = urb_packs;
	u-&amp;gt;buffer_size = maxsize * u-&amp;gt;packets;&lt;/p&gt;
&lt;p&gt;if (fmt-&amp;gt;fmt_type == UAC_FORMAT_TYPE_II)
		u-&amp;gt;packets++; /* for transfer delimiter */
	u-&amp;gt;urb = usb_alloc_urb(u-&amp;gt;packets, GFP_KERNEL);&lt;/p&gt;
&lt;p&gt;buffer_size is computed from the pre-increment packet count and never
recomputed, so for a Type II endpoint the buffer is one packet short of
the packet count the URB is built with.&lt;/p&gt;
&lt;p&gt;prepare_inbound_urb() then lays out one iso frame per packet and never
consults buffer_size:&lt;/p&gt;
&lt;p&gt;offs = 0;
	for (i = 0; i &amp;lt; urb_ctx-&amp;gt;packets; i++) {
		urb-&amp;gt;iso_frame_desc[i].offset = offs;
		urb-&amp;gt;iso_frame_desc[i].length = ep-&amp;gt;curpacksize;
		offs += ep-&amp;gt;curpacksize;
	}&lt;/p&gt;
&lt;p&gt;urb-&amp;gt;transfer_buffer_length = offs;
	urb-&amp;gt;number_of_packets = urb_ctx-&amp;gt;packets;&lt;/p&gt;
&lt;p&gt;The last descriptor therefore points one packet past the end of the
transfer buffer, where the host controller writes device data on every
inbound transfer.  prepare_silent_urb() and prepare_playback_urb() bound
their fill loops by ctx-&amp;gt;buffer_size, so only capture is affected.&lt;/p&gt;
&lt;p&gt;fmt_type comes from the device&amp;#39;s audio streaming descriptors, so any
device advertising a Type II capture format hits this once userspace sets
hw_params on the stream.&lt;/p&gt;
&lt;p&gt;KASAN on 7.2.0-rc5 (arm64) with a dummy_hcd/raw-gadget device, one report
per inb…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-74682</guid>
    </item>
  </channel>
</rss>
