# CVE-2026-23380: tracing: Fix WARN_ON in tracing_buffers_mmap_close

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-03-25T10:27:59.682Z
- Modified: 2026-06-17T10:21:28.077Z
- Weaknesses: CWE-617
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

tracing: Fix WARN_ON in tracing_buffers_mmap_close

When a process forks, the child process copies the parent's VMAs but the
user_mapped reference count is not incremented. As a result, when both the
parent and child processes exit, tracing_buffers_mmap_close() is called
twice. On the second call, user_mapped is already 0, causing the function to
return -ENODEV and triggering a WARN_ON.

Normally, this isn't an issue as the memory is mapped with VM_DONTCOPY set.
But this is only a hint, and the application can call
madvise(MADVISE_DOFORK) which resets the VM_DONTCOPY flag. When the
application does that, it can trigger this issue on fork.

Fix it by incrementing the user_mapped reference count without re-mapping
the pages in the VMA's open callback.

(As written by CVE List.)

## Affected

- Linux Linux: from cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 before 91f3e8d84c89918769e71393f839c9fefadc2580; from cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 before cdd96641b64297a2db42676f051362b76280a58b; from cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 before b0f269ba6fefe9e3cb9feedcf78fcd0b633800c0; from cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 before e39bb9e02b68942f8e9359d2a3efe7d37ae6be0e; 6.10 (not affected: before 6.10; from 6.12.77 up to 6.12.*; from 6.18.17 up to 6.18.*; from 6.19.7 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.10.1 before 6.12.77; from 6.13 before 6.18.17; from 6.19 before 6.19.7; 6.10; 7.0

## References

- <https://git.kernel.org/stable/c/91f3e8d84c89918769e71393f839c9fefadc2580> (patch)
- <https://git.kernel.org/stable/c/cdd96641b64297a2db42676f051362b76280a58b> (patch)
- <https://git.kernel.org/stable/c/b0f269ba6fefe9e3cb9feedcf78fcd0b633800c0> (patch)
- <https://git.kernel.org/stable/c/e39bb9e02b68942f8e9359d2a3efe7d37ae6be0e> (patch)

## Sources

- CVE List: [CVE-2026-23380](https://www.cve.org/CVERecord?id=CVE-2026-23380), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-23380](https://nvd.nist.gov/vuln/detail/CVE-2026-23380), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-23380 · Whole record: https://cve.day/CVE-2026-23380.json · Rebuilt by cve.day 2026-11-25T22:59:16.702Z
