CVE-2022-49756
JSON

5.5medium

phy: usb: sunplus: Fix potential null-ptr-deref in sp_usb_phy_probe()

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.17% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 99d9ccd97385208b78b3d88e756451f4b70119fc before d838b5c99bcecd593b4710a93fce8fdbf122395b, from 99d9ccd97385208b78b3d88e756451f4b70119fc before 17eee264ef386ef30a69dd70e36f29893b85c170, 6.1
Not affected: before 6.1, from 6.1.9 up to 6.1.*, from 6.2 up to *
CVE List
linux linux_kernelfrom 6.1 before 6.1.9, 6.2NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-476

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

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: phy: usb: sunplus: Se corrige la posible desreferencia de PTR nula en sp_usb_phy_probe(). Sp_usb_phy_probe() llamará a platform_get_resource_byname(), que podría fallar y devolver NULL. devm_ioremap() utilizará usbphy->moon4_res_mem->start como entrada, lo que puede causar una desreferencia de PTR nula. Compruebe el valor ret de platform_get_resource_byname() para evitar la desreferencia de PTR nula.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-49756 changed 2026-05-11CVE Terms of Use
NVDCVE-2022-49756 changed 2026-06-17Public domain