Home

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.

PUBLISHED Reserved 2026-01-13 | Published 2026-03-25 | Updated 2026-05-11 | Assigner Linux

Product status

Default status
unaffected

cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 (git) before 91f3e8d84c89918769e71393f839c9fefadc2580
affected

cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 (git) before cdd96641b64297a2db42676f051362b76280a58b
affected

cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 (git) before b0f269ba6fefe9e3cb9feedcf78fcd0b633800c0
affected

cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 (git) before e39bb9e02b68942f8e9359d2a3efe7d37ae6be0e
affected

Default status
affected

6.10
affected

Any version before 6.10
unaffected

6.12.77 (semver)
unaffected

6.18.17 (semver)
unaffected

6.19.7 (semver)
unaffected

7.0 (original_commit_for_fix)
unaffected

References

git.kernel.org/...c/91f3e8d84c89918769e71393f839c9fefadc2580

git.kernel.org/...c/cdd96641b64297a2db42676f051362b76280a58b

git.kernel.org/...c/b0f269ba6fefe9e3cb9feedcf78fcd0b633800c0

git.kernel.org/...c/e39bb9e02b68942f8e9359d2a3efe7d37ae6be0e

cve.org (CVE-2026-23380)

nvd.nist.gov (CVE-2026-23380)

Download JSON