CVE-2026-64218: batman-adv: bla: fix report_work leak on backbone_gw purge

Published Jul 24, 2026
·
Updated

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

batman-adv: bla: fix reportwork leak on backbonegw purge

batadvblapurgebackbonegw() removes stale backbone gateway entries, but fails to properly handle their associated reportwork:

- If reportwork is running, the purge must wait for it to finish before freeing the backbonegw, otherwise the worker may access freed memory (e.g. batpriv). - If reportwork is pending, the purge must cancel it and release the reference held for that pending work item.

The previous implementation called hlistforeachentrysafe() inside a spinlockbh() section, but cancelworksync() may sleep and therefore cannot be called from within a spinlock-protected region.

Restructure the loop to handle one entry per spinlock critical section: acquire the lock, find the next entry to purge, remove it from the hash list, then release the lock before calling cancelworksync() and dropping the hashentry reference. Repeat until no more entries require purging.

Affected Software

12 affected components
Linux Kernel
Linux Linux kernel>=3.5<5.10.258
Linux Linux kernel>=5.11<5.15.209
Linux Linux kernel>=5.16<6.1.175
Linux Linux kernel>=6.2<6.6.142
Linux Linux kernel>=6.7<6.12.92
Linux Linux kernel>=6.13<6.18.34
Linux Linux kernel>=6.19<7.0.11
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3
Linux Linux kernel=7.1-rc4

Event History

Jul 24, 2026
CVE Published
via MITRE·03:23 PM
Data Sourced
via MITRE·03:23 PM
DescriptionSeverity
Data Sourced
via NVD·04:16 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

Who is exposed and what access does an attacker need?

Systems using the Linux kernel's batman-adv component are the relevant population. Exploitation requires local access and low privileges; no user interaction is required.

2

What condition triggers the vulnerability?

The flaw occurs when stale backbone gateway entries are purged while their associated report_work is running or pending. A running worker can access freed memory, while pending work must be cancelled and its held reference released.

3

What should be done to remediate the issue?

Apply the available Linux kernel patch. The remediation changes backbone gateway purging so entries are removed under the spinlock, then report_work is cancelled and references are released after the lock is dropped.

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