phy: core: Fix race-condition between _of_phy_get() and try_module_get() (Linux Linux)
En bref
- Source
- NVD
- EPSS
- EPSS 0.22 % · centile 13 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- Linux
- Produits affectés
- Linux · Linux
- Statut NVD
- Received
Rechercher sur…
Description
In the Linux kernel, the following vulnerability has been resolved: phy: core: Fix race-condition between _of_phy_get() and try_module_get() Sashiko asked during a patch review if the existing usage pattern had a race condition; specifically in of_phy_get() if it was possible between returning from _of_phy_get() and running try_module_get() that a module might be unbound leading to use-after-free. Looking at the code this appears to be so, there is no linkage between the phy and module under a synchronisation primitive. Using the phy_provider_mutex in phy_get() will ensure there is a link between the returned phy pointer and the module_get() bumping the module reference count. Amend phy_get(), of_phy_get() and devm_of_phy_get_by_index() to fix the same usage pattern. phy_provider_unregister() must take the phy_provider_mutex so amending phy_get()/of_phy_get() to take that same mutex guarantees there is no use-after-free.
Références
- https://git.kernel.org/stable/c/bcf7154dee9399c8e51686830d48cb61fee2a915
- https://git.kernel.org/stable/c/ad72ea0fd5f00a234f17fe4e3f8c9936e638b6c8
- https://git.kernel.org/stable/c/d34440199817f1570bce2164cf3504b9ff45805a
- https://git.kernel.org/stable/c/e4061a95067d9aed4b35fa8cd25493ac010e7a2f
- https://git.kernel.org/stable/c/2156c5aefd2c97a60766520bd04f4790f3b38f64
- https://git.kernel.org/stable/c/2ea5385758a7cc863d9e2f6b642c8e7820437980
- https://git.kernel.org/stable/c/8a9f16b5237eb5690cc109d37a545f034afa81de
- https://git.kernel.org/stable/c/090055ee629523092688da42428558ba56d4272f
Références européennes
- ENISA EUVD · EUVD-2026-130112
- GCVE · GCVE-0-2026-99446
Avis du CERT-FR
- CERTFR-2026-AVI-1639 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
Produits affectés
| Produit | Versions affectées |
|---|---|
| Linux · Linux | affectée : ≥ ff764963479a1b18721ab96e531404c50fefe8b1 < bcf7154dee9399c8e51686830d48cb61fee2a915 affectée : ≥ ff764963479a1b18721ab96e531404c50fefe8b1 < ad72ea0fd5f00a234f17fe4e3f8c9936e638b6c8 affectée : ≥ ff764963479a1b18721ab96e531404c50fefe8b1 < d34440199817f1570bce2164cf3504b9ff45805a affectée : ≥ ff764963479a1b18721ab96e531404c50fefe8b1 < e4061a95067d9aed4b35fa8cd25493ac010e7a2f affectée : ≥ ff764963479a1b18721ab96e531404c50fefe8b1 < 2156c5aefd2c97a60766520bd04f4790f3b38f64 affectée : ≥ ff764963479a1b18721ab96e531404c50fefe8b1 < 2ea5385758a7cc863d9e2f6b642c8e7820437980 affectée : ≥ ff764963479a1b18721ab96e531404c50fefe8b1 < 8a9f16b5237eb5690cc109d37a545f034afa81de affectée : ≥ ff764963479a1b18721ab96e531404c50fefe8b1 < 090055ee629523092688da42428558ba56d4272f Autres versions : non affectée |
| Linux · Linux | affectée : 3.13 non affectée : ≥ 0 < 3.13 non affectée : ≥ 5.10.275 ≤ 5.10.* non affectée : ≥ 5.15.226 ≤ 5.15.* non affectée : ≥ 6.1.193 ≤ 6.1.* non affectée : ≥ 6.6.163 ≤ 6.6.* non affectée : ≥ 6.12.117 ≤ 6.12.* non affectée : ≥ 6.18.61 ≤ 6.18.* non affectée : ≥ 7.3.2 ≤ 7.3.* non affectée : ≥ 7.4-rc1 ≤ * Autres versions : affectée |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |