CVE-2026-23380: tracing: Fix WARN_ON in tracing_buffers_mmap_close
In the Linux kernel, the following vulnerability has been resolved:
tracing: Fix WARNON in tracingbuffersmmapclose
When a process forks, the child process copies the parent's VMAs but the usermapped reference count is not incremented. As a result, when both the parent and child processes exit, tracingbuffersmmapclose() is called twice. On the second call, usermapped is already 0, causing the function to return -ENODEV and triggering a WARNON.
Normally, this isn't an issue as the memory is mapped with VMDONTCOPY set. But this is only a hint, and the application can call madvise(MADVISEDOFORK) which resets the VMDONTCOPY flag. When the application does that, it can trigger this issue on fork.
Fix it by incrementing the usermapped reference count without re-mapping the pages in the VMA's open callback.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1 - Compensating control
Increment the user_mapped reference count without remapping pages in the VMA's open callback.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-23380?
CVE-2026-23380 is classified as a moderate severity vulnerability.
How do I fix CVE-2026-23380?
To fix CVE-2026-23380, it is recommended to update your Linux kernel to the latest version that contains the patch.
What type of vulnerability is CVE-2026-23380?
CVE-2026-23380 is a vulnerability related to the mapping and reference counting of user-mapped memory in the Linux kernel.
Which versions of the Linux kernel are affected by CVE-2026-23380?
CVE-2026-23380 affects multiple versions of the Linux kernel prior to the implementation of the fix.
What impact does CVE-2026-23380 have on system security?
CVE-2026-23380 may lead to stability issues in systems running affected versions of the Linux kernel due to improper reference counting.