CVE-2024-50269

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

High · published November 19, 2024

CVSS v3.1
7.8
EPSS
0%
Percentile
18.2
In the wild
Unconfirmed
What it is

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().

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00270 · 18.2th percentile
Published
2024-11-19T01:30Z
EPSS history
Timeline
  • 19 NOV 01:30Z
    usb: musb: sunxi: Fix accessing an released usb phy
    cvelistv5