{"id":"CVE-2026-64585","aliases":["CVE-2026-64585"],"related":[],"kind":"vulnerability","state":"published","title":"can: esd_usb: kill anchored URBs before freeing netdevs","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: esd_usb: kill anchored URBs before freeing netdevs\n\nesd_usb_disconnect() frees each CAN netdev with free_candev() inside\nits per-netdev loop and only calls unlink_all_urbs(dev) afterwards.\nThe per-netdev private data (struct esd_usb_net_priv) is embedded in\nthe net_device allocation returned by alloc_candev(), so once\nfree_candev() has run, dev->nets[i] points to freed memory.\nunlink_all_urbs() then dereferences the freed dev->nets[i] to kill the\nper-netdev TX anchor (usb_kill_anchored_urbs(&priv->tx_submitted)),\nclear active_tx_jobs, and reset priv->tx_contexts[].\n\nReorder the teardown so the anchored URBs are killed before the netdevs\nare freed, matching other CAN/USB drivers in the same directory such as\nems_usb, usb_8dev and mcba_usb, which unregister, then unlink, then\nfree: unregister the netdevs first (which stops their TX queues), call\nunlink_all_urbs(dev) once, then free the netdevs.\n\nThis issue was found by an in-house static analysis tool.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: esd_usb: kill anchored URBs before freeing netdevs\n\nesd_usb_disconnect() frees each CAN netdev with free_candev() inside\nits per-netdev loop and only calls unlink_all_urbs(dev) afterwards.\nThe per-netdev private data (struct esd_usb_net_priv) is embedded in\nthe net_device allocation returned by alloc_candev(), so once\nfree_candev() has run, dev->nets[i] points to freed memory.\nunlink_all_urbs() then dereferences the freed dev->nets[i] to kill the\nper-netdev TX anchor (usb_kill_anchored_urbs(&priv->tx_submitted)),\nclear active_tx_jobs, and reset priv->tx_contexts[].\n\nReorder the teardown so the anchored URBs are killed before the netdevs\nare freed, matching other CAN/USB drivers in the same directory such as\nems_usb, usb_8dev and mcba_usb, which unregister, then unlink, then\nfree: unregister the netdevs first (which stops their TX queues), call\nunlink_all_urbs(dev) once, then free the netdevs.\n\nThis issue was found by an in-house static analysis tool.","source":"cvelist"}],"published":"2026-08-06T07:06:26.556Z","modified":"2026-11-30T18:45:56.723Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"96d8e90382dc336b5de401164597edfdc2e8d9f1","fixed":"d12f6add48f2da15c8c8281961d3faad804c76cf","status":"affected"},{"type":"git","introduced":"96d8e90382dc336b5de401164597edfdc2e8d9f1","fixed":"aa1d005927db38af783c1a4a8a00a39e0229ab2d","status":"affected"},{"type":"git","introduced":"96d8e90382dc336b5de401164597edfdc2e8d9f1","fixed":"a02e1d8f191324583599544d54e59e6a2b74bb0e","status":"affected"},{"type":"git","introduced":"96d8e90382dc336b5de401164597edfdc2e8d9f1","fixed":"a3314f10369df70925140f59bbe069718f65a0b9","status":"affected"},{"type":"git","introduced":"96d8e90382dc336b5de401164597edfdc2e8d9f1","fixed":"765ba1c91823a296447528791b89a6504947fd5c","status":"affected"},{"type":"git","introduced":"96d8e90382dc336b5de401164597edfdc2e8d9f1","fixed":"5832c55b3c824ba2fe9c36ac3c411baddcce053e","status":"affected"},{"type":"git","introduced":"96d8e90382dc336b5de401164597edfdc2e8d9f1","fixed":"c43122fef328a70045fe7621c06de6b2b8e19264","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.36","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.36","status":"unaffected"},{"type":"semver","introduced":"5.15.217","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.178","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.145","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.97","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.40","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.5","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.36","fixed":"5.15.217"},{"status":"affected","introduced":"5.16","fixed":"6.1.178"},{"status":"affected","introduced":"6.2","fixed":"6.6.145"},{"status":"affected","introduced":"6.7","fixed":"6.12.97"},{"status":"affected","introduced":"6.13","fixed":"6.18.40"},{"status":"affected","introduced":"6.19","fixed":"7.1.5"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"},{"status":"affected","version":"7.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d12f6add48f2da15c8c8281961d3faad804c76cf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aa1d005927db38af783c1a4a8a00a39e0229ab2d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a02e1d8f191324583599544d54e59e6a2b74bb0e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a3314f10369df70925140f59bbe069718f65a0b9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/765ba1c91823a296447528791b89a6504947fd5c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5832c55b3c824ba2fe9c36ac3c411baddcce053e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c43122fef328a70045fe7621c06de6b2b8e19264","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64585","url":"https://www.cve.org/CVERecord?id=CVE-2026-64585","licence":"CVE Terms of Use","modified":"2026-08-23T12:45:43.597Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64585","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64585","licence":"Public domain","modified":"2026-11-30T18:45:56.723Z"}],"updatedAt":"2026-11-30T18:47:33.794Z","epss":{"score":0.0012,"percentile":0.02031,"date":"2026-12-01T12:00:22.000Z"}}