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

CVE-2024-35853

In the Linux kernel, the following vulnerability has been resolved: mlxsw: spectrum_acl_tcam: Fix memory leak…

Publiée le 17 mai 2024 · modifiée le 17 juin 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Moyen 40/100

Résumé

In the Linux kernel, the following vulnerability has been resolved: mlxsw: spectrum_acl_tcam: Fix memory leak during rehash The rehash delayed work migrates filters from one region to another. This is done by iterating over all chunks (all the filters with the same priority) in the region and in each chunk iterating over all the filters. If the migration fails, the code tries to migrate the filters back to the old region. However, the rollback itself can also fail in which case another migration will be erroneously performed. Besides the fact that this ping pong is not a very good idea, it also creates a problem. Each virtual chunk references two chunks: The currently used one ('vchunk->chunk') and a backup ('vchunk->chunk2'). During migration the first holds the chunk we want to migrate filters to and the second holds the chunk we are migrating filters from. The code currently assumes - but does not verify - that the backup chunk does not exist (NULL) if the currently used chunk does not reference the target region. This assumption breaks when we are trying to rollback a rollback, resulting in the backup chunk being overwritten and leaked [1]. Fix by not rolling back a failed rollback and add a warning to avoid future cases. [1] WARNING: CPU: 5 PID: 1063 at lib/parman.c:291 parman_destroy+0x17/0x20 Modules linked in: CPU: 5 PID: 1063 Comm: kworker/5:11 Tainted: G W 6.9.0-rc2-custom-00784-gc6a05c468a0b #14 Hardware name: Mellanox Technologies Ltd. MSN3700/VMOD0005, BIOS 5.11 01/06/2019 Workqueue: mlxsw_core mlxsw_sp_acl_tcam_vregion_rehash_work RIP: 0010:parman_destroy+0x17/0x20 [...] Call Trace: <TASK> mlxsw_sp_acl_atcam_region_fini+0x19/0x60 mlxsw_sp_acl_tcam_region_destroy+0x49/0xf0 mlxsw_sp_acl_tcam_vregion_rehash_work+0x1f1/0x470 process_one_work+0x151/0x370 worker_thread+0x2cb/0x3e0 kthread+0xd0/0x100 ret_from_fork+0x34/0x50 ret_from_fork_asm+0x1a/0x30 </TASK>

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

Produits et versions affectés

Debian (1 ligne(s))
Debian
ProduitVersionsCorrigé dansSource
Debian linux 10.0 — NVD
Linux (7 ligne(s))
Linux
ProduitVersionsCorrigé dansSource
Linux kernel de 5.1 (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.158 (exclu) — NVD
Linux kernel de 5.16 (inclus) à 6.1.90 (exclu) — NVD
Linux kernel de 6.2 (inclus) à 6.6.30 (exclu) — NVD
Linux kernel de 6.7 (inclus) à 6.8.9 (exclu) — NVD
Linux kernel 6.9 — 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
NVD
Score CVSS
CNA (éditeur ou attributeur)
Faiblesse (CWE)
NVD
Vecteur CVSS
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H (CVSS 3.1, CNA:134c704f-9b21-4f2e-91b3-4a467353bcc0)
Faiblesse
CWE-401 · Autre (CWE-401)

Comment sont obtenues et calculées ces données