<?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>Wed, 30 Sep 2026 09:59:56 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-23390 — tracing/dma: Cap dma_map_sg tracepoint arrays to prevent buffer overflow</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-23390</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;tracing/dma: Cap dma_map_sg tracepoint arrays to prevent buffer overflow&lt;/p&gt;
&lt;p&gt;The dma_map_sg tracepoint can trigger a perf buffer overflow when
tracing large scatter-gather lists. With devices like virtio-gpu
creating large DRM buffers, nents can exceed 1000 entries, resulting
in:&lt;/p&gt;
&lt;p&gt;phys_addrs: 1000 * 8 bytes = 8,000 bytes
  dma_addrs:  1000 * 8 bytes = 8,000 bytes
  lengths:    1000 * 4 bytes = 4,000 bytes
  Total: ~20,000 bytes&lt;/p&gt;
&lt;p&gt;This exceeds PERF_MAX_TRACE_SIZE (8192 bytes), causing:&lt;/p&gt;
&lt;p&gt;WARNING: CPU: 0 PID: 5497 at kernel/trace/trace_event_perf.c:405
  perf buffer not large enough, wanted 24620, have 8192&lt;/p&gt;
&lt;p&gt;Cap all three dynamic arrays at 128 entries using min() in the array
size calculation. This ensures arrays are only as large as needed
(up to the cap), avoiding unnecessary memory allocation for small
operations while preventing overflow for large ones.&lt;/p&gt;
&lt;p&gt;The tracepoint now records the full nents/ents counts and a truncated
flag so users can see when data has been capped.&lt;/p&gt;
&lt;p&gt;Changes in v2:
- Use min(nents, DMA_TRACE_MAX_ENTRIES) for dynamic array sizing
  instead of fixed DMA_TRACE_MAX_ENTRIES allocation (feedback from
  Steven Rostedt)
- This allocates only what&amp;#39;s needed up to the cap, avoiding waste
  for small operations&lt;/p&gt;
&lt;p&gt;Reviwed-by: Sean Anderson &amp;lt;sean.anderson@linux.dev&amp;gt;&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;tracing/dma: Cap dma_map_sg tracepoint arrays to prevent buffer overflow&lt;/p&gt;
&lt;p&gt;The dma_map_sg tracepoint can trigger a perf buffer overflow when
tracing large scatter-gather lists. With devices like virtio-gpu
creating large DRM buffers, nents can exceed 1000 entries, resulting
in:&lt;/p&gt;
&lt;p&gt;phys_addrs: 1000 * 8 bytes = 8,000 bytes
  dma_addrs:  1000 * 8 bytes = 8,000 bytes
  lengths:    1000 * 4 bytes = 4,000 bytes
  Total: ~20,000 bytes&lt;/p&gt;
&lt;p&gt;This exceeds PERF_MAX_TRACE_SIZE (8192 bytes), causing:&lt;/p&gt;
&lt;p&gt;WARNING: CPU: 0 PID: 5497 at kernel/trace/trace_event_perf.c:405
  perf buffer not large enough, wanted 24620, have 8192&lt;/p&gt;
&lt;p&gt;Cap all three dynamic arrays at 128 entries using min() in the array
size calculation. This ensures arrays are only as large as needed
(up to the cap), avoiding unnecessary memory allocation for small
operations while preventing overflow for large ones.&lt;/p&gt;
&lt;p&gt;The tracepoint now records the full nents/ents counts and a truncated
flag so users can see when data has been capped.&lt;/p&gt;
&lt;p&gt;Changes in v2:
- Use min(nents, DMA_TRACE_MAX_ENTRIES) for dynamic array sizing
  instead of fixed DMA_TRACE_MAX_ENTRIES allocation (feedback from
  Steven Rostedt)
- This allocates only what&amp;#39;s needed up to the cap, avoiding waste
  for small operations&lt;/p&gt;
&lt;p&gt;Reviwed-by: Sean Anderson &amp;lt;sean.anderson@linux.dev&amp;gt;&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-23390</guid>
    </item>
  </channel>
</rss>
