1. Accueil
  2. Vulnérabilités
  3. CVE-2021-47416

CVE-2021-47416

In the Linux kernel, the following vulnerability has been resolved: phy: mdio: fix memory leak Syzbot…

Publiée le 21 mai 2024 · modifiée le 17 juin 2026 · Sources : NVD, EPSS (FIRST)

Faible 26/100

Résumé

In the Linux kernel, the following vulnerability has been resolved: phy: mdio: fix memory leak Syzbot reported memory leak in MDIO bus interface, the problem was in wrong state logic. MDIOBUS_ALLOCATED indicates 2 states: 1. Bus is only allocated 2. Bus allocated and __mdiobus_register() fails, but device_register() was called In case of device_register() has been called we should call put_device() to correctly free the memory allocated for this device, but mdiobus_free() calls just kfree(dev) in case of MDIOBUS_ALLOCATED state To avoid this behaviour we need to set bus->state to MDIOBUS_UNREGISTERED _before_ calling device_register(), because put_device() should be called even in case of device_register() failure.

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

Produits et versions affectés

Linux (8 ligne(s))
Linux
ProduitVersionsCorrigé dansSource
Linux kernel de 2.6.28 (inclus) à 4.4.289 (exclu) — NVD
Linux kernel de 4.5 (inclus) à 4.9.287 (exclu) — NVD
Linux kernel de 4.10 (inclus) à 4.14.251 (exclu) — NVD
Linux kernel de 4.15 (inclus) à 4.19.211 (exclu) — NVD
Linux kernel de 4.20 (inclus) à 5.4.153 (exclu) — NVD
Linux kernel de 5.5 (inclus) à 5.10.73 (exclu) — NVD
Linux kernel de 5.11 (inclus) à 5.14.12 (exclu) — NVD
Linux kernel 5.15 — 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
NVD
Faiblesse (CWE)
NVD
Vecteur CVSS
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Faiblesse
CWE-401 · Autre (CWE-401)

Comment sont obtenues et calculées ces données