can: esd_usb: kill anchored URBs before freeing netdevs
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.217, 6.1.178, 6.12.97, 6.18.40, 6.6.145, 7.1.5
- CVEs
- CVE-2026-64585
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 01:44 UTC · Revision 2
Source evidence
can: esd_usb: kill anchored URBs before freeing netdevs
core-osv · Original sourcePublished 6 Aug 2026, 07:06 UTC
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.
osv:CVE-2026-64585
Kernel
Fixed versions: 5.15.217, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5
Complete source record
{
"id": "ec9c2a90d8d208838899b0c38fec0cf5c44ec5a9d91ad1a8d33be18135c288d0",
"url": "https://osv.dev/vulnerability/CVE-2026-64585",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "can: esd_usb: kill anchored URBs before freeing netdevs",
"summary": "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.",
"evidence": "osv:CVE-2026-64585",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.217",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.178",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.145",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.97",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.40",
"evidence": "/affected/1/ranges"
},
{
"value": "7.1.5",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2026-64585",
"aliases": [
"CVE-2026-64585"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "96d8e90382dc336b5de401164597edfdc2e8d9f1"
},
{
"fixed": "d12f6add48f2da15c8c8281961d3faad804c76cf"
},
{
"fixed": "aa1d005927db38af783c1a4a8a00a39e0229ab2d"
},
{
"fixed": "a02e1d8f191324583599544d54e59e6a2b74bb0e"
},
{
"fixed": "a3314f10369df70925140f59bbe069718f65a0b9"
},
{
"fixed": "765ba1c91823a296447528791b89a6504947fd5c"
},
{
"fixed": "5832c55b3c824ba2fe9c36ac3c411baddcce053e"
},
{
"fixed": "c43122fef328a70045fe7621c06de6b2b8e19264"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64585.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.6.36"
},
{
"fixed": "5.15.217"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.178"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.145"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.97"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.40"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "7.1.5"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64585.json"
}
}
],
"modified": "2026-10-28T02:30:25.368162737Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/5832c55b3c824ba2fe9c36ac3c411baddcce053e",
"https://git.kernel.org/stable/c/765ba1c91823a296447528791b89a6504947fd5c",
"https://git.kernel.org/stable/c/a02e1d8f191324583599544d54e59e6a2b74bb0e",
"https://git.kernel.org/stable/c/a3314f10369df70925140f59bbe069718f65a0b9",
"https://git.kernel.org/stable/c/aa1d005927db38af783c1a4a8a00a39e0229ab2d",
"https://git.kernel.org/stable/c/c43122fef328a70045fe7621c06de6b2b8e19264",
"https://git.kernel.org/stable/c/d12f6add48f2da15c8c8281961d3faad804c76cf",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64585.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-64585",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64585.json"
}
},
"related_cves": [
{
"value": "CVE-2026-64585",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 491726,
"published_at": "2026-08-06T07:06:26.556+00:00"
}