PoC Monitor
← All CVEs
CVE-2026-23390published 25 Mar 2026 10:29 UTCData: JSON · API

Linux

tracing/dma: Cap dma_map_sg tracepoint arrays to prevent buffer overflow

In the Linux kernel, the following vulnerability has been resolved: tracing/dma: Cap dma_map_sg tracepoint arrays to prevent buffer overflow 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: 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 This exceeds PERF_MAX_TRACE_SIZE (8192 bytes), causing: WARNING: CPU: 0 PID: 5497 at kernel/trace/trace_event_perf.c:405 perf buffer not large enough, wanted 24620, have 8192 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. The tracepoint now records the full nents/ents counts and a truncated flag so users can see when data has been capped. 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's needed up to the cap, avoiding waste for small operations Reviwed-by: Sean Anderson <sean.anderson@linux.dev>

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by NVD · CWE-787
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Linux Linux
  • >= 038eb433dc1474c4bc7d33188294e3d4778efdfd, < 02d209bb018a40dee9eac89e91860253dee9605b
  • >= 038eb433dc1474c4bc7d33188294e3d4778efdfd, < f2584f791a10343bdc995ff6ff402db45b95de69
  • >= 038eb433dc1474c4bc7d33188294e3d4778efdfd, < daafcc0ef0b358d9d622b6e3b7c43767aa3814ee

Fixed in 02d209bb018a40dee9eac89e91860253dee9605b, f2584f791a10343bdc995ff6ff402db45b95de69, daafcc0ef0b358d9d622b6e3b7c43767aa3814ee

Linux Linux
  • 6.12

Fixed in 0, 6.12.74, 6.18.13, 6.19

Mitigation

Upgrade Linux to 02d209bb018a40dee9eac89e91860253dee9605b or f2584f791a10343bdc995ff6ff402db45b95de69 or daafcc0ef0b358d9d622b6e3b7c43767aa3814ee or later.

Upgrade Linux to 0 or 6.12.74 or 6.18.13 or 6.19 or later.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published25 Mar 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.