# CVE-2026-52926: batman-adv: clear current gateway during teardown

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-06-24T07:14:20.057Z
- Modified: 2026-07-08T15:28:58.480Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 2265c141086474bbae55a5bb3afa1ebb78ccaa7c before a3f3f1ec8aad84c5dd386c430b9c61cddd85b18f; from 2265c141086474bbae55a5bb3afa1ebb78ccaa7c before e2ec4c712d19141ca7bf7fbbb1d842f73abaa186; from 2265c141086474bbae55a5bb3afa1ebb78ccaa7c before 9a1a8ed4facfe843bde6fdfcf7af0e9923eb2e17; from 2265c141086474bbae55a5bb3afa1ebb78ccaa7c before 6de089b545db013433cf934bb4e4433dec2dd65f; from 2265c141086474bbae55a5bb3afa1ebb78ccaa7c before 30bda3ef4b0cac777f1a7c314cd08b8ff6437365; from 2265c141086474bbae55a5bb3afa1ebb78ccaa7c before ae7aeb0ce3c0ebbe357ed525779acac197a18086; from 2265c141086474bbae55a5bb3afa1ebb78ccaa7c before 17e3a441111cd1a530cd6ee69a22f3161d80d810; from 2265c141086474bbae55a5bb3afa1ebb78ccaa7c before a340a51ed801eab7bb454150c226323b865263cc; 3.1 (not affected: before 3.1; from 5.10.258 up to 5.10.*; from 5.15.209 up to 5.15.*; from 6.1.175 up to 6.1.*; from 6.6.142 up to 6.6.*; from 6.12.92 up to 6.12.*; from 6.18.34 up to 6.18.*; from 7.0.11 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 3.1 before 5.10.258; from 5.11 before 5.15.209; from 5.16 before 6.1.175; from 6.2 before 6.6.142; from 6.7 before 6.12.92; from 6.13 before 6.18.34; from 6.19 before 7.0.11; 7.1

## References

- <https://git.kernel.org/stable/c/a3f3f1ec8aad84c5dd386c430b9c61cddd85b18f> (patch)
- <https://git.kernel.org/stable/c/e2ec4c712d19141ca7bf7fbbb1d842f73abaa186> (patch)
- <https://git.kernel.org/stable/c/9a1a8ed4facfe843bde6fdfcf7af0e9923eb2e17> (patch)
- <https://git.kernel.org/stable/c/6de089b545db013433cf934bb4e4433dec2dd65f> (patch)
- <https://git.kernel.org/stable/c/30bda3ef4b0cac777f1a7c314cd08b8ff6437365> (patch)
- <https://git.kernel.org/stable/c/ae7aeb0ce3c0ebbe357ed525779acac197a18086> (patch)
- <https://git.kernel.org/stable/c/17e3a441111cd1a530cd6ee69a22f3161d80d810> (patch)
- <https://git.kernel.org/stable/c/a340a51ed801eab7bb454150c226323b865263cc> (patch)

## Sources

- CVE List: [CVE-2026-52926](https://www.cve.org/CVERecord?id=CVE-2026-52926), CVE Terms of Use, modified 2026-06-24
- NVD: [CVE-2026-52926](https://nvd.nist.gov/vuln/detail/CVE-2026-52926), Public domain, modified 2026-07-08

---

Page: https://cve.day/CVE-2026-52926 · Whole record: https://cve.day/CVE-2026-52926.json · Rebuilt by cve.day 2026-11-25T22:59:25.584Z
