CVE-2026-52919

batman-adv: fix tp_meter counter underflow during shutdown

HIGH
7.8
CVSS Score
Published: June 24, 2026 at 07:14 AM UTC
Updated: August 5, 2026 at 01:24 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.1%

Description

In the Linux kernel, the following vulnerability has been resolved: batman-adv: fix tp_meter counter underflow during shutdown batadv_tp_sender_shutdown() unconditionally decrements the "sending" atomic counter. If multiple paths (e.g. timeout, user cancel, and normal finish) call this function, the counter can underflow to -1. Since the sender logic treats any non-zero value as "still sending", a negative value causes the sender kthread to loop indefinitely. This leads to a use-after-free when the interface is removed while the zombie thread is still active. Fix this by using atomic_xchg() to ensure the counter only transitions from 1 to 0 once. [sven: added missing change in batadv_tp_send]

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.8 ≤ v < 5.10.2584.8 ≤ v < 5.15.2094.8 ≤ v < 6.1.1754.8 ≤ v < 6.12.924.8 ≤ v < 6.18.344.8 ≤ v < 6.6.1424.8 ≤ v < 7.0.114.8 ≤ v < 7.15.11 ≤ v < 5.15.2095.16 ≤ v < 6.1.1756.13 ≤ v < 6.18.346.19 ≤ v < 7.0.116.2 ≤ v < 6.6.1426.7 ≤ v < 6.12.9233a3bb4a3345bb511f9c69c913da95d4693e2a4e7.1 rc17.1 rc27.1 rc37.1 rc4
Vendor states this is fixed in 01cefc5923889e29dbb5f281c3d457714ceb9c00 (fixed)
Vendor states this is fixed in 90ae3eae06b7b8ab9f6250b9497c860915b4c17b (fixed)
Vendor states this is fixed in 94f3b133168d1c49895e7cc6afbcf1cc0b354602 (fixed)
Vendor states this is fixed in abae88fa254f2981d39ac003a7b302528a22af64 (fixed)
Vendor states this is fixed in aeae11c5dad9cd0d50723890bdd866f8e6db2e7d (fixed)
Vendor states this is fixed in c1bac194733aabd731aafa6a01350c229e187dba (fixed)
Vendor states this is fixed in c66d20a3ff095e3f000551d208ec2606616db15c (fixed)
Vendor states this is fixed in e75e2ab463b5b34df6b98f94d740aff327ce9f6b (fixed)
Vendor states this is fixed in 4.8 (unaffected)
Vendor states this is fixed in 5.10.258 (unaffected)
Vendor states this is fixed in 5.15.209 (unaffected)
Vendor states this is fixed in 6.1.175 (unaffected)
Vendor states this is fixed in 6.12.92 (unaffected)
Vendor states this is fixed in 6.18.34 (unaffected)
Vendor states this is fixed in 6.6.142 (unaffected)
Vendor states this is fixed in 7.0.11 (unaffected)
Vendor states this is fixed in 7.1 (unaffected)

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusANALYZED
CWE
CWE-191

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card