Description
In the Linux kernel, the following vulnerability has been resolved: batman-adv: clear current gateway during teardown batadv_gw_node_free() removes the gateway list entries during mesh teardown, but it does not clear the currently selected gateway. This leaves stale gateway state behind across cleanup and can break a later mesh recreation. Clear bat_priv->gw.curr_gw before walking the gateway list so the selected gateway reference is dropped as part of teardown.
Affected products
- Linux / Linux2265c141086474bbae55a5bb3afa1ebb78ccaa7c – a3f3f1ec8aad84c5dd386c430b9c61cddd85b18f
- Linux / Linux2265c141086474bbae55a5bb3afa1ebb78ccaa7c – e2ec4c712d19141ca7bf7fbbb1d842f73abaa186
- Linux / Linux2265c141086474bbae55a5bb3afa1ebb78ccaa7c – 9a1a8ed4facfe843bde6fdfcf7af0e9923eb2e17
- Linux / Linux2265c141086474bbae55a5bb3afa1ebb78ccaa7c – 6de089b545db013433cf934bb4e4433dec2dd65f
- Linux / Linux2265c141086474bbae55a5bb3afa1ebb78ccaa7c – 30bda3ef4b0cac777f1a7c314cd08b8ff6437365
- Linux / Linux2265c141086474bbae55a5bb3afa1ebb78ccaa7c – ae7aeb0ce3c0ebbe357ed525779acac197a18086
- Linux / Linux2265c141086474bbae55a5bb3afa1ebb78ccaa7c – 17e3a441111cd1a530cd6ee69a22f3161d80d810
- Linux / Linux2265c141086474bbae55a5bb3afa1ebb78ccaa7c – a340a51ed801eab7bb454150c226323b865263cc
- Linux / Linux3.1 – 3.1
- Linux / Linux0 – 3.1
- Linux / Linux5.10.258 – 5.10.*
- Linux / Linux5.15.209 – 5.15.*
- Linux / Linux6.1.175 – 6.1.*
- Linux / Linux6.6.142 – 6.6.*
- Linux / Linux6.12.92 – 6.12.*
- Linux / Linux6.18.34 – 6.18.*
- Linux / Linux7.0.11 – 7.0.*
- Linux / Linux7.1 – *
References
- MISChttps://git.kernel.org/stable/c/a3f3f1ec8aad84c5dd386c430b9c61cddd85b18f
- MISChttps://git.kernel.org/stable/c/e2ec4c712d19141ca7bf7fbbb1d842f73abaa186
- MISChttps://git.kernel.org/stable/c/9a1a8ed4facfe843bde6fdfcf7af0e9923eb2e17
- MISChttps://git.kernel.org/stable/c/6de089b545db013433cf934bb4e4433dec2dd65f
- MISChttps://git.kernel.org/stable/c/30bda3ef4b0cac777f1a7c314cd08b8ff6437365
- MISChttps://git.kernel.org/stable/c/ae7aeb0ce3c0ebbe357ed525779acac197a18086
- MISChttps://git.kernel.org/stable/c/17e3a441111cd1a530cd6ee69a22f3161d80d810
- MISChttps://git.kernel.org/stable/c/a340a51ed801eab7bb454150c226323b865263cc