0.0
NA
CVE-2026-64095
batman-adv: bla: avoid double decrement of bla.num_requests
Description

In the Linux kernel, the following vulnerability has been resolved: batman-adv: bla: avoid double decrement of bla.num_requests The bla.num_requests is increased when no request_sent was in progress. And it is decremented in various places (announcement was received, backbone is purged, periodic work). But the check if the request_sent is actually set to a specific state and the atomic_dec/_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 request_sent (state) and bla.num_requests atomically. Otherwise batadv_bla_send_request() might set request_sent to 1 and is interrupted. batadv_handle_announce() can then set request_sent back to 0 and decrement num_requests before batadv_bla_send_request() incremented it. The two operations must therefore be locked. And since state (request_sent) and wait_periods are only accessed inside this lock, they can be converted to simpler datatypes. And to avoid that the bla.num_requests is touched by a parallel running context with a valid backbone_gw reference after batadv_bla_purge_backbone_gw() ran, a third state "stopped" is required to correctly signal that a backbone_gw is in the state of being cleaned up.

INFO

Published Date :

July 19, 2026, 4:17 p.m.

Last Modified :

July 19, 2026, 4:17 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-64095 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

Solution
Address concurrent access issues by implementing locking and state management for request processing.
  • Implement locking for atomic state and counter modifications.
  • Modify request_sent and bla.num_requests atomically.
  • Introduce a 'stopped' state for cleanup signaling.
  • Update the Linux kernel to the latest version.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-64095 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-64095 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-64095 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-64095 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jul. 19, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '23721387c409087fd3b97e274f34d3ddc0970b74', 'lessThan': '1f013bc94154f2e78e97d0296175664224c796e0', 'versionType': 'git'}, {'status': 'affected', 'version': '23721387c409087fd3b97e274f34d3ddc0970b74', 'lessThan': '5328b95960774f2e189f22485616bc7b8eb2f7e3', 'versionType': 'git'}, {'status': 'affected', 'version': '23721387c409087fd3b97e274f34d3ddc0970b74', 'lessThan': '8ff9c59d1b7b48c2596878341a5310f32895d52b', 'versionType': 'git'}, {'status': 'affected', 'version': '23721387c409087fd3b97e274f34d3ddc0970b74', 'lessThan': 'a9393751ecf7e9096f93cb6eed02db4f79125765', 'versionType': 'git'}, {'status': 'affected', 'version': '23721387c409087fd3b97e274f34d3ddc0970b74', 'lessThan': '461f1e3dfb888701895b766446c55db2b10db705', 'versionType': 'git'}, {'status': 'affected', 'version': '23721387c409087fd3b97e274f34d3ddc0970b74', 'lessThan': '45384612f29692fbf0c770200361a7acff90125c', 'versionType': 'git'}, {'status': 'affected', 'version': '23721387c409087fd3b97e274f34d3ddc0970b74', 'lessThan': '65497ad155a3246df177b5ef662cd6e5a32cb470', 'versionType': 'git'}, {'status': 'affected', 'version': '23721387c409087fd3b97e274f34d3ddc0970b74', 'lessThan': '83ab69bd12b80f6ea169c8bea6977701b53a043d', 'versionType': 'git'}], 'programFiles': ['net/batman-adv/bridge_loop_avoidance.c', 'net/batman-adv/mesh-interface.c', 'net/batman-adv/types.h'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '3.5'}, {'status': 'unaffected', 'version': '0', 'lessThan': '3.5', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.259', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.210', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.176', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.143', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.93', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.34', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.11', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['net/batman-adv/bridge_loop_avoidance.c', 'net/batman-adv/mesh-interface.c', 'net/batman-adv/types.h'], 'defaultStatus': 'affected'}]
    Added Description In the Linux kernel, the following vulnerability has been resolved: batman-adv: bla: avoid double decrement of bla.num_requests The bla.num_requests is increased when no request_sent was in progress. And it is decremented in various places (announcement was received, backbone is purged, periodic work). But the check if the request_sent is actually set to a specific state and the atomic_dec/_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 request_sent (state) and bla.num_requests atomically. Otherwise batadv_bla_send_request() might set request_sent to 1 and is interrupted. batadv_handle_announce() can then set request_sent back to 0 and decrement num_requests before batadv_bla_send_request() incremented it. The two operations must therefore be locked. And since state (request_sent) and wait_periods are only accessed inside this lock, they can be converted to simpler datatypes. And to avoid that the bla.num_requests is touched by a parallel running context with a valid backbone_gw reference after batadv_bla_purge_backbone_gw() ran, a third state "stopped" is required to correctly signal that a backbone_gw is in the state of being cleaned up.
    Added Reference https://git.kernel.org/stable/c/1f013bc94154f2e78e97d0296175664224c796e0
    Added Reference https://git.kernel.org/stable/c/45384612f29692fbf0c770200361a7acff90125c
    Added Reference https://git.kernel.org/stable/c/461f1e3dfb888701895b766446c55db2b10db705
    Added Reference https://git.kernel.org/stable/c/5328b95960774f2e189f22485616bc7b8eb2f7e3
    Added Reference https://git.kernel.org/stable/c/65497ad155a3246df177b5ef662cd6e5a32cb470
    Added Reference https://git.kernel.org/stable/c/83ab69bd12b80f6ea169c8bea6977701b53a043d
    Added Reference https://git.kernel.org/stable/c/8ff9c59d1b7b48c2596878341a5310f32895d52b
    Added Reference https://git.kernel.org/stable/c/a9393751ecf7e9096f93cb6eed02db4f79125765
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.