{"id":"CVE-2026-23058","aliases":["CVE-2026-23058"],"related":[],"kind":"vulnerability","state":"published","title":"can: ems_usb: ems_usb_read_bulk_callback(): fix URB memory leak","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: ems_usb: ems_usb_read_bulk_callback(): fix URB memory leak\n\nFix similar memory leak as in commit 7352e1d5932a (\"can: gs_usb:\ngs_usb_receive_bulk_callback(): fix URB memory leak\").\n\nIn ems_usb_open(), the URBs for USB-in transfers are allocated, added to\nthe dev->rx_submitted anchor and submitted. In the complete callback\nems_usb_read_bulk_callback(), the URBs are processed and resubmitted. In\nems_usb_close() the URBs are freed by calling\nusb_kill_anchored_urbs(&dev->rx_submitted).\n\nHowever, this does not take into account that the USB framework unanchors\nthe URB before the complete function is called. This means that once an\nin-URB has been completed, it is no longer anchored and is ultimately not\nreleased in ems_usb_close().\n\nFix the memory leak by anchoring the URB in the\nems_usb_read_bulk_callback() to the dev->rx_submitted anchor.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: ems_usb: ems_usb_read_bulk_callback(): fix URB memory leak\n\nFix similar memory leak as in commit 7352e1d5932a (\"can: gs_usb:\ngs_usb_receive_bulk_callback(): fix URB memory leak\").\n\nIn ems_usb_open(), the URBs for USB-in transfers are allocated, added to\nthe dev->rx_submitted anchor and submitted. In the complete callback\nems_usb_read_bulk_callback(), the URBs are processed and resubmitted. In\nems_usb_close() the URBs are freed by calling\nusb_kill_anchored_urbs(&dev->rx_submitted).\n\nHowever, this does not take into account that the USB framework unanchors\nthe URB before the complete function is called. This means that once an\nin-URB has been completed, it is no longer anchored and is ultimately not\nreleased in ems_usb_close().\n\nFix the memory leak by anchoring the URB in the\nems_usb_read_bulk_callback() to the dev->rx_submitted anchor.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncan: ems_usb: ems_usb_read_bulk_callback(): corregir fuga de memoria de URB\n\nCorregir fuga de memoria similar a la del commit 7352e1d5932a ('can: gs_usb: gs_usb_receive_bulk_callback(): corregir fuga de memoria de URB').\n\nEn ems_usb_open(), los URB para transferencias USB de entrada son asignados, añadidos al ancla dev-&gt;rx_submitted y enviados. En la función de devolución de llamada completa ems_usb_read_bulk_callback(), los URB son procesados y reenviados. En ems_usb_close() los URB son liberados llamando a usb_kill_anchored_urbs(&amp;dev-&gt;rx_submitted).\n\nSin embargo, esto no tiene en cuenta que el framework USB desancla el URB antes de que se llame a la función completa. Esto significa que una vez que un URB de entrada ha sido completado, ya no está anclado y finalmente no es liberado en ems_usb_close().\n\nCorregir la fuga de memoria anclando el URB en la ems_usb_read_bulk_callback() al ancla dev-&gt;rx_submitted.","source":"nvd"}],"published":"2026-02-04T16:07:41.337Z","modified":"2026-06-17T10:20:47.223Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"702171adeed3607ee9603ec30ce081411e36ae42","fixed":"e2c71030dc464d437110bcfb367c493fd402bddb","status":"affected"},{"type":"git","introduced":"702171adeed3607ee9603ec30ce081411e36ae42","fixed":"f48eabd15194b216030b32445f44230df95f5fe0","status":"affected"},{"type":"git","introduced":"702171adeed3607ee9603ec30ce081411e36ae42","fixed":"61e6d3674c3d1da1475dc207b3e75c55d678d18e","status":"affected"},{"type":"git","introduced":"702171adeed3607ee9603ec30ce081411e36ae42","fixed":"e9410fdd4d5f7eaa6526d8c80e83029d7c86a8e8","status":"affected"},{"type":"git","introduced":"702171adeed3607ee9603ec30ce081411e36ae42","fixed":"46a191ff7eeec33a2ccb2a1bfea34e18fbc5dc1a","status":"affected"},{"type":"git","introduced":"702171adeed3607ee9603ec30ce081411e36ae42","fixed":"68c62b3e53901846b5f68c5a8bade72a5d9c0b87","status":"affected"},{"type":"git","introduced":"702171adeed3607ee9603ec30ce081411e36ae42","fixed":"0ce73a0eb5a27070957b67fd74059b6da89cc516","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.32","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.32","status":"unaffected"},{"type":"semver","introduced":"5.10.249","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.199","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.162","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.122","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.68","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.8","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e2c71030dc464d437110bcfb367c493fd402bddb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f48eabd15194b216030b32445f44230df95f5fe0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/61e6d3674c3d1da1475dc207b3e75c55d678d18e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e9410fdd4d5f7eaa6526d8c80e83029d7c86a8e8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/46a191ff7eeec33a2ccb2a1bfea34e18fbc5dc1a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/68c62b3e53901846b5f68c5a8bade72a5d9c0b87","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0ce73a0eb5a27070957b67fd74059b6da89cc516","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23058","url":"https://www.cve.org/CVERecord?id=CVE-2026-23058","licence":"CVE Terms of Use","modified":"2026-05-11T21:59:11.271Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23058","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23058","licence":"Public domain","modified":"2026-06-17T10:20:47.223Z"}],"updatedAt":"2026-11-25T22:59:13.457Z","epss":{"score":0.00207,"percentile":0.11476,"date":"2026-12-01T12:00:22.000Z"}}