Skip to contentSkip to conversation

CVE-2026-23362: can: bcm: fix locking for bcm_op runtime updates

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

can: bcm: fix locking for bcm_op runtime updates

Commit c2aba69d0c36 ("can: bcm: add locking for bcm_op runtime updates") added a locking for some variables that can be modified at runtime when updating the sending bcm_op with a new TX_SETUP command in bcm_tx_setup().

Usually the RX_SETUP only handles and filters incoming traffic with one
exception: When the RX_RTR_FRAME flag is set a predefined CAN frame is sent when a specific RTR frame is received. Therefore the rx bcm_op uses bcm_can_tx() which uses the bcm_tx_lock that was only initialized in bcm_tx_setup(). Add the missing spin_lock_init() when allocating the bcm_op in bcm_rx_setup() to handle the RTR case properly.

The Linux kernel CVE team has assigned CVE-2026-23362 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.1.141 with commit 2a437b86ac5a9893c902f30ef66815bf13587bf6 and fixed in 6.1.167 with commit 800f26f11ae37b17f58e0001f28a47dd75c26557
	Issue introduced in 6.6.93 with commit 76c84c3728178b2d38d5604e399dfe8b0752645e and fixed in 6.6.130 with commit 70e951afad4c025261fe3c952d2b07237e320a01
	Issue introduced in 6.12.31 with commit cc55dd28c20a6611e30596019b3b2f636819a4c0 and fixed in 6.12.77 with commit 8bcf2d847adb82b2c617456f6da17ac5e6c75285
	Issue introduced in 6.15 with commit c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7 and fixed in 6.18.17 with commit 8215ba7bc99e84e66fd6938874ec4330a9d96518
	Issue introduced in 6.15 with commit c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7 and fixed in 6.19.7 with commit f0c349b2c21b220af5ba19f29b885e222958d796
	Issue introduced in 6.15 with commit c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7 and fixed in 7.0-rc3 with commit c35636e91e392e1540949bbc67932167cb48bc3a
	Issue introduced in 5.4.294 with commit 8f1c022541bf5a923c8d6fa483112c15250f30a4
	Issue introduced in 5.10.238 with commit 7595de7bc56e0e52b74e56c90f7e247bf626d628
	Issue introduced in 5.15.185 with commit fbd8fdc2b218e979cfe422b139b8f74c12419d1f
	Issue introduced in 6.14.9 with commit c4e8a172501e677ebd8ea9d9161d97dc4df56fbd

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-23362

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/can/bcm.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/800f26f11ae37b17f58e0001f28a47dd75c26557
	https://git.kernel.org/stable/c/70e951afad4c025261fe3c952d2b07237e320a01
	https://git.kernel.org/stable/c/8bcf2d847adb82b2c617456f6da17ac5e6c75285
	https://git.kernel.org/stable/c/8215ba7bc99e84e66fd6938874ec4330a9d96518
	https://git.kernel.org/stable/c/f0c349b2c21b220af5ba19f29b885e222958d796
	https://git.kernel.org/stable/c/c35636e91e392e1540949bbc67932167cb48bc3a