CVE-2026-52919
Received Received - Intake
batadv_tp_sender counter underflow in Linux kernel

Publication date: 2026-06-24

Last updated on: 2026-06-24

Assigner: kernel.org

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]
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-24
Last Modified
2026-06-24
Generated
2026-06-24
AI Q&A
2026-06-24
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Currently, no data is known.
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in the Linux kernel's batman-adv component, specifically in the tp_meter counter during shutdown. The function batadv_tp_sender_shutdown() decreases an atomic counter called "sending" unconditionally. If this function is called multiple times from different paths (such as timeout, user cancel, or normal finish), the counter can underflow to -1.

Because the sender logic treats any non-zero value as "still sending," a negative value causes the sender kernel thread to loop indefinitely. This results in a use-after-free condition when the network interface is removed while this zombie thread is still active.

The fix involves using atomic_xchg() to ensure the counter only transitions from 1 to 0 once, preventing the underflow.

Impact Analysis

This vulnerability can cause a kernel thread to loop indefinitely, leading to a use-after-free condition in the Linux kernel's batman-adv networking component.

Such a use-after-free can potentially cause system instability, crashes, or unpredictable behavior when the affected network interface is removed while the zombie thread is still active.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-52919. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart