CVE-2022-49756 phy: usb: sunplus: Fix potential null-ptr-deref in sp_usb_phy_probe()
A null pointer dereference in the Linux kernel's Sunplus USB PHY driver can cause a system crash during device probing.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-49756?
CVE-2022-49756 is a medium-severity vulnerability in Linux kernel, published on 27 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-476
Which versions are affected by CVE-2022-49756?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49756?
Apply the vendor's patch.
Is CVE-2022-49756 being exploited?
There is no known exploitation of CVE-2022-49756 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-49756, GHSA-57pw-gf47-fr76, UBUNTU-CVE-2022-49756.