Description
In the Linux kernel, the following vulnerability has been resolved:

batman-adv: tp_meter: directly shut down timer on cleanup

batadv_tp_sender_cleanup() was calling timer_delete_sync() followed by
timer_delete() to guard against the timer handler re-arming itself between
the two calls. This double-deletion hack relied on the sending status being
set to 0 to suppress re-arming.

Replace both calls with a single timer_shutdown_sync(). This function both
waits for any running timer callback to complete (like timer_delete_sync())
and permanently disarms the timer so it cannot be re-armed afterwards,
making re-arming prevention unconditional and self-documenting.

The re-arming property is also required because otherwise:

1. context 0 (batadv_tp_recv_ack()) checks in
batadv_tp_reset_sender_timer() if sending is still 1 -> it is
2. context 1 changes in batadv_tp_sender_shutdown() sending to 0 and in
this process forces the kthread to stop timer in
batadv_tp_sender_cleanup()
3. context 0 continues in batadv_tp_reset_sender_timer() and rearms the
timer -> but the reference for it is already gone
Published: 2026-07-19
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The batman-adv bridge module has a flaw in its timer cleanup routine. During cleanup, the code calls timer_delete_sync() followed by timer_delete() to prevent the timer from being re‑armed. If the timer is re‑armed between these two calls, a use‑after‑free can occur, allowing the kernel to execute a callback on a freed timer object. This results in a kernel crash, which effectively denies service. The weakness is classified as CWE-364.

Affected Systems

All Linux systems that load the batman-adv bridge module and contain the unpatched batadv_tp_sender_cleanup function are potentially vulnerable. The description does not specify a version range, so any kernel build that includes the buggy code—common in many distributions that ship batman-adv—is affected. The vulnerability only manifests when the module is active and a packet‑sender operation reaches the cleanup path.

Risk and Exploitability

The CVSS base score of 8.8 indicates a high severity. The EPSS score of <1% suggests a low current exploitation probability, and the flaw is not yet listed in CISA KEV. Exploitation would typically require an attacker capable of influencing batman‑adv traffic to trigger the sender cleanup, such as by injecting crafted packets or controlling a node in a batman‑adv network. The attack vector is network‑oriented and relies on kernel‑space execution; it is not trivially usable from a remote user without affecting the bridge or operating the kernel directly.

Generated by OpenCVE AI on August 4, 2026 at 18:02 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that contains the batadv_tp_sender_cleanup patch.
  • If batman‑adv is not required on a particular host, disable or unload the bridge module to eliminate the attack surface.
  • For systems that must keep batman‑adv but cannot update the kernel immediately, backport the timer_shutdown_sync change, rebuild the kernel, and redeploy it to provide the same protection.

Generated by OpenCVE AI on August 4, 2026 at 18:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
History

Sun, 26 Jul 2026 08:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416
CWE-590

Tue, 21 Jul 2026 22:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416
CWE-590

Tue, 21 Jul 2026 12:15:00 +0000


Mon, 20 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Sun, 19 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: batman-adv: tp_meter: directly shut down timer on cleanup batadv_tp_sender_cleanup() was calling timer_delete_sync() followed by timer_delete() to guard against the timer handler re-arming itself between the two calls. This double-deletion hack relied on the sending status being set to 0 to suppress re-arming. Replace both calls with a single timer_shutdown_sync(). This function both waits for any running timer callback to complete (like timer_delete_sync()) and permanently disarms the timer so it cannot be re-armed afterwards, making re-arming prevention unconditional and self-documenting. The re-arming property is also required because otherwise: 1. context 0 (batadv_tp_recv_ack()) checks in batadv_tp_reset_sender_timer() if sending is still 1 -> it is 2. context 1 changes in batadv_tp_sender_shutdown() sending to 0 and in this process forces the kthread to stop timer in batadv_tp_sender_cleanup() 3. context 0 continues in batadv_tp_reset_sender_timer() and rearms the timer -> but the reference for it is already gone
Title batman-adv: tp_meter: directly shut down timer on cleanup
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:39:08.305Z

Reserved: 2026-07-19T07:54:57.032Z

Link: CVE-2026-64093

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity :

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-64093 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T18:15:03Z

Weaknesses
  • CWE-364

    Signal Handler Race Condition