phy: usb: sunplus: Fix potential null-ptr-deref in sp_usb_phy_probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
phy: usb: sunplus: Fix potential null-ptr-deref in sp_usb_phy_probe()
sp_usb_phy_probe() will call platform_get_resource_byname() that may fail and return NULL. devm_ioremap() will use usbphy->moon4_res_mem->start as input, which may causes null-ptr-deref. Check the ret value of platform_get_resource_byname() to avoid the null-ptr-deref.
From the CVE record · Linux
The Linux kernel’s Sunplus USB PHY probe can dereference a null pointer if a resource lookup fails. The input does not describe an attacker action or specify whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the Sunplus USB PHY driver should check their versions; affected versions are not specified.