# CVE-2022-50132: usb: cdns3: change place of 'priv_ep' assignment in cdns3_gadget_ep_dequeue(), cdns3_gadget_ep_enable()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-06-18T11:02:57.498Z
- Modified: 2026-06-17T05:22:49.473Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 7733f6c32e36ff9d7adadf40001039bf219b1cbe before 7af83bb516d7aa4f96835288e4aeda21d7aa2a17; from 7733f6c32e36ff9d7adadf40001039bf219b1cbe before bfa0201468587072454dba7933e4a4a7be44467a; from 7733f6c32e36ff9d7adadf40001039bf219b1cbe before d342203df9f2d0851b4acd9ed577d73d10eade77; from 7733f6c32e36ff9d7adadf40001039bf219b1cbe before eb82c0382285ee17a9966aaab27b8becb08eb1ac; from 7733f6c32e36ff9d7adadf40001039bf219b1cbe before c3ffc9c4ca44bfe9562166793d133e1fb0630ea6; 5.4 (not affected: before 5.4; from 5.10.137 up to 5.10.*; from 5.15.61 up to 5.15.*; from 5.18.18 up to 5.18.*; from 5.19.2 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.4 before 5.10.137; from 5.11 before 5.15.61; from 5.16 before 5.18.18; from 5.19 before 5.19.2

## References

- <https://git.kernel.org/stable/c/7af83bb516d7aa4f96835288e4aeda21d7aa2a17> (patch)
- <https://git.kernel.org/stable/c/bfa0201468587072454dba7933e4a4a7be44467a> (patch)
- <https://git.kernel.org/stable/c/d342203df9f2d0851b4acd9ed577d73d10eade77> (patch)
- <https://git.kernel.org/stable/c/eb82c0382285ee17a9966aaab27b8becb08eb1ac> (patch)
- <https://git.kernel.org/stable/c/c3ffc9c4ca44bfe9562166793d133e1fb0630ea6> (patch)

## Sources

- CVE List: [CVE-2022-50132](https://www.cve.org/CVERecord?id=CVE-2022-50132), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50132](https://nvd.nist.gov/vuln/detail/CVE-2022-50132), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50132 · Whole record: https://cve.day/CVE-2022-50132.json · Rebuilt by cve.day 2026-11-25T22:58:21.068Z
