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.
Published: 2026-06-24
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The batman-adv mesh networking implementation contains a logic flaw that fails to clear the selected gateway during mesh teardown. When the outbound gateway list is removed, the reference to the current gateway remains, leaving stale state across operations. This stale reference can cause subsequent mesh recreation attempts to fail or behave unpredictably, effectively disabling mesh connectivity for affected nodes. The weakness stems from improper state cleanup and is classified under CWE-416 (Use After Free) and CWE-674 (Uncontrolled Resource Consumption).

Affected Systems

The issue is present in the Linux kernel version that includes the batman-adv networking module. All deployments utilizing the batman-adv driver in any distribution of the Linux kernel are potentially affected, regardless of distribution vendor. There is no specific product version range listed in the CNA data; the flaw exists in any kernel that has not yet applied the fix commit. The affected systems are therefore any Linux hosts running batman-adv prior to the latest available kernel release that incorporates the patch.

Risk and Exploitability

The CVSS score is not reported in the CVE entry, but the nature of the flaw suggests it leads to a denial of service rather than remote code execution. Exploitability is low to moderate; an attacker would need to influence the targeted node’s network state or trigger a mesh teardown event to cause the stale gateway condition. No indication is provided that this weakness is actively exploited in the wild and the EPSS score is currently unavailable, implying limited exploitation likelihood. The vulnerability is not listed in the CISA KEV catalog, further indicating that it is not recognized as a widely exploited threat at this time. The bit it is inferred that the attack vector is internal, requiring control of the mesh teardown sequence or persistent presence on the affected node to leverage the stale state for service disruption.

Generated by OpenCVE AI on June 24, 2026 at 12:59 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Install a Linux kernel version that contains the batman-adv patch (commit 17e3a441111cd1a530cd6ee69a22f3161d80d810).
  • Reboot or restart the networking service to load the updated kernel and batman-adv module.
  • Validate the mesh network by tearing down and recreating the mesh to ensure that no stale gateway state remains.

Generated by OpenCVE AI on June 24, 2026 at 12:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 24 Jun 2026 07:45:00 +0000

Type Values Removed Values Added
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.
Title batman-adv: clear current gateway during teardown
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-24T07:14:20.057Z

Reserved: 2026-06-09T07:44:35.368Z

Link: CVE-2026-52926

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-24T13:00:06Z

Weaknesses

No weakness.