ring-buffer: Fix the sub-buffer array base in rb_meta_subbuf_idx() (Linux Linux)

CVE-2026-99159
Non disponible

En bref

Source
NVD
EPSS
EPSS 0.21 % · centile 12 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Produits affectés
Linux · Linux
Statut NVD
Received

Description

In the Linux kernel, the following vulnerability has been resolved: ring-buffer: Fix the sub-buffer array base in rb_meta_subbuf_idx() On a persistent ring buffer, rb_meta_subbuf_idx() can return an index one sub-buffer too high. rb_setup_ids_meta_page() then fills subbuf_ids[] shifted by one and leaves subbuf_ids[0] NULL, which __rb_map_vma() dereferences when userspace maps trace_pipe_raw. rb_update_meta_reader() writes two such indices into meta->buffers[], which rb_cpu_meta_valid() would reject on the next boot, discarding the previous boot's trace. A CPU's sub-buffer array starts after its meta header and the nr_subbufs integers that follow, aligned up to a sub-buffer. rb_meta_subbuf_idx() inverts that calculation but skips only the integers, not the header, so its base is one sub-buffer low whenever the omitted header size crosses the alignment boundary. Invert the calculation with rb_subbufs_from_meta() rather than repeating it. rb_range_buffer() maps an index back to an address through the same helper, so the two directions can no longer disagree.

Références

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions affectées
Linux · Linux
affectée : ≥ b14d032973d4e6c36e025e96ea3437de53d072d9 < 0c0cf2240bb5ca5704ea932ba66ee54f43173915
affectée : ≥ b14d032973d4e6c36e025e96ea3437de53d072d9 < 2f1248b728b56d583ea454fedf239550c49f7b18
affectée : ≥ b14d032973d4e6c36e025e96ea3437de53d072d9 < 7469b3585ef5f65840d467d2caa811a9098c84b9
affectée : ≥ b14d032973d4e6c36e025e96ea3437de53d072d9 < 25132363c723afc39aace8b098f547ab4a0ea759
Autres versions : non affectée
Linux · Linux
affectée : 6.12
non affectée : ≥ 0 < 6.12
non affectée : ≥ 6.12.115 ≤ 6.12.*
non affectée : ≥ 6.18.59 ≤ 6.18.*
non affectée : ≥ 7.2.13 ≤ 7.2.*
non affectée : ≥ 7.3 ≤ *
Autres versions : affectée

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