Linux Kernel batman-adv Backbone Gateway Reference Management Vulnerability

Vulnerability

A vulnerability in the Linux kernel's batman-adv module allows improper management of backbone gateway references. The issue arises because the function batadv_bla_add_claim() can replace a claim's backbone gateway and drop the last reference to the old gateway while other processes are still using it. This can lead to a situation where the netlink claim dump path accesses a dangling pointer, potentially causing a use-after-free error. The problem is exacerbated by batadv_bla_check_claim(), which also accesses pointers without proper validation. The vulnerability affects the Linux kernel stable tree.

Impact

The vulnerability can lead to a use-after-free condition, where a pointer is dereferenced after the memory it points to has been freed. This can cause memory corruption, allowing for arbitrary code execution or other unintended behavior.

Reproduction

The vulnerability can be reproduced by adding a claim in the batman-adv module that includes a backbone gateway. While the claim is active, replace the backbone gateway with a new one. The netlink claim dump will then dereference the old gateway's pointer, which has already been freed, leading to a use-after-free condition.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. Instructions for upgrading the kernel can be found in the official Linux kernel documentation.

Added: Apr 24, 2026, 4:03 PM
Updated: Apr 24, 2026, 4:03 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
3.9
remediation
7.7
relevance
6.6
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.