# CVE-2026-23390: tracing/dma: Cap dma\_map\_sg tracepoint arrays to prevent buffer overflow

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-28)
- **CWE:** CWE-787
- **Published:** 2026-03-25T10:29:02.768Z
- **Modified:** 2026-06-17T10:21:29.223Z

## Who should check

- Anyone running Linux \>= 038eb433dc1474c4bc7d33188294e3d4778efdfd, \< 02d209bb018a40dee9eac89e91860253dee9605b; \>= 038eb433dc1474c4bc7d33188294e3d4778efdfd, \< f2584f791a10343bdc995ff6ff402db45b95de69; \>= 038eb433dc1474c4bc7d33188294e3d4778efdfd, \< daafcc0ef0b358d9d622b6e3b7c43767aa3814ee
- Anyone running Linux 6.12

## Description

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\>

## Affected and fixed versions

- Linux: \>= 038eb433dc1474c4bc7d33188294e3d4778efdfd, \< 02d209bb018a40dee9eac89e91860253dee9605b; \>= 038eb433dc1474c4bc7d33188294e3d4778efdfd, \< f2584f791a10343bdc995ff6ff402db45b95de69; \>= 038eb433dc1474c4bc7d33188294e3d4778efdfd, \< daafcc0ef0b358d9d622b6e3b7c43767aa3814ee (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-23390. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23390.md
Affected: Linux >= 038eb433dc1474c4bc7d33188294e3d4778efdfd, < 02d209bb018a40dee9eac89e91860253dee9605b; >= 038eb433dc1474c4bc7d33188294e3d4778efdfd, < f2584f791a10343bdc995ff6ff402db45b95de69; >= 038eb433dc1474c4bc7d33188294e3d4778efdfd, < daafcc0ef0b358d9d622b6e3b7c43767aa3814ee; Linux 6.12
Fixed in: Linux 02d209bb018a40dee9eac89e91860253dee9605b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-23390 being exploited?

There is no confirmed exploitation: CVE-2026-23390 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-23390?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-23390?

Linux \>= 038eb433dc1474c4bc7d33188294e3d4778efdfd, \< 02d209bb018a40dee9eac89e91860253dee9605b; \>= 038eb433dc1474c4bc7d33188294e3d4778efdfd, \< f2584f791a10343bdc995ff6ff402db45b95de69; \>= 038eb433dc1474c4bc7d33188294e3d4778efdfd, \< daafcc0ef0b358d9d622b6e3b7c43767aa3814ee; Linux 6.12.

### Is there a fix for CVE-2026-23390?

Yes. Fixed in Linux 02d209bb018a40dee9eac89e91860253dee9605b. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-23390?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/02d209bb018a40dee9eac89e91860253dee9605b>
- patch: <https://git.kernel.org/stable/c/f2584f791a10343bdc995ff6ff402db45b95de69>
- patch: <https://git.kernel.org/stable/c/daafcc0ef0b358d9d622b6e3b7c43767aa3814ee>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-23390>

HTML: <https://flawdb.com/CVE-2026-23390> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-23390>
