{"id":"CVE-2022-50034","published":"2025-06-18T11:01:36Z","modified":"2026-08-15T12:23:09Z","title":"usb: cdns3 fix use-after-free at workaround 2","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: cdns3 fix use-after-free at workaround 2\n\nBUG: KFENCE: use-after-free read in __list_del_entry_valid+0x10/0xac\n\ncdns3_wa2_remove_old_request()\n{\n\t...\n\tkfree(priv_req->request.buf);\n\tcdns3_gadget_ep_free_request(&priv_ep->endpoint, &priv_req->request);\n\tlist_del_init(&priv_req->list);\n\t^^^ use after free\n\t...\n}\n\ncdns3_gadget_ep_free_request() free the space pointed by priv_req,\nbut priv_req is used in the following list_del_init().\n\nThis patch move list_del_init() before cdns3_gadget_ep_free_request().","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00207,"percentile":0.1085,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/e65d9b7147d7be3504893ca7dfb85286bda83d40","tags":[]},{"url":"https://git.kernel.org/stable/c/6d7ac60098b206d0472475b666cb09d556bec03d","tags":[]},{"url":"https://git.kernel.org/stable/c/c3c1dbad3a2db32ecf371c97f2058491b8ba0f9a","tags":[]},{"url":"https://git.kernel.org/stable/c/6fd50446e7c9a98b4bcf96815f5c9602a16ea472","tags":[]},{"url":"https://git.kernel.org/stable/c/7d602f30149a117eea260208b1661bc404c21dfd","tags":[]}],"priority":{"score":2.2,"factors":[{"name":"EPSS percentile","points":2.17}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 6bbf87a131edd39040974f3843ff97e89310ebde, < e65d9b7147d7be3504893ca7dfb85286bda83d40",">= 6bbf87a131edd39040974f3843ff97e89310ebde, < 6d7ac60098b206d0472475b666cb09d556bec03d",">= 6bbf87a131edd39040974f3843ff97e89310ebde, < c3c1dbad3a2db32ecf371c97f2058491b8ba0f9a",">= 6bbf87a131edd39040974f3843ff97e89310ebde, < 6fd50446e7c9a98b4bcf96815f5c9602a16ea472",">= 6bbf87a131edd39040974f3843ff97e89310ebde, < 7d602f30149a117eea260208b1661bc404c21dfd"]},{"vendor":"Linux","product":"Linux","versions":["5.4"]}],"euvd":{"id":"EUVD-2022-55305","exploited":false,"provenance":"source"}}