Bug 2492089 (CVE-2026-52919) - CVE-2026-52919 kernel: batman-adv: fix tp_meter counter underflow during shutdown
Summary: CVE-2026-52919 kernel: batman-adv: fix tp_meter counter underflow during shut...
Keywords:
Status: NEW
Alias: CVE-2026-52919
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-24 08:01 UTC by OSIDB Bzimport
Modified: 2026-06-24 10:23 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-06-24 08:01:27 UTC
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]

Comment 1 Mauro Matteo Cascella 2026-06-24 10:12:55 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026062430-CVE-2026-52919-f17e@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.