In the Linux kernel, the following vulnerability has been resolved:
can: emsusb: emsusbreadbulk_callback(): fix URB memory leak
Fix similar memory leak as in commit 7352e1d5932a ("can: gsusb: gsusbreceivebulk_callback(): fix URB memory leak").
In emsusbopen(), the URBs for USB-in transfers are allocated, added to the dev->rxsubmitted anchor and submitted. In the complete callback emsusbreadbulkcallback(), the URBs are processed and resubmitted. In emsusbclose() the URBs are freed by calling usbkillanchoredurbs(&dev->rx_submitted).
However, this does not take into account that the USB framework unanchors the URB before the complete function is called. This means that once an in-URB has been completed, it is no longer anchored and is ultimately not released in emsusbclose().
Fix the memory leak by anchoring the URB in the emsusbreadbulkcallback() to the dev->rx_submitted anchor.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23058.json",
"cna_assigner": "Linux"
}