tracing: Fix WARN_ON in tracing_buffers_mmap_close (Linux Linux)

CVE-2026-23380
MEDIUM 5.5

En bref

Source
NVD
EPSS
EPSS 0.12 % · centile 2 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Analyzed

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.

Faiblesses (CWE)

  • CWE-617 — Assertion atteignable

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 < 91f3e8d84c89918769e71393f839c9fefadc2580 ; affected cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 < cdd96641b64297a2db42676f051362b76280a58b ; affected cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 < b0f269ba6fefe9e3cb9feedcf78fcd0b633800c0 ; affected cf9f0f7c4c5bb45e7bb270e48bab6f7837825a64 < e39bb9e02b68942f8e9359d2a3efe7d37ae6be0e
Linux · Linuxaffected 6.10 ; unaffected 0 < 6.10 ; unaffected 6.12.77 ≤ 6.12.* ; unaffected 6.18.17 ≤ 6.18.* ; unaffected 6.19.7 ≤ 6.19.* ; unaffected 7.0 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD