Shellfeed logo Shellfeed

CVE-2026-72126 · HIGH (CVSS 7.8)

Summary: can: isotp: use unconditional synchronize_rcu() in isotp_release()

Details

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

can: isotp: use unconditional synchronize_rcu() in isotp_release()

isotp_notify() unregisters the (RCU) CAN filters via can_rx_unregister()
and clears so->bound without waiting for a grace period. isotp_release()
uses so->bound to decide whether it needs to call synchronize_rcu()
before cancelling so->rxtimer, so when NETDEV_UNREGISTER runs first it
skips that synchronize_rcu() and can cancel the timer while an
in-flight isotp_rcv() is still executing and about to re-arm it via
isotp_send_fc(), leading to a use-after-free timer callback on the
freed socket.

sakisho-bot remarked a problem with rtnl_lock held in isotp_notify(),
therefore make isotp_release() always call synchronize_rcu() before
cancelling the timers, regardless of so->bound. This still closes the
original race (isotp_notify() clearing so->bound without waiting for
in-flight isotp_rcv() callers before isotp_release() cancels the RX
timer) without adding any RCU wait to the netdevice notifier path.

Severity

HIGH (CVSS 7.8) — vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [22bfa94db2ef6900c790884fa9461486516626e9 – 945d9894502cd9124f5d676181c542ed2000f7c0] [14a4696bc3118ba49da28f79280e1d55603aa737 – 59672aa4bcd8d32172c1ff6a179583981d6acabc] [5.10.50 – 5.10.261] [5.12.17 – 5.13] [5.13.2 – 5.14] [80c6ddf771df2ef786f28c1ca5919b3f1080091b – ?] [ebf91625b3e404bd2b4b694c7ee71c1e8f8bd08f – ?]
  • Linux Kernel [0 – 5.10.261] [5.11.0 – 5.15.212] [5.14.0 – 6.1.178] [5.16.0 – 6.6.145] [6.2.0 – 6.12.97] [6.7.0 – 6.18.40] [6.13.0 – 7.1.5]

References