Description
In the Linux kernel, the following vulnerability has been resolved: net: thunderbolt: Mark the connection down when bringing it up fails Every failure path in tbnet_connected_work() undoes its own work and returns without clearing login_sent, so the connection still looks established. The next tbnet_tear_down() therefore takes its main branch and repeats a teardown that already happened: it stops rings that are already stopped, which is a dev_WARN() and fatal under panic_on_warn, and it releases net->remote_transmit_path even on the HopID mismatch path, where this connection never owned that id, silently freeing one that someone else is still using. Clear login_sent on those paths. That is enough for tbnet_tear_down() to leave the unwound state alone, and login_received has to stay set: it records that the peer has logged in and carries the transmit path it gave us, which nothing on this side can make the peer send again. Two things change beyond keeping the teardown out of the way: the logout request in that block is no longer sent, and the peer's next login request now re-queues our login work rather than connected_work, giving the connection a fresh login instead of a retry on stale state.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
e69b6c02b4c3b8d03be7136f90dd9551ad5a5a5e to < e0d4a17afde5aa0045dc3e1d66c6bb80927bad8caffectede69b6c02b4c3b8d03be7136f90dd9551ad5a5a5e to < ed1d6e3d735e7b03f43a02f4306c89eb7663da14affectede69b6c02b4c3b8d03be7136f90dd9551ad5a5a5e to < f01e6a35c440b62f060e21f36b385e574a7f308caffectede69b6c02b4c3b8d03be7136f90dd9551ad5a5a5e to < d6c0af293129345a17dc31c9b4179dc7f3d6af7aaffectede69b6c02b4c3b8d03be7136f90dd9551ad5a5a5e to < 3c8b26ebf525ba5960510f48c6e9936a79ebe76faffected
Linux Linux
Default version status: affected
4.15affected0 to < 4.15unaffected6.6.157 to ≤ 6.6.*unaffected6.12.109 to ≤ 6.12.*unaffected6.18.50 to ≤ 6.18.*unaffected7.2.4 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/e0d4a17afde5aa0045dc3e1d66c6bb80927bad8c ↗
- https://git.kernel.org/stable/c/ed1d6e3d735e7b03f43a02f4306c89eb7663da14 ↗
- https://git.kernel.org/stable/c/f01e6a35c440b62f060e21f36b385e574a7f308c ↗
- https://git.kernel.org/stable/c/d6c0af293129345a17dc31c9b4179dc7f3d6af7a ↗
- https://git.kernel.org/stable/c/3c8b26ebf525ba5960510f48c6e9936a79ebe76f ↗