CVE-2026-72121

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
15/08/2026
Last modified:
16/10/2026

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> can: bcm: add locking when updating filter and timer values<br /> <br /> KCSAN detected a simultaneous access to timer values that can be<br /> overwritten in bcm_rx_setup() when updating timer and filter content<br /> while bcm_rx_handler(), bcm_rx_timeout_handler() or bcm_rx_thr_handler()<br /> run concurrently on incoming CAN traffic.<br /> <br /> Protect the timer (ival1/ival2/kt_ival1/kt_ival2/kt_lastmsg) and filter<br /> (nframes/flags/frames/last_frames) updates in bcm_rx_setup() with a new<br /> per-op bcm_rx_update_lock, taken with the matching scope in the RX<br /> handlers. memcpy_from_msg() is staged into a temporary buffer before the<br /> lock is taken, since it can sleep and must not run under a spinlock.<br /> <br /> hrtimer_cancel() is always called without bcm_rx_update_lock held, since<br /> bcm_rx_timeout_handler()/bcm_rx_thr_handler() take the same lock and a<br /> running callback would otherwise deadlock against the canceller.<br /> <br /> Also close a related race: bcm_rx_setup() cleared the RTR flag in the<br /> stored reply frame&amp;#39;s can_id as a separate, unprotected step after the<br /> frame content was already installed, so a concurrent bcm_rx_handler()<br /> could transmit a stale reply with CAN_RTR_FLAG still set. Fold that<br /> normalization into the initial frame preparation instead (on the staged<br /> buffer for updates, directly on op-&gt;frames pre-registration for new<br /> ops), so the installed frame is always atomically self-consistent.<br /> <br /> bcm_rx_handler()&amp;#39;s RX_RTR_FRAME check now takes a lock-protected<br /> snapshot of op-&gt;flags before deciding whether to call bcm_can_tx(),<br /> but does not hold the lock across that call.<br /> <br /> Also take a lock-protected snapshot of the currframe in bcm_can_tx()<br /> to avoid partly overwrites by content updates in bcm_tx_setup().<br /> Finally check if a TX_RESET_MULTI_IDX/SETTIMER might have reset<br /> op-&gt;currframe between the two locked sections in bcm_can_tx().<br /> <br /> Omit calling hrtimer_forward() with zero interval in bcm_rx_thr_handler().<br /> kt_ival2 may have been concurrently cleared by bcm_rx_setup() before it<br /> cancels this timer, so check kt_ival2 inside the bcm_rx_update_lock.