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

can: bcm: add missing device refcount for CAN filter removal

sashiko-bot remarked a problem with a concurrent device unregistration
in isotp.c which also is present in the bcm.c code. A former fix for raw.c
commit c275a176e4b6 ("can: raw: add missing refcount for memory leak fix")
introduced a netdevice_tracker which solves the issue for bcm.c too.

bcm_release(), bcm_delete_rx_op() and bcm_notifier() relied on
dev_get_by_index(ifindex) to re-find the device for an rx_op before
unregistering its filter. If a concurrent NETDEV_UNREGISTER has already
unlisted the device from the ifindex table, that lookup fails and
can_rx_unregister() is silently skipped, leaving a stale CAN filter
pointing at the soon-to-be-freed bcm_op/socket.

Hold a netdev_hold()/netdev_put() tracked reference on op->rx_reg_dev
from the moment the rx filter is registered in bcm_rx_setup() until it
is unregistered in bcm_rx_unreg(), and use that reference directly in
bcm_release() and bcm_delete_rx_op() instead of re-looking the device
up by ifindex.
Published: 2026-08-15
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel module for the CAN bus (bcm) missed a reference count on the device used for CAN filter removal. When a device is unregistered concurrently while an RX operation is pending, the module attempts to look up the device by index – a lookup that can fail if the device has already been unregistered. The lookup failure causes the CAN filter to remain and the associated bcm_op/socket structure to be freed, leaving a stale pointer. This results in a use‑after‑free that can corrupt kernel memory and trigger a crash, presenting a local denial‑of‑service vulnerability.

Affected Systems

Any Linux distribution that includes the bcm and isotp modules before the 04d2306… commit is applied is affected. The vulnerability was present in all kernels that shipped these modules without the missing refcount and can affect both vendor‑specific kernel builds and generic distributions until the patch is installed.

Risk and Exploitability

The EPSS score is < 1%, indicating a low likelihood of exploitation, and the vulnerability is not listed in CISA KEV. The CVSS score is 7.8, indicating high severity. The likely attack vector is local: an attacker must trigger device registration and unregistration of a CAN network device while the bcm module is engaged. By doing so they can exploit the race condition to cause a crash or, in a wider context, to influence kernel execution flow. Given the impact and local nature, timely patching is essential.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes commit 04d2306 (or later) which adds the missing netdev_hold/put reference count for CAN filter removal.
  • Reboot the system so the patched kernel and modules are loaded.
  • If an immediate kernel upgrade is not possible, temporarily unload or disable the bcm and isotp modules until the kernel update is applied.

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

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4745-1 linux-6.12 security update
History

Wed, 19 Aug 2026 16:45:00 +0000


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

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

None

threat_severity

Moderate


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

Type Values Removed Values Added
Weaknesses CWE-416

Mon, 17 Aug 2026 18:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416

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

Type Values Removed Values Added
Metrics cvssV3_1

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


Sat, 15 Aug 2026 20:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416

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: add missing device refcount for CAN filter removal sashiko-bot remarked a problem with a concurrent device unregistration in isotp.c which also is present in the bcm.c code. A former fix for raw.c commit c275a176e4b6 ("can: raw: add missing refcount for memory leak fix") introduced a netdevice_tracker which solves the issue for bcm.c too. bcm_release(), bcm_delete_rx_op() and bcm_notifier() relied on dev_get_by_index(ifindex) to re-find the device for an rx_op before unregistering its filter. If a concurrent NETDEV_UNREGISTER has already unlisted the device from the ifindex table, that lookup fails and can_rx_unregister() is silently skipped, leaving a stale CAN filter pointing at the soon-to-be-freed bcm_op/socket. Hold a netdev_hold()/netdev_put() tracked reference on op->rx_reg_dev from the moment the rx filter is registered in bcm_rx_setup() until it is unregistered in bcm_rx_unreg(), and use that reference directly in bcm_release() and bcm_delete_rx_op() instead of re-looking the device up by ifindex.
Title can: bcm: add missing device refcount for CAN filter removal
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-19T16:35:58.404Z

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

Link: CVE-2026-72113

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

Modified: 2026-08-19T17:20:57.497

Link: CVE-2026-72113

cve-icon Redhat

Severity : Moderate

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

Links: CVE-2026-72113 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T02:30:03Z

Weaknesses