7.3high
can: bcm: add locking for bcm_op runtime updates
- Severity
- 7.3high CVSS:3.1 by Linux
- Exploit likelihood
- 0.28% (higher than 21% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: can: bcm: add locking for bcm_op runtime updates The CAN broadcast manager (CAN BCM) can send a sequence of CAN frames via hrtimer. The content and also the length of the sequence can be changed resp reduced at runtime where the 'currframe' counter is then set to zero. Although this appeared to be a safe operation the updates of 'currframe' can be triggered from user space and hrtimer context in bcm_can_tx(). Anderson Nascimento created a proof of concept that triggered a KASAN slab-out-of-bounds read access which can be prevented with a spin_lock_bh. At the rework of bcm_can_tx() the 'count' variable has been moved into the protected section as this variable can be modified from both contexts too.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from ffd980f976e7fd666c2e61bf8ab35107efd11828 before 8f1c022541bf5a923c8d6fa483112c15250f30a4, from ffd980f976e7fd666c2e61bf8ab35107efd11828 before 7595de7bc56e0e52b74e56c90f7e247bf626d628, from ffd980f976e7fd666c2e61bf8ab35107efd11828 before fbd8fdc2b218e979cfe422b139b8f74c12419d1f, from ffd980f976e7fd666c2e61bf8ab35107efd11828 before 2a437b86ac5a9893c902f30ef66815bf13587bf6, from ffd980f976e7fd666c2e61bf8ab35107efd11828 before 76c84c3728178b2d38d5604e399dfe8b0752645e, from ffd980f976e7fd666c2e61bf8ab35107efd11828 before cc55dd28c20a6611e30596019b3b2f636819a4c0, from ffd980f976e7fd666c2e61bf8ab35107efd11828 before c4e8a172501e677ebd8ea9d9161d97dc4df56fbd, from ffd980f976e7fd666c2e61bf8ab35107efd11828 before c2aba69d0c36a496ab4f2e81e9c2b271f2693fd7 and 1 more Not affected: before 2.6.25, from 5.4.294 up to 5.4.*, from 5.10.238 up to 5.10.*, from 5.15.185 up to 5.15.*, from 6.1.141 up to 6.1.*, from 6.6.93 up to 6.6.* | CVE List |
| linux linux_kernel | from 2.6.25 before 5.4.294, from 5.5 before 5.10.238, from 5.11 before 5.15.185, from 5.16 before 6.1.141, from 6.2 before 6.6.93, from 6.7 before 6.12.31, from 6.13 before 6.14.9, 6.15 | NVD |
| debian debian_linux | 11.0 | NVD |
All scores
| Linux | 7.3high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H |
| NVD | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: can: bcm: add locking for bcm_op runtime updates The CAN broadcast manager (CAN BCM) can send a sequence of CAN frames via hrtimer. The content and also the length of the sequence can be changed resp reduced at runtime where the 'currframe' counter is then set to zero. Although this appeared to be a safe operation the updates of 'currframe' can be triggered from user space and hrtimer context in bcm_can_tx(). Anderson Nascimento created a proof of concept that triggered a KASAN slab-out-of-bounds read access which can be prevented with a spin_lock_bh. At the rework of bcm_can_tx() the 'count' variable has been moved into the protected section as this variable can be modified from both contexts too.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: can: bcm: añadir bloqueo para actualizaciones en tiempo de ejecución de bcm_op El gestor de difusión CAN (CAN BCM) puede enviar una secuencia de tramas CAN a través de hrtimer. El contenido y también la longitud de la secuencia se pueden cambiar o reducir en tiempo de ejecución, donde el contador 'currframe' se establece entonces en cero. Aunque esto parecía ser una operación segura, las actualizaciones de 'currframe' se pueden activar desde el espacio de usuario y el contexto de hrtimer en bcm_can_tx(). Anderson Nascimento creó una prueba de concepto que activó un acceso de lectura fuera de los límites de KASAN slab que se puede prevenir con un spin_lock_bh. En la reelaboración de bcm_can_tx() la variable 'count' se ha movido a la sección protegida ya que esta variable también se puede modificar desde ambos contextos.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-38004 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2025-38004 changed 2026-10-15 | Public domain |