{"id":"CVE-2026-72122","aliases":["CVE-2026-72122"],"related":[],"kind":"vulnerability","state":"published","title":"can: bcm: fix lockless bound/ifindex race and silent RX_SETUP failure","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: bcm: fix lockless bound/ifindex race and silent RX_SETUP failure\n\nbcm_sendmsg() reads bo->ifindex and checks bo->bound before taking\nlock_sock(), while bcm_notify(), bcm_connect() and bcm_release() all\nmutate both fields under that same lock. Because the lockless reads\nand the locked writes are unordered with respect to each other, a\nracing bcm_notify() (device unregister) or bcm_connect() (concurrent\nbind on another thread sharing the socket) can make bcm_sendmsg()\nobserve an inconsistent combination, e.g. a stale bound=1 together\nwith the now-cleared ifindex=0, silently turning a socket bound to a\nspecific CAN interface into one that also matches \"any\" interface.\n\nKeep the lockless bo->bound check purely as a fast-path reject, and\nmove the ifindex read (and a bo->bound re-check) into the locked\nsection, where every writer already serializes. This removes the\npossibility of observing the two fields torn against each other,\nrather than trying to fix it with more READ_ONCE()/WRITE_ONCE() pairs\non two independently updated fields. Annotate the now-purely-lockless\nbo->bound accesses consistently across all its write sites.\n\nAlso fix bcm_rx_setup() silently returning success when the target\ndevice disappears concurrently instead of reporting -ENODEV, so a\nbroken RX op is no longer left registered as if it had succeeded.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: bcm: fix lockless bound/ifindex race and silent RX_SETUP failure\n\nbcm_sendmsg() reads bo->ifindex and checks bo->bound before taking\nlock_sock(), while bcm_notify(), bcm_connect() and bcm_release() all\nmutate both fields under that same lock. Because the lockless reads\nand the locked writes are unordered with respect to each other, a\nracing bcm_notify() (device unregister) or bcm_connect() (concurrent\nbind on another thread sharing the socket) can make bcm_sendmsg()\nobserve an inconsistent combination, e.g. a stale bound=1 together\nwith the now-cleared ifindex=0, silently turning a socket bound to a\nspecific CAN interface into one that also matches \"any\" interface.\n\nKeep the lockless bo->bound check purely as a fast-path reject, and\nmove the ifindex read (and a bo->bound re-check) into the locked\nsection, where every writer already serializes. This removes the\npossibility of observing the two fields torn against each other,\nrather than trying to fix it with more READ_ONCE()/WRITE_ONCE() pairs\non two independently updated fields. Annotate the now-purely-lockless\nbo->bound accesses consistently across all its write sites.\n\nAlso fix bcm_rx_setup() silently returning success when the target\ndevice disappears concurrently instead of reporting -ENODEV, so a\nbroken RX op is no longer left registered as if it had succeeded.","source":"cvelist"}],"published":"2026-08-15T05:53:00.704Z","modified":"2026-10-16T19:17:09.990Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","score":7.3,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ffd980f976e7fd666c2e61bf8ab35107efd11828","fixed":"9e60c586faeaed80d55ab8ce2a4b8e56133bc395","status":"affected"},{"type":"git","introduced":"ffd980f976e7fd666c2e61bf8ab35107efd11828","fixed":"ffa80a2af27c97453861a5128e537214a31cd18a","status":"affected"},{"type":"git","introduced":"ffd980f976e7fd666c2e61bf8ab35107efd11828","fixed":"6bcc5cd247c2934373bc2a1cdf8bf12321169543","status":"affected"},{"type":"git","introduced":"ffd980f976e7fd666c2e61bf8ab35107efd11828","fixed":"0f6f9f95294b4cbb26ba02209e893e3bd91237c3","status":"affected"},{"type":"git","introduced":"ffd980f976e7fd666c2e61bf8ab35107efd11828","fixed":"b70f1a15533afeeec5d07f20bec3f3867ab1c7b6","status":"affected"},{"type":"git","introduced":"ffd980f976e7fd666c2e61bf8ab35107efd11828","fixed":"35f0ac19efb1a3f6c5e12c00e475a9ec2d9c3a6d","status":"affected"},{"type":"git","introduced":"ffd980f976e7fd666c2e61bf8ab35107efd11828","fixed":"b9c6ac6fb4e01b34575816066e5d3890a57b3c86","status":"affected"},{"type":"git","introduced":"ffd980f976e7fd666c2e61bf8ab35107efd11828","fixed":"d9b091d9d22fee81ec53fb55d2032951993ceadb","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.25","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.25","status":"unaffected"},{"type":"semver","introduced":"5.10.261","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.212","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.178","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.145","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.97","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.40","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.5","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/9e60c586faeaed80d55ab8ce2a4b8e56133bc395","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ffa80a2af27c97453861a5128e537214a31cd18a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6bcc5cd247c2934373bc2a1cdf8bf12321169543","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0f6f9f95294b4cbb26ba02209e893e3bd91237c3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b70f1a15533afeeec5d07f20bec3f3867ab1c7b6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/35f0ac19efb1a3f6c5e12c00e475a9ec2d9c3a6d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b9c6ac6fb4e01b34575816066e5d3890a57b3c86","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d9b091d9d22fee81ec53fb55d2032951993ceadb","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T18:42:08.458Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-72122","url":"https://www.cve.org/CVERecord?id=CVE-2026-72122","licence":"CVE Terms of Use","modified":"2026-10-16T18:44:57.450Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-72122","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72122","licence":"Public domain","modified":"2026-10-16T19:17:09.990Z"}],"updatedAt":"2026-11-25T22:59:33.014Z","epss":{"score":0.00164,"percentile":0.05876,"date":"2026-12-01T12:00:22.000Z"}}