CVE-2026-99672
published high CVSS 3.1 · 7.8can: protect the receive lists with a per-device lock
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux8e8cda6d737d356054c9eeef642aec0e8ae7e6bc to < c91b7a021f4c407198bcc0da44125e8a1649ad41 · 8e8cda6d737d356054c9eeef642aec0e8ae7e6bc to < dbf57b99e1fc43679d3e3ba6aacb1a9858462302 · 8e8cda6d737d356054c9eeef642aec0e8ae7e6bc to < 3fcffe9ef1e900d8551a5872fee9efd8c67785f5 · 8e8cda6d737d356054c9eeef642aec0e8ae7e6bc to < af23b302ffe575b74d1fab0fae8fe5c605f4952e · 8e8cda6d737d356054c9eeef642aec0e8ae7e6bc to < 59d91f555ada337458c48316987b8ef46487f885 · 8e8cda6d737d356054c9eeef642aec0e8ae7e6bc to < 4b625dde57c0a40a933bf017ff93a64a7306aa43 · 8e8cda6d737d356054c9eeef642aec0e8ae7e6bc to < 228e795ec650c33ebbce8ba81ce983c84d64d889 · 8e8cda6d737d356054c9eeef642aec0e8ae7e6bc to < 0f3ad9ab40e3dad06d5c0693806e07935ceedbc3 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.12 (affected) · 0 to < 4.12 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.5 through 7.3.* (unaffected · semver) · 7.4-rc2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Debian | trixie | linux | Advisory build | 6.12.118-1 | DSA-6652-1 |
Description
In the Linux kernel, the following vulnerability has been resolved: can: protect the receive lists with a per-device lock The receive lists of a CAN device are located in the device's can_ml_priv and travel with the device when it is moved to another network namespace. But they are protected by the per-netns rcvlists_lock. So can_rx_unregister() needs dev_net(dev) to pick the right lock and silently returns when the passed namespace does not match dev_net(dev) anymore. isotp_release() and bcm_release() leave their notifier list before they take any lock that serializes against the netdev notifier, which runs under RTNL. When the bound device is moved to another namespace in this window, the notifier skips the socket and the release path has to remove the filters itself. isotp_release() passes the socket's namespace, which does not match dev_net(dev) anymore. bcm_rx_unreg() passes dev_net(dev), which can_rx_unregister() reads again for its check, so a namespace change between both reads makes the check fail as well. In both cases can_rx_unregister() silently returns. As can_rx_register() stores rcv->sk without a reference, the remaining receivers point to the freed socket (isotp) or the freed op (bcm): BUG: KASAN: use-after-free in isotp_rcv+0x1570/0x24d0 Read of size 1 at addr ffff888118130552 by task isotp_ns_uaf/578 can_rcv_filter+0x4af/0x8c0 can_receive+0x28d/0x3c0 can_rcv+0x2a9/0x310 __netif_receive_skb_one_core+0x21a/0x260 process_backlog+0x210/0x760 Besides this, the lists of a device are protected by the rcvlists_lock of the namespace that is passed in. Callers which pass dev_net(dev) read it at different times, so the same lists may be modified under the locks of different namespaces while the device is moved. Taking RTNL in these release paths is no option: raw_bind(), raw_setsockopt() and raw_release() already hold RTNL while adding and removing up to CAN_RAW_FILTER_MAX filters per socket, which unprivileged users can trigger repeatedly and which makes RTNL a global bottleneck. Instead fix the root cause and add a spinlock to struct can_dev_rcv_lists, which protects the receive lists of a CAN device or the 'any' CAN device lists of a namespace. It is initialized in can_set_ml_priv(), which is used by all CAN network devices. With this, can_rx_unregister() finds the subscription independently of the current namespace of the device. The protocols keep the device valid with their tracked references. The per-netns rcvlists_lock only protects the receive list statistics anymore, and CAN_RAW, CAN_BCM and CAN_ISOTP pass the namespace that has been used for can_rx_register(). So isotp_release() and bcm_release() now remove their filters correctly without RTNL, and raw_release(), raw_setsockopt(), raw_bind() and isotp_bind() do not need RTNL anymore and add and remove their filters under lock_sock(). To serialize bind() with NETDEV_UNREGISTER, bind() publishes the device inside the RCU section of its lookup, and raw_notify() and isotp_notify() recheck the bound device under lock_sock(). As RTNL does not keep NETDEV_DOWN out of bind() anymore, bind() checks IFF_UP after publishing the bound device, with a barrier pair against raw_notify() and isotp_notify(), so a down transition during bind() is still reported with ENETDOWN.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - isotp_release() list_del()s the socket from isotp_notifier_list before rtnl_lock(), so rtnl_setlink()'s __dev_change_net_namespace() runs NETDEV_UNREGISTER without calling isotp_notify(). can_rx_unregister(sock_net(sk), dev) then returns on the dev_net(dev) mismatch and leaves receiver.data set. A later can_send() loopback on that vcan reaches the stale entry from can_rcv(). AC:L - The attacker creates the vcan (vcan_link_ops does not set netns_immutable), binds a CAN_ISOTP or CAN_BCM socket, and races close() with the RTM_SETLINK move, then sets IFF_UP and transmits the registered CAN id. Both threads and the device state are under the attacker's control. PR:L - can_create() does not check capabilities, so socket(AF_CAN, SOCK_DGRAM, CAN_ISOTP) is unprivileged. The move needs CAP_NET_ADMIN only in the netns user namespace, via netlink_net_capable() in rtnetlink_rcv_msg() and rtnl_link_get_net_capable(), which the root of an unprivileged user namespace holds. UI:N - The attacker alone performs socket(), isotp_bind(), close, RTM_SETLINK, and can_send() on a vcan they created. S:U - The dangling receiver.data is an isotp_sock or bcm_op in the host kernel; can_rcv_filter() corrupts that kernel memory. The fault stays inside the kernel's own security authority. C:H - can_rx_register() stores the sock or bcm_op in receiver.data with no reference. After the failed unregister, can_rcv_filter() calls isotp_rcv() on the freed isotp_sock (KASAN read of so->opt.flags) and bcm_rx_handler() memcpy()s through op->frames into an skb queued by bcm_send_to_user() to op->sk. I:H - isotp_rcv_ff() stores the received CAN bytes through so->rx.buf (initialized to the inline rx.sbuf) of the freed isotp_sock, and bcm_rx_update_and_send() memcpy()s rxframe into op->last_frames for op->cfsiz bytes. Reusing those freed slots turns the callbacks into kernel memory writes. A:H - The published KASAN trace is a use-after-free read in isotp_rcv() from can_rcv_filter() during process_backlog(). The same callback spin_lock()s so->rx_lock and cancels hrtimers on the freed object, which oopses or hangs the kernel.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 8e8cda6d737d356054c9eeef642aec0e8ae7e6bc to < c91b7a021f4c407198bcc0da44125e8a1649ad41 (affected · git)8e8cda6d737d356054c9eeef642aec0e8ae7e6bc to < dbf57b99e1fc43679d3e3ba6aacb1a9858462302 (affected · git)8e8cda6d737d356054c9eeef642aec0e8ae7e6bc to < 3fcffe9ef1e900d8551a5872fee9efd8c67785f5 (affected · git)8e8cda6d737d356054c9eeef642aec0e8ae7e6bc to < af23b302ffe575b74d1fab0fae8fe5c605f4952e (affected · git)8e8cda6d737d356054c9eeef642aec0e8ae7e6bc to < 59d91f555ada337458c48316987b8ef46487f885 (affected · git)8e8cda6d737d356054c9eeef642aec0e8ae7e6bc to < 4b625dde57c0a40a933bf017ff93a64a7306aa43 (affected · git)8e8cda6d737d356054c9eeef642aec0e8ae7e6bc to < 228e795ec650c33ebbce8ba81ce983c84d64d889 (affected · git)8e8cda6d737d356054c9eeef642aec0e8ae7e6bc to < 0f3ad9ab40e3dad06d5c0693806e07935ceedbc3 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.12 (affected)0 to < 4.12 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.5 through 7.3.* (unaffected · semver)7.4-rc2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/0f3ad9ab40e3dad06d5c0693806e07935ceedbc3
- https://git.kernel.org/stable/c/228e795ec650c33ebbce8ba81ce983c84d64d889
- https://git.kernel.org/stable/c/3fcffe9ef1e900d8551a5872fee9efd8c67785f5
- https://git.kernel.org/stable/c/4b625dde57c0a40a933bf017ff93a64a7306aa43
- https://git.kernel.org/stable/c/59d91f555ada337458c48316987b8ef46487f885
- https://git.kernel.org/stable/c/af23b302ffe575b74d1fab0fae8fe5c605f4952e
- https://git.kernel.org/stable/c/c91b7a021f4c407198bcc0da44125e8a1649ad41
- https://git.kernel.org/stable/c/dbf57b99e1fc43679d3e3ba6aacb1a9858462302
Provider assertions
1Linux · cna
can: protect the receive lists with a per-device lock
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 62ac8957aff3bc80893c4ba8dcb2f8f996233f719961aaf568cc7c804549dd36
- Ingested
- 23 Nov 2026, 14:37:13 UTC
- Source record
- Official CVE record