CVE-2024-50269
JSON

7.8high

usb: musb: sunxi: Fix accessing an released usb phy

Severity
7.8high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.27% (higher than 20% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: usb: musb: sunxi: Fix accessing an released usb phy Commit 6ed05c68cbca ("usb: musb: sunxi: Explicitly release USB PHY on exit") will cause that usb phy @glue->xceiv is accessed after released. 1) register platform driver @sunxi_musb_driver // get the usb phy @glue->xceiv sunxi_musb_probe() -> devm_usb_get_phy(). 2) register and unregister platform driver @musb_driver musb_probe() -> sunxi_musb_init() use the phy here //the phy is released here musb_remove() -> sunxi_musb_exit() -> devm_usb_put_phy() 3) register @musb_driver again musb_probe() -> sunxi_musb_init() use the phy here but the phy has been released at 2). ... Fixed by reverting the commit, namely, removing devm_usb_put_phy() from sunxi_musb_exit().

Affected

Product or packageVersionsReported by
Linux Linuxfrom 6ed05c68cbcae42cd52b8e53b66952bfa9c002ce before 721ddad945596220c123eb6f7126729fe277ee4f, from 6ed05c68cbcae42cd52b8e53b66952bfa9c002ce before 4aa77d5ea9944468e16c3eed15e858fd5de44de1, from 6ed05c68cbcae42cd52b8e53b66952bfa9c002ce before 6e2848d1c8c0139161e69ac0a94133e90e9988e8, from 6ed05c68cbcae42cd52b8e53b66952bfa9c002ce before 63559ba8077cbadae1c92a65b73ea522bf377dd9, from 6ed05c68cbcae42cd52b8e53b66952bfa9c002ce before ccd811c304d2ee56189bfbc49302cb3c44361893, from 6ed05c68cbcae42cd52b8e53b66952bfa9c002ce before 8a30da5aa9609663b3e05bcc91a916537f66a4cd, from 6ed05c68cbcae42cd52b8e53b66952bfa9c002ce before b08baa75b989cf779cbfa0969681f8ba2dc46569, from 6ed05c68cbcae42cd52b8e53b66952bfa9c002ce before 498dbd9aea205db9da674994b74c7bf8e18448bd and 7 more
Not affected: before 4.14, from 4.19.324 up to 4.19.*, from 5.4.286 up to 5.4.*, from 5.10.230 up to 5.10.*, from 5.15.172 up to 5.15.*, from 6.1.117 up to 6.1.*
CVE List
linux linux_kernelfrom 4.4.95 before 4.5, from 4.9.59 before 4.10, from 4.13.10 before 4.14, from 4.14 before 4.19.324, from 4.20 before 5.4.286, from 5.5 before 5.10.230, from 5.11 before 5.15.172, from 5.16 before 6.1.117 and 3 moreNVD

All scores

CISA-ADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: usb: musb: sunxi: Fix accessing an released usb phy Commit 6ed05c68cbca ("usb: musb: sunxi: Explicitly release USB PHY on exit") will cause that usb phy @glue->xceiv is accessed after released. 1) register platform driver @sunxi_musb_driver // get the usb phy @glue->xceiv sunxi_musb_probe() -> devm_usb_get_phy(). 2) register and unregister platform driver @musb_driver musb_probe() -> sunxi_musb_init() use the phy here //the phy is released here musb_remove() -> sunxi_musb_exit() -> devm_usb_put_phy() 3) register @musb_driver again musb_probe() -> sunxi_musb_init() use the phy here but the phy has been released at 2). ... Fixed by reverting the commit, namely, removing devm_usb_put_phy() from sunxi_musb_exit().

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: musb: sunxi: Se solucionó el acceso a un usb phy liberado. Commit 6ed05c68cbca ("usb: musb: sunxi: Liberar explícitamente USB PHY al salir") provocará que se acceda al usb phy @glue->xceiv después de su liberación. 1) registrar el controlador de la plataforma @sunxi_musb_driver // obtener el usb phy @glue->xceiv sunxi_musb_probe() -> devm_usb_get_phy(). 2) registrar y anular el registro del controlador de la plataforma @musb_driver musb_probe() -> sunxi_musb_init() usa el phy aquí //el phy se publica aquí musb_remove() -> sunxi_musb_exit() -> devm_usb_put_phy() 3) registrar @musb_driver nuevamente musb_probe() -> sunxi_musb_init() usa el phy aquí pero el phy se ha publicado en 2). ... Se solucionó revirtiendo el commit, es decir, eliminando devm_usb_put_phy() de sunxi_musb_exit().

References

Sources

SourceRecordLicence
CVE ListCVE-2024-50269 changed 2026-05-23CVE Terms of Use
NVDCVE-2024-50269 changed 2026-06-17Public domain