- Accueil
- Vulnérabilités
- CVE-2026-143364
CVE-2026-143364
bpf: Clamp the trace length before the skip test in stackid_init()
Résumé
In the Linux kernel, the following vulnerability has been resolved: bpf: Clamp the trace length before the skip test in stackid_init() stackid_init() gives a bucket of the stack map min(trace_nr - skip, max_depth - skip) trace entries. Here max_depth is the size of a bucket plus skip, but at most perf_event_max_stack. Context markers can make trace_nr larger than that, so the skip test can pass when max_depth < skip. Then 'max_depth - skip' wraps, and the kernel can write after the bucket. Clamp trace_nr to max_depth before the skip test, as __bpf_get_stack_pe() does. The result changes only when skip >= max_depth. Then it is -EFAULT. Until now skip == max_depth could give the id of an empty trace. get_perf_callchain() releases the trace, so an NMI can change trace->nr. Use READ_ONCE() in bpf_get_stackid(), so the compiler reads it one time.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Linux (6 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| Linux | de 6.12.63 (inclus) à 6.12.120 (exclu) |
— | CNA (éditeur ou attributeur) |
| Linux | de 6.18.2 (inclus) à 6.18.66 (exclu) |
— | CNA (éditeur ou attributeur) |
| Linux | de 6.1.191 (inclus) à 6.2 (exclu) |
— | CNA (éditeur ou attributeur) |
| Linux | de 6.6.160 (inclus) à 6.7 (exclu) |
— | CNA (éditeur ou attributeur) |
| Linux | de 6.17.13 (inclus) à 6.18 (exclu) |
— | CNA (éditeur ou attributeur) |
| Linux | 6.19 |
— | CNA (éditeur ou attributeur) |
Correctif
Non renseigné par l’éditeur.
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Publication de la CVE (cve)
Références
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)