<?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-30T23:12:11.645084+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-89881</id>
    <title>CVE-2026-89881 — media: rtl2832_sdr: use vb2_video_unregister_device() on remove to fix DMA leak</title>
    <updated>2026-09-30T23:12:11.656040+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>media: rtl2832_sdr: use vb2_video_unregister_device() on remove to fix DMA leak</p>
<p>rtl2832_sdr_remove() runs on USB disconnect and clears dev-&gt;udev to
NULL before any pending streaming teardown has run. When user space
later closes its file descriptor, vb2 calls rtl2832_sdr_stop_streaming()
which in turn calls rtl2832_sdr_free_stream_bufs(). That helper releases
each coherent buffer with:</p>
<p>usb_free_coherent(dev-&gt;udev, dev-&gt;buf_size,
                      dev-&gt;buf_list[dev-&gt;buf_num],
                      dev-&gt;dma_addr[dev-&gt;buf_num]);</p>
<p>usb_free_coherent() returns immediately when its dev argument is NULL,
so every DMA stream buffer that was live at disconnect is silently
leaked. The URBs allocated in rtl2832_sdr_alloc_urbs() outlive the
device for the same reason.</p>
<p>The rtl2832_sdr driver uses vb2_fop_release() in its file_operations,
so replace video_unregister_device(&amp;dev-&gt;vdev) with
vb2_video_unregister_device(&amp;dev-&gt;vdev) and move it before clearing
dev-&gt;udev. vb2_video_unregister_device() releases the vb2 queue, which
synchronously runs rtl2832_sdr_stop_streaming() if streaming is active,
so URBs and coherent DMA stream buffers are freed while dev-&gt;udev is
still valid.</p>
<p>vb2_video_unregister_device() locks vdev-&gt;queue-&gt;lock (vb_queue_lock)
internally, and stop_streaming() locks v4l2_lock, so the previous outer
mutex_lock(&amp;dev-&gt;vb_queue_lock) / mutex_lock(&amp;dev-&gt;v4l2_lock) pair
around the unregister sequen…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-89881"/>
  </entry>
</feed>
