CVE-2026-99761: batman-adv: stop originator purge worker before freeing TT

Published Nov 20, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

batman-adv: stop originator purge worker before freeing TT

batadvmeshfree() releases the translation tables via batadvttfree() before batadvoriginatorfree() stops origwork. The purge worker can therefore still run while the TT is torn down. When an originator times out, batadvpurgeorigref() calls batadvttglobaldelorig(), which loads tt.globalhash and walks all buckets while taking their locks:

CPU0 CPU1 batadvttfree() batadvpurgeorig() batadvttglobaldelorig() hash = ...tt.globalhash; batadvttglobaltablefree() batadvhashdestroy(hash); spinlockbh(&hash->listlocks[i]);

Disable origwork at the beginning of batadvmeshfree(), directly after the mesh was marked as deactivating. The second disabledelayedworksync() in batadvoriginatorfree() is harmless because it is free'd anyway.

Affected Software

3 affected componentsFixes available
linux/kernel>=3.19.0<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.118
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5
  4. Compensating control

    In batman-adv, disable orig_work at the beginning of batadv_mesh_free(), before freeing the translation tables, so the originator purge worker cannot run while they are being torn down.

Frequently Asked Questions

1

What systems are exposed to this race condition?

Linux kernel systems using batman-adv are exposed during batman-adv mesh teardown, when the originator purge worker can run after translation tables have begun to be freed.

2

What condition is needed to trigger the issue?

An originator must time out while mesh teardown is in progress. The purge worker can then call batadv_tt_global_del_orig() and access the global translation-table hash after it has been destroyed.

3

What is the practical impact of the race?

The worker may walk and lock buckets in a translation-table hash that has already been freed, creating a use-after-free condition during teardown.

4

What does the fix change?

The fix disables and synchronizes the originator delayed work at the beginning of batadv_mesh_free(), immediately after the mesh is marked deactivating, before translation tables are released.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203