CVE-2026-64095: batman-adv: bla: avoid double decrement of bla.num_requests
In the Linux kernel, the following vulnerability has been resolved:
batman-adv: bla: avoid double decrement of bla.numrequests
The bla.numrequests is increased when no requestsent was in progress. And it is decremented in various places (announcement was received, backbone is purged, periodic work). But the check if the requestsent is actually set to a specific state and the atomicdec/inc are not safe because they are not atomic (TOCTOU) and multiple such code portions can run concurrently.
At the same time, it is necessary to modify requestsent (state) and bla.numrequests atomically. Otherwise batadvblasendrequest() might set requestsent to 1 and is interrupted. batadvhandleannounce() can then set requestsent back to 0 and decrement numrequests before batadvblasendrequest() incremented it.
The two operations must therefore be locked. And since state (requestsent) and waitperiods are only accessed inside this lock, they can be converted to simpler datatypes. And to avoid that the bla.numrequests is touched by a parallel running context with a valid backbonegw reference after batadvblapurgebackbonegw() ran, a third state "stopped" is required to correctly signal that a backbonegw is in the state of being cleaned up.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-64095?
CVE-2026-64095 has a high severity rating of 7.1 according to CVSS version 3.1.
How do I fix CVE-2026-64095?
To fix CVE-2026-64095, users should update their OpenWrt Linux kernel to the latest version that contains the security patch.
What does CVE-2026-64095 affect?
CVE-2026-64095 affects the batman-adv module in the OpenWrt Linux kernel.
What are the potential impacts of CVE-2026-64095?
The exploitation of CVE-2026-64095 may lead to a denial of service due to the mishandling of request counts.
When was CVE-2026-64095 published?
CVE-2026-64095 was published on July 19, 2026.