CVE-2022-50132

Summary

In the Linux kernel, the following vulnerability has been resolved:

usb: cdns3: change place of 'priv_ep' assignment in cdns3_gadget_ep_dequeue(), cdns3_gadget_ep_enable()

If 'ep' is NULL, result of ep_to_cdns3_ep(ep) is invalid pointer and its dereference with priv_ep->cdns3_dev may cause panic.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Affected Software

VendorProductVersion RangeStatus
LinuxLinux7733f6c32e36ff9d7adadf40001039bf219b1cbe < 7af83bb516d7aa4f96835288e4aeda21d7aa2a17affected
LinuxLinux7733f6c32e36ff9d7adadf40001039bf219b1cbe < bfa0201468587072454dba7933e4a4a7be44467aaffected
LinuxLinux7733f6c32e36ff9d7adadf40001039bf219b1cbe < d342203df9f2d0851b4acd9ed577d73d10eade77affected
LinuxLinux7733f6c32e36ff9d7adadf40001039bf219b1cbe < eb82c0382285ee17a9966aaab27b8becb08eb1acaffected
LinuxLinux7733f6c32e36ff9d7adadf40001039bf219b1cbe < c3ffc9c4ca44bfe9562166793d133e1fb0630ea6affected
LinuxLinux5.4affected
LinuxLinux0 < 5.4unaffected
LinuxLinux5.10.137 <= 5.10.*unaffected
LinuxLinux5.15.61 <= 5.15.*unaffected
LinuxLinux5.18.18 <= 5.18.*unaffected
LinuxLinux5.19.2 <= 5.19.*unaffected
LinuxLinux6.0 <= *unaffected

Weaknesses

References