CVE-2026-64218

batman-adv: bla: fix report_work leak on backbone_gw purge

State
Published
Severity
7.8 High
Published
Jul 24, 2026
Updated
Aug 5, 2026
Reserved
Jul 19, 2026

Read the record on cve.org

Description

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

batman-adv: bla: fix report_work leak on backbone_gw purge

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

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

The previous implementation called hlist_for_each_entry_safe() inside a spin_lock_bh() section, but cancel_work_sync() 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 cancel_work_sync() and dropping the hash_entry reference. Repeat until no more entries require purging.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 23721387c409087fd3b97e274f34d3ddc0970b74 to before ce2c0ee4d76d5ee4b391fe0e31334361e25030ecAffected
  • 23721387c409087fd3b97e274f34d3ddc0970b74 to before 3423a45e5c3d3c5129f88143a9a969787d7d5a0aAffected
  • 23721387c409087fd3b97e274f34d3ddc0970b74 to before f1303adb1e59582f76c22798a2e2e150e054a9e7Affected
  • 23721387c409087fd3b97e274f34d3ddc0970b74 to before 48663158222b3b7f6ee6791a67d512ede7fc94bbAffected
  • 23721387c409087fd3b97e274f34d3ddc0970b74 to before eeddd7bab3d59c1e98642a204141f8c5d6194707Affected
  • 23721387c409087fd3b97e274f34d3ddc0970b74 to before c6de1a5a9c406e30b91f1515a6ce05cc84023baaAffected
  • 23721387c409087fd3b97e274f34d3ddc0970b74 to before 95a7034661274cf5985708bd2f6d86ee46f88fa9Affected
  • 23721387c409087fd3b97e274f34d3ddc0970b74 to before 0459430add32ea41f3e2ef9351610e6d33627a6bAffected
LinuxLinux
  • 3.5Affected
  • before 3.5Not affected
  • 5.10.258 through 5.10.*Not affected
  • 5.15.209 through 5.15.*Not affected
  • 6.1.175 through 6.1.*Not affected
  • 6.6.142 through 6.6.*Not affected
  • 6.12.92 through 6.12.*Not affected
  • 6.18.34 through 6.18.*Not affected
  • 7.0.11 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.