1. Accueil
  2. Vulnérabilités
  3. CVE-2024-35960

CVE-2024-35960

net/mlx5: Properly link new fs rules into the tree

Publiée le 20 mai 2024 · modifiée le 15 oct. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Moyen 57/100

Résumé

In the Linux kernel, the following vulnerability has been resolved: net/mlx5: Properly link new fs rules into the tree Previously, add_rule_fg would only add newly created rules from the handle into the tree when they had a refcount of 1. On the other hand, create_flow_handle tries hard to find and reference already existing identical rules instead of creating new ones. These two behaviors can result in a situation where create_flow_handle 1) creates a new rule and references it, then 2) in a subsequent step during the same handle creation references it again, resulting in a rule with a refcount of 2 that is not linked into the tree, will have a NULL parent and root and will result in a crash when the flow group is deleted because del_sw_hw_rule, invoked on rule deletion, assumes node->parent is != NULL. This happened in the wild, due to another bug related to incorrect handling of duplicate pkt_reformat ids, which lead to the code in create_flow_handle incorrectly referencing a just-added rule in the same flow handle, resulting in the problem described above. Full details are at [1]. This patch changes add_rule_fg to add new rules without parents into the tree, properly initializing them and avoiding the crash. This makes it more consistent with how rules are added to an FTE in create_flow_handle.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Linux (9 ligne(s))
Linux
ProduitVersionsCorrigé dansSource
Linux 4.10 — CNA (éditeur ou attributeur)
Linux kernel de 4.10 (inclus) à 4.19.313 (exclu) — NVD
Linux kernel de 4.20 (inclus) à 5.4.275 (exclu) — NVD
Linux kernel de 5.5 (inclus) à 5.10.216 (exclu) — NVD
Linux kernel de 5.11 (inclus) à 5.15.156 (exclu) — NVD
Linux kernel de 5.16 (inclus) à 6.1.87 (exclu) — NVD
Linux kernel de 6.2 (inclus) à 6.6.28 (exclu) — NVD
Linux kernel de 6.7 (inclus) à 6.8.7 (exclu) — NVD
Linux kernel 6.9 — NVD
Debian (1 ligne(s))
Debian
ProduitVersionsCorrigé dansSource
Debian linux 10.0 — NVD

Correctif

Non renseigné par l’éditeur.

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
CNA (éditeur ou attributeur)
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H (CVSS 3.1, CNA:134c704f-9b21-4f2e-91b3-4a467353bcc0)
Faiblesse
CWE-476 · Corruption mémoire

Comment sont obtenues et calculées ces données