Not scored
tracing: Fix WARN_ON in tracing_buffers_mmap_close for split VMAs
- Severity
- Not scored
- Exploit likelihood
- 0.20% (higher than 9% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: tracing: Fix WARN_ON in tracing_buffers_mmap_close for split VMAs When a VMA is split (e.g., by partial munmap or MAP_FIXED), the kernel calls vm_ops->close on each portion. For trace buffer mappings, this results in ring_buffer_unmap() being called multiple times while ring_buffer_map() was only called once. This causes ring_buffer_unmap() to return -ENODEV on subsequent calls because user_mapped is already 0, triggering a WARN_ON. Trace buffer mappings cannot support partial mappings because the ring buffer structure requires the complete buffer including the meta page. Fix this by adding a may_split callback that returns -EINVAL to prevent VMA splits entirely.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 before 922fdd0b755a84f9933b3ca195f60092b6bb88ee, from cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 before 45053c12c45f0fb8ef6ab95118dd928d2fec0255, from cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 before b042fdf18e89a347177a49e795d8e5184778b5b6, 6.10 Not affected: before 6.10, from 6.12.61 up to 6.12.*, from 6.17.11 up to 6.17.*, from 6.18 up to * | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: tracing: Fix WARN_ON in tracing_buffers_mmap_close for split VMAs When a VMA is split (e.g., by partial munmap or MAP_FIXED), the kernel calls vm_ops->close on each portion. For trace buffer mappings, this results in ring_buffer_unmap() being called multiple times while ring_buffer_map() was only called once. This causes ring_buffer_unmap() to return -ENODEV on subsequent calls because user_mapped is already 0, triggering a WARN_ON. Trace buffer mappings cannot support partial mappings because the ring buffer structure requires the complete buffer including the meta page. Fix this by adding a may_split callback that returns -EINVAL to prevent VMA splits entirely.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: tracing: Corrección de WARN_ON en tracing_buffers_mmap_close para VMAs divididas Cuando una VMA se divide (por ejemplo, por un munmap parcial o MAP_FIXED), el kernel llama a vm_ops -> close en cada porción. Para los mapeos del búfer de trazas, esto resulta en que ring_buffer_unmap() se llama varias veces, mientras que ring_buffer_map() solo se llamó una vez. Esto provoca que ring_buffer_unmap() devuelva -ENODEV en llamadas posteriores porque user_mapped ya es 0, lo que activa un WARN_ON. Los mapeos del búfer de trazas no pueden soportar mapeos parciales porque la estructura del búfer circular requiere el búfer completo, incluyendo la página meta. Esto se soluciona añadiendo una función de callback may_split que devuelve -EINVAL para evitar por completo las divisiones de VMA.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68329 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-68329 changed 2026-10-19 | Public domain |