Description
In the Linux kernel, the following vulnerability has been resolved:

can: bcm: fix lockless bound/ifindex race and silent RX_SETUP failure

bcm_sendmsg() reads bo->ifindex and checks bo->bound before taking
lock_sock(), while bcm_notify(), bcm_connect() and bcm_release() all
mutate both fields under that same lock. Because the lockless reads
and the locked writes are unordered with respect to each other, a
racing bcm_notify() (device unregister) or bcm_connect() (concurrent
bind on another thread sharing the socket) can make bcm_sendmsg()
observe an inconsistent combination, e.g. a stale bound=1 together
with the now-cleared ifindex=0, silently turning a socket bound to a
specific CAN interface into one that also matches "any" interface.

Keep the lockless bo->bound check purely as a fast-path reject, and
move the ifindex read (and a bo->bound re-check) into the locked
section, where every writer already serializes. This removes the
possibility of observing the two fields torn against each other,
rather than trying to fix it with more READ_ONCE()/WRITE_ONCE() pairs
on two independently updated fields. Annotate the now-purely-lockless
bo->bound accesses consistently across all its write sites.

Also fix bcm_rx_setup() silently returning success when the target
device disappears concurrently instead of reporting -ENODEV, so a
broken RX op is no longer left registered as if it had succeeded.
Published: 2026-08-15
Score: 7.3 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel CAN bus driver, reads of bo->bound and bo->ifindex without synchronization can occur while write operations are protected by a lock. The result is that a socket that was bound to a specific CAN interface may inadvertently match any interface, effectively erasing the intended binding. This race condition also causes the bcm_rx_setup routine to report success when the target device disappears concurrently, leaving a broken receive operation registered as successful. The weakened state can lead to unreliable communication on the bus and potential denial‑of‑service scenarios for applications relying on precise interface binding.

Affected Systems

The flaw is present in the bcm module of the Linux kernel. All kernel releases that include the unmanaged bcm driver and lack the subsequent commit awaiting the fix. The exact affected version range is not specified, but any kernel built with the older bcm implementation is subject to the race before the patch was merged.

Risk and Exploitability

The vulnerability requires the attacker to have concurrent access to the same CAN socket within a process to exploit the race. As the data only affects binding and internal state, it does not grant privilege escalation or remote code execution. The EPSS score is < 1% and the issue is not listed in the CISA KEV catalog, indicating a low but non‑zero likelihood of exploitation. The CVSS score of 7.3 classifies the flaw as high severity, and users should treat it as a high‑severity bug that could disrupt CAN communication in environments where multiple threads share socket handles.

Generated by OpenCVE AI on August 18, 2026 at 04:43 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Install a kernel that incorporates the commit that fixes the race condition (e.g., update to the latest stable release or apply the patch manually).
  • If an update is not immediately possible, avoid sharing CAN sockets across threads or enforce proper application‑level locking to serialize access to bind operations and the bcm_rx_setup call.
  • Rebuild the kernel with the patch applied if a pre‑patched distribution kernel is unavailable, ensuring the updated bcm module is loaded.

Generated by OpenCVE AI on August 18, 2026 at 04:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 03:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362

Tue, 18 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-367
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 17 Aug 2026 08:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362

Mon, 17 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L'}


Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: can: bcm: fix lockless bound/ifindex race and silent RX_SETUP failure bcm_sendmsg() reads bo->ifindex and checks bo->bound before taking lock_sock(), while bcm_notify(), bcm_connect() and bcm_release() all mutate both fields under that same lock. Because the lockless reads and the locked writes are unordered with respect to each other, a racing bcm_notify() (device unregister) or bcm_connect() (concurrent bind on another thread sharing the socket) can make bcm_sendmsg() observe an inconsistent combination, e.g. a stale bound=1 together with the now-cleared ifindex=0, silently turning a socket bound to a specific CAN interface into one that also matches "any" interface. Keep the lockless bo->bound check purely as a fast-path reject, and move the ifindex read (and a bo->bound re-check) into the locked section, where every writer already serializes. This removes the possibility of observing the two fields torn against each other, rather than trying to fix it with more READ_ONCE()/WRITE_ONCE() pairs on two independently updated fields. Annotate the now-purely-lockless bo->bound accesses consistently across all its write sites. Also fix bcm_rx_setup() silently returning success when the target device disappears concurrently instead of reporting -ENODEV, so a broken RX op is no longer left registered as if it had succeeded.
Title can: bcm: fix lockless bound/ifindex race and silent RX_SETUP failure
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:40:35.588Z

Reserved: 2026-08-09T03:40:39.907Z

Link: CVE-2026-72122

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:21:29.437

Modified: 2026-08-17T06:18:11.670

Link: CVE-2026-72122

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72122 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T04:45:04Z

Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition