{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-99672","id":"CVE-2026-99672","title":"Linux kernel race condition in CAN receive list locking","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: protect the receive lists with a per-device lock\n\nThe receive lists of a CAN device are located in the device's\ncan_ml_priv and travel with the device when it is moved to another\nnetwork namespace. But they are protected by the per-netns\nrcvlists_lock. So can_rx_unregister() needs dev_net(dev) to pick the\nright lock and sile","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: protect the receive lists with a per-device lock\n\nThe receive lists of a CAN device are located in the device's\ncan_ml_priv and travel with the device when it is moved to another\nnetwork namespace. But they are protected by the per-netns\nrcvlists_lock. So can_rx_unregister() needs dev_net(dev) to pick the\nright lock and silently returns when the passed namespace does not\nmatch dev_net(dev) anymore.\n\nisotp_release() and bcm_release() leave their notifier list before they\ntake any lock that serializes against the netdev notifier, which runs\nunder RTNL. When the bound device is moved to another namespace in this\nwindow, the notifier skips the socket and the release path has to remove\nthe filters itself. isotp_release() passes the socket's namespace, which\ndoes not match dev_net(dev) anymore. bcm_rx_unreg() passes dev_net(dev),\nwhich can_rx_unregister() reads again for its check, so a namespace\nchange between both reads makes the check fail as well. In both cases\ncan_rx_unregister() silently returns. As can_rx_register() stores\nrcv->sk without a reference, the remaining receivers point to the freed\nsocket (isotp) or the freed op (bcm):\n\n  BUG: KASAN: use-after-free in isotp_rcv+0x1570/0x24d0\n  Read of size 1 at addr ffff888118130552 by task isotp_ns_uaf/578\n   can_rcv_filter+0x4af/0x8c0\n   can_receive+0x28d/0x3c0\n   can_rcv+0x2a9/0x310\n   __netif_receive_skb_one_core+0x21a/0x260\n   process_backlog+0x210/0x760\n\nBesides this, the lists of a device are protected by the rcvlists_lock\nof the namespace that is passed in. Callers which pass dev_net(dev) read\nit at different times, so the same lists may be modified under the locks\nof different namespaces while the device is moved.\n\nTaking RTNL in these release paths is no option: raw_bind(),\nraw_setsockopt() and raw_release() already hold RTNL while adding and\nremoving up to CAN_RAW_FILTER_MAX filters per socket, which unprivileged\nusers can trigger repeatedly and which makes RTNL a global bottleneck.\n\nInstead fix the root cause and add a spinlock to struct\ncan_dev_rcv_lists, which protects the receive lists of a CAN device or\nthe 'any' CAN device lists of a namespace. It is initialized in\ncan_set_ml_priv(), which is used by all CAN network devices. With this,\ncan_rx_unregister() finds the subscription independently of the\ncurrent namespace of the device. The protocols keep the device valid\nwith their tracked references. The per-netns rcvlists_lock only protects\nthe receive list statistics anymore, and CAN_RAW, CAN_BCM and CAN_ISOTP\npass the namespace that has been used for can_rx_register().\n\nSo isotp_release() and bcm_release() now remove their filters correctly\nwithout RTNL, and raw_release(), raw_setsockopt(), raw_bind() and\nisotp_bind() do not need RTNL anymore and add and remove their filters\nunder lock_sock(). To serialize bind() with NETDEV_UNREGISTER, bind()\npublishes the device inside the RCU section of its lookup, and\nraw_notify() and isotp_notify() recheck the bound device under lock_sock().\nAs RTNL does not keep NETDEV_DOWN out of bind() anymore, bind() checks\nIFF_UP after publishing the bound device, with a barrier pair against\nraw_notify() and isotp_notify(), so a down transition during bind() is\nstill reported with ENETDOWN.","published":"2026-11-20T05:50:21.150Z","updated":"2026-11-20T05:50:21.150Z","reserved":"2026-09-25T10:25:14.428Z","status":"PUBLISHED","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8e8cda6d737d356054c9eeef642aec0e8ae7e6bc","lessThan":"59d91f555ada337458c48316987b8ef46487f885","status":"affected","versionType":"git"},{"version":"8e8cda6d737d356054c9eeef642aec0e8ae7e6bc","lessThan":"4b625dde57c0a40a933bf017ff93a64a7306aa43","status":"affected","versionType":"git"},{"version":"8e8cda6d737d356054c9eeef642aec0e8ae7e6bc","lessThan":"228e795ec650c33ebbce8ba81ce983c84d64d889","status":"affected","versionType":"git"},{"version":"8e8cda6d737d356054c9eeef642aec0e8ae7e6bc","lessThan":"0f3ad9ab40e3dad06d5c0693806e07935ceedbc3","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.12","status":"affected"},{"version":"0","lessThan":"4.12","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/59d91f555ada337458c48316987b8ef46487f885","tags":[]},{"url":"https://git.kernel.org/stable/c/4b625dde57c0a40a933bf017ff93a64a7306aa43","tags":[]},{"url":"https://git.kernel.org/stable/c/228e795ec650c33ebbce8ba81ce983c84d64d889","tags":[]},{"url":"https://git.kernel.org/stable/c/0f3ad9ab40e3dad06d5c0693806e07935ceedbc3","tags":[]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":null,"epssPercentile":null,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-99672","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99672","ok":false,"note":"not found"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-99672","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99672","ok":false,"note":"no score yet"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}