Bug 2492118 (CVE-2026-52931) - CVE-2026-52931 kernel: batman-adv: tp_meter: avoid use of uninit sender vars
Summary: CVE-2026-52931 kernel: batman-adv: tp_meter: avoid use of uninit sender vars
Keywords:
Status: NEW
Alias: CVE-2026-52931
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:02 UTC by OSIDB Bzimport
Modified: 2026-06-24 14:40 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:02:51 UTC
In the Linux kernel, the following vulnerability has been resolved:

batman-adv: tp_meter: avoid use of uninit sender vars

batadv_tp_recv_ack() and batadv_tp_stop() are only valid for tp_vars in the
BATADV_TP_SENDER role. When called with a BATADV_TP_RECEIVER role, it
proceeds to read sender-only members that were never initialized, leading
to undefined behavior.

This can be triggered when a node that is currently acting as a receiver in
an ongoing tp_meter session receives a malicious ACK packet.

Guard against this by checking tp_vars->role immediately after the
lookup and bailing out if it is not BATADV_TP_SENDER, before any of
those members are accessed.

Comment 1 Mauro Matteo Cascella 2026-06-24 14:35:49 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026062432-CVE-2026-52931-f85c@gregkh/T


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