{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-72125","id":"CVE-2026-72125","title":"can: isotp: fix use-after-free race with concurrent NETDEV_UNREGISTER","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: isotp: fix use-after-free race with concurrent NETDEV_UNREGISTER\n\nisotp_release() looked up the bound network device via dev_get_by_index()\nusing the stored ifindex. During device unregistration the device is\nunlisted from the ifindex hash before the NETDEV_UNREGISTER notifier\nchain runs, so a concurrent isotp_release() coul","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: isotp: fix use-after-free race with concurrent NETDEV_UNREGISTER\n\nisotp_release() looked up the bound network device via dev_get_by_index()\nusing the stored ifindex. During device unregistration the device is\nunlisted from the ifindex hash before the NETDEV_UNREGISTER notifier\nchain runs, so a concurrent isotp_release() could find no device, skip\ncan_rx_unregister() entirely, and still proceed to free the socket.\nSince isotp_release() had already removed itself from the isotp\nnotifier list at that point, isotp_notify() would never get a chance to\nclean up either, leaving a stale CAN filter that keeps pointing at the\nfreed socket.\n\nFix this the same way raw.c already does: hold a tracked reference to\nthe bound net_device in the socket (so->dev/so->dev_tracker) from\nbind() onward instead of re-resolving it from the ifindex, and\nserialize bind()/release() with rtnl_lock() so that so->dev is always\nconsistent with what the NETDEV_UNREGISTER notifier sees. so->dev\nstays valid regardless of ifindex-hash unlisting, and is only ever\ncleared by whichever of isotp_release()/isotp_notify() gets there\nfirst, so the filter is always removed exactly once.\n\nisotp_bind() now rejects a (re)bind with -EAGAIN while so->[tx|rx].state\nisn't ISOTP_IDLE yet, so a timer left running by a prior\nNETDEV_UNREGISTER can't act on a newly bound so->ifindex. Both checks\nshare the same lock_sock() section, so there is no window in which a\nconcurrent isotp_notify() clearing so->bound could be missed.","published":"2026-08-15T05:53:02.905Z","updated":"2026-10-28T02:30:23.184115930Z","reserved":"2026-08-09T03:40:39.907Z","status":"Received","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e057dd3fc20ffb3d7f150af46542a51b59b90127","lessThan":"f311bbb29bb06aaab69ba45a6e4b11323d20b8f9","status":"affected","versionType":"git"},{"version":"e057dd3fc20ffb3d7f150af46542a51b59b90127","lessThan":"8e018f4335590460ebcf0c2b493ed38ba1a35204","status":"affected","versionType":"git"},{"version":"e057dd3fc20ffb3d7f150af46542a51b59b90127","lessThan":"33b9cd9245e2a4b800f99ed1cc53d64960614152","status":"affected","versionType":"git"},{"version":"e057dd3fc20ffb3d7f150af46542a51b59b90127","lessThan":"0b811c4bbe3ec9ad611e90a540fe8b51b3bb8a96","status":"affected","versionType":"git"},{"version":"e057dd3fc20ffb3d7f150af46542a51b59b90127","lessThan":"43884dc7963beef2328f507f4fe680bdc173eb80","status":"affected","versionType":"git"},{"version":"e057dd3fc20ffb3d7f150af46542a51b59b90127","lessThan":"7bef39ba76eb7307ed22a50329e0f5776dbeda58","status":"affected","versionType":"git"},{"version":"e057dd3fc20ffb3d7f150af46542a51b59b90127","lessThan":"e442b62ba5a7756c17e05a77b32cdd085a2b6138","status":"affected","versionType":"git"},{"version":"e057dd3fc20ffb3d7f150af46542a51b59b90127","lessThan":"20bab8b88baac140ca3701116e1d486c7f51e311","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","lessThan":"5.10","status":"unaffected","versionType":"semver"},{"version":"5.10.265","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.216","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.183","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.148","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.101","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.40","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.1.5","lessThanOrEqual":"7.1.*","status":"unaffected","versionType":"semver"},{"version":"7.2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/f311bbb29bb06aaab69ba45a6e4b11323d20b8f9","tags":["web"]},{"url":"https://git.kernel.org/stable/c/8e018f4335590460ebcf0c2b493ed38ba1a35204","tags":["web"]},{"url":"https://git.kernel.org/stable/c/33b9cd9245e2a4b800f99ed1cc53d64960614152","tags":["web"]},{"url":"https://git.kernel.org/stable/c/0b811c4bbe3ec9ad611e90a540fe8b51b3bb8a96","tags":["web"]},{"url":"https://git.kernel.org/stable/c/43884dc7963beef2328f507f4fe680bdc173eb80","tags":["web"]},{"url":"https://git.kernel.org/stable/c/7bef39ba76eb7307ed22a50329e0f5776dbeda58","tags":["web"]},{"url":"https://git.kernel.org/stable/c/e442b62ba5a7756c17e05a77b32cdd085a2b6138","tags":["web"]},{"url":"https://git.kernel.org/stable/c/20bab8b88baac140ca3701116e1d486c7f51e311","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72125.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72125","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00164,"epssPercentile":0.05672,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-72125","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72125","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-72125","ok":true,"note":"0 packages"},{"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-72125","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}