CVE-2026-23390
CBL Mariner vulnerability analysis and mitigation

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


SourceNVD

Related CBL Mariner vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-40393CRITICAL9.8
  • NixOSNixOS
  • mesa
NoYesApr 12, 2026
CVE-2026-35469HIGH8.7
  • containerdcontainerd
  • redis-operator
NoYesApr 16, 2026
CVE-2026-34757MEDIUM5.1
  • OpenJDK JDKOpenJDK JDK
  • seal-libpng
NoYesApr 09, 2026
CVE-2026-40026MEDIUM4.8
  • CBL MarinerCBL Mariner
  • sleuthkit
NoYesApr 08, 2026
CVE-2026-40025MEDIUM4.8
  • CBL MarinerCBL Mariner
  • sleuthkit
NoYesApr 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management