# CVE-2022-50034: usb: cdns3 fix use-after-free at workaround 2

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-06-18T11:01:36.435Z
- Modified: 2026-08-15T13:17:30.473Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

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

usb: cdns3 fix use-after-free at workaround 2

BUG: KFENCE: use-after-free read in __list_del_entry_valid+0x10/0xac

cdns3_wa2_remove_old_request()
{
	...
	kfree(priv_req->request.buf);
	cdns3_gadget_ep_free_request(&priv_ep->endpoint, &priv_req->request);
	list_del_init(&priv_req->list);
	^^^ use after free
	...
}

cdns3_gadget_ep_free_request() free the space pointed by priv_req,
but priv_req is used in the following list_del_init().

This patch move list_del_init() before cdns3_gadget_ep_free_request().

(As written by CVE List.)

## Affected

- Linux Linux: from 6bbf87a131edd39040974f3843ff97e89310ebde before e65d9b7147d7be3504893ca7dfb85286bda83d40; from 6bbf87a131edd39040974f3843ff97e89310ebde before 6d7ac60098b206d0472475b666cb09d556bec03d; from 6bbf87a131edd39040974f3843ff97e89310ebde before c3c1dbad3a2db32ecf371c97f2058491b8ba0f9a; from 6bbf87a131edd39040974f3843ff97e89310ebde before 6fd50446e7c9a98b4bcf96815f5c9602a16ea472; from 6bbf87a131edd39040974f3843ff97e89310ebde before 7d602f30149a117eea260208b1661bc404c21dfd; 5.4 (not affected: before 5.4; from 5.4.211 up to 5.4.*; from 5.10.138 up to 5.10.*; from 5.15.63 up to 5.15.*; from 5.19.4 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.3 before 5.4.211; from 5.5 before 5.10.138; from 5.11 before 5.15.63; from 5.16 before 5.19.4

## References

- <https://git.kernel.org/stable/c/e65d9b7147d7be3504893ca7dfb85286bda83d40> (patch)
- <https://git.kernel.org/stable/c/6d7ac60098b206d0472475b666cb09d556bec03d> (patch)
- <https://git.kernel.org/stable/c/c3c1dbad3a2db32ecf371c97f2058491b8ba0f9a> (patch)
- <https://git.kernel.org/stable/c/6fd50446e7c9a98b4bcf96815f5c9602a16ea472> (patch)
- <https://git.kernel.org/stable/c/7d602f30149a117eea260208b1661bc404c21dfd> (patch)

## Sources

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

---

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