CVE-2026-23362
JSON

5.5medium

can: bcm: fix locking for bcm_op runtime updates

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.14% (higher than 2% of CVEs)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 7595de7bc56e0e52b74e56c90f7e247bf626d628 before 0904037e713f787d1376e1d349c3bdf6c3105881, from fbd8fdc2b218e979cfe422b139b8f74c12419d1f before c85b96eaf766d8f066b1139a17a51efa2f6627ef, from 2a437b86ac5a9893c902f30ef66815bf13587bf6 before 800f26f11ae37b17f58e0001f28a47dd75c26557, from 76c84c3728178b2d38d5604e399dfe8b0752645e before 70e951afad4c025261fe3c952d2b07237e320a01, from cc55dd28c20a6611e30596019b3b2f636819a4c0 before 8bcf2d847adb82b2c617456f6da17ac5e6c75285, from c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7 before 8215ba7bc99e84e66fd6938874ec4330a9d96518, from c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7 before f0c349b2c21b220af5ba19f29b885e222958d796, from c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7 before c35636e91e392e1540949bbc67932167cb48bc3a and 10 more
Not affected: before 6.15, from 5.10.253 up to 5.10.*, from 5.15.203 up to 5.15.*, from 6.1.167 up to 6.1.*, from 6.6.130 up to 6.6.*, from 6.12.77 up to 6.12.*
CVE List
linux linux_kernelfrom 5.4.294 before 5.5, from 5.10.238 before 5.10.253, from 5.15.185 before 5.15.203, from 6.1.141 before 6.1.167, from 6.6.93 before 6.6.130, from 6.12.31 before 6.12.77, from 6.14.9 before 6.15, from 6.15.1 before 6.18.17 and 3 moreNVD

Classification

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: can: bcm: corregir el bloqueo para las actualizaciones en tiempo de ejecución de bcm_op El commit c2aba69d0c36 ('can: bcm: añadir bloqueo para las actualizaciones en tiempo de ejecución de bcm_op') añadió un bloqueo para algunas variables que pueden ser modificadas en tiempo de ejecución al actualizar el bcm_op de envío con un nuevo comando TX_SETUP en bcm_tx_setup(). Normalmente, el RX_SETUP solo maneja y filtra el tráfico entrante con una excepción: Cuando la bandera RX_RTR_FRAME está establecida, se envía una trama CAN predefinida cuando se recibe una trama RTR específica. Por lo tanto, el bcm_op de rx usa bcm_can_tx() que usa el bcm_tx_lock que solo fue inicializado en bcm_tx_setup(). Añadir el spin_lock_init() faltante al asignar el bcm_op en bcm_rx_setup() para manejar el caso RTR correctamente.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-23362 changed 2026-05-23CVE Terms of Use
NVDCVE-2026-23362 changed 2026-06-17Public domain