Use After Free in Linux

CVE-2022-50034

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().

Vulnerability class: Use-After-Free

EPSS: 0.002 (5.9th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Affected products

  • Linux — versions 5.15.63, 8bc1901ca7b07d864fca11461b3875b31f949765, 6bbf87a131edd39040974f3843ff97e89310ebde
  • Linux Linux_kernel

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2022-50034?
CVE-2022-50034 is a high-severity vulnerability in Linux, classified under Use After Free. CVSS score: 7.8/10. Published 2025-06-18.
How severe is CVE-2022-50034?
High severity. CVSS v3 base score is 7.8 out of 10.