# CVE-2026-64585: can: esd_usb: kill anchored URBs before freeing netdevs

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-08-06T07:06:26.556Z
- Modified: 2026-11-30T18:45:56.723Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

can: esd_usb: kill anchored URBs before freeing netdevs

esd_usb_disconnect() frees each CAN netdev with free_candev() inside
its per-netdev loop and only calls unlink_all_urbs(dev) afterwards.
The per-netdev private data (struct esd_usb_net_priv) is embedded in
the net_device allocation returned by alloc_candev(), so once
free_candev() has run, dev->nets[i] points to freed memory.
unlink_all_urbs() then dereferences the freed dev->nets[i] to kill the
per-netdev TX anchor (usb_kill_anchored_urbs(&priv->tx_submitted)),
clear active_tx_jobs, and reset priv->tx_contexts[].

Reorder the teardown so the anchored URBs are killed before the netdevs
are freed, matching other CAN/USB drivers in the same directory such as
ems_usb, usb_8dev and mcba_usb, which unregister, then unlink, then
free: unregister the netdevs first (which stops their TX queues), call
unlink_all_urbs(dev) once, then free the netdevs.

This issue was found by an in-house static analysis tool.

(As written by CVE List.)

## Affected

- Linux Linux: from 96d8e90382dc336b5de401164597edfdc2e8d9f1 before d12f6add48f2da15c8c8281961d3faad804c76cf; from 96d8e90382dc336b5de401164597edfdc2e8d9f1 before aa1d005927db38af783c1a4a8a00a39e0229ab2d; from 96d8e90382dc336b5de401164597edfdc2e8d9f1 before a02e1d8f191324583599544d54e59e6a2b74bb0e; from 96d8e90382dc336b5de401164597edfdc2e8d9f1 before a3314f10369df70925140f59bbe069718f65a0b9; from 96d8e90382dc336b5de401164597edfdc2e8d9f1 before 765ba1c91823a296447528791b89a6504947fd5c; from 96d8e90382dc336b5de401164597edfdc2e8d9f1 before 5832c55b3c824ba2fe9c36ac3c411baddcce053e; from 96d8e90382dc336b5de401164597edfdc2e8d9f1 before c43122fef328a70045fe7621c06de6b2b8e19264; 2.6.36 (not affected: before 2.6.36; from 5.15.217 up to 5.15.*; from 6.1.178 up to 6.1.*; from 6.6.145 up to 6.6.*; from 6.12.97 up to 6.12.*; from 6.18.40 up to 6.18.*; from 7.1.5 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 2.6.36 before 5.15.217; from 5.16 before 6.1.178; from 6.2 before 6.6.145; from 6.7 before 6.12.97; from 6.13 before 6.18.40; from 6.19 before 7.1.5; 7.2

## References

- <https://git.kernel.org/stable/c/d12f6add48f2da15c8c8281961d3faad804c76cf> (patch)
- <https://git.kernel.org/stable/c/aa1d005927db38af783c1a4a8a00a39e0229ab2d> (patch)
- <https://git.kernel.org/stable/c/a02e1d8f191324583599544d54e59e6a2b74bb0e> (patch)
- <https://git.kernel.org/stable/c/a3314f10369df70925140f59bbe069718f65a0b9> (patch)
- <https://git.kernel.org/stable/c/765ba1c91823a296447528791b89a6504947fd5c> (patch)
- <https://git.kernel.org/stable/c/5832c55b3c824ba2fe9c36ac3c411baddcce053e> (patch)
- <https://git.kernel.org/stable/c/c43122fef328a70045fe7621c06de6b2b8e19264> (patch)

## Sources

- CVE List: [CVE-2026-64585](https://www.cve.org/CVERecord?id=CVE-2026-64585), CVE Terms of Use, modified 2026-08-23
- NVD: [CVE-2026-64585](https://nvd.nist.gov/vuln/detail/CVE-2026-64585), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-64585 · Whole record: https://cve.day/CVE-2026-64585.json · Rebuilt by cve.day 2026-11-30T18:47:33.794Z
