Misinterpretation of Return Value in dwc3-qcom.c in Linux Kernel

Misinterpretation of Return Value in dwc3-qcom.c in Linux Kernel

CVE-2023-22999 · MEDIUM Severity

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

In the Linux kernel before 5.16.3, drivers/usb/dwc3/dwc3-qcom.c misinterprets the dwc3_qcom_create_urs_usb_platdev return value (expects it to be NULL in the error case, whereas it is actually an error pointer).

Learn more about our Cis Benchmark Audit For Distribution Independent Linux.