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

batman-adv: tt: fix TOCTOU race for reported vlans

The local TT based TVLV is generated by first checking the number of VLANs
which have at least one TT entry. A new buffer with the correct size for
the VLANs is then allocated. Only then, the list of VLANs s used to fill
the VLAN entries in the buffer. During this time, the meshif_vlan_list_lock
is held. But the actual number of TT entries of each VLAN can still
increase during this time - just not the number of VLANs in the list.

But the prefilter used in the buffer size calculation might still cause an
increase of the number of VLANs which need to be stored. Simply because a
VLAN might now suddenly have at least one entry when it had none in the
pre-alloc check - and then needs to occupy space which was not allocated.

It is better to overestimate the buffer size at the beginning and then fill
the buffer only with the VLANs which are not empty.
Published: 2026-07-19
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The batman‑adv module includes a TOCTOU race condition in the generation of the TT‑based TVLV used for reporting VLANs. The thread counts how many VLANs have at least one TT entry, allocates a buffer of that size, and then fills the buffer while holding meshif_vlan_list_lock. A local network user can increase the number of TT entries for a VLAN during the interval between the size calculation and the buffer allocation, causing the allocation to be too small. The resulting memory corruption can be triggered with crafted packets and may lead to kernel privilege escalation or arbitrary code execution.

Affected Systems

All Linux kernel installations that include the batman‑adv module before the patch commit (211ea59988e1cba…); no specific version information is provided in the CVE record. The vulnerability is limited to the batman‑adv component; other kernel modules are not affected. Kernel vendors that ship batman‑adv (most generic Linux distributions) must update to a version incorporating the fix.

Risk and Exploitability

The CVSS score of 9.8 indicates a critical rating, but the EPSS score of less than 1% shows that public exploitation is currently unlikely. The vulnerability is not listed in the CISA KEV catalog, and no public exploits are known. The attack vector is local to the node, requiring a network attacker who can send malformed or specially crafted packets to the VLAN interface that the node participates in. While the risk of local kernel privilege escalation or arbitrary code execution is high, its probability of real-world exploitation remains low with the current information.

Generated by OpenCVE AI on July 30, 2026 at 20:37 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the batman‑adv patch commit 211ea59988e1cba… or later; confirm with the vendor’s release notes.
  • If a vendor update is unavailable, rebuild and install the kernel with the patch applied manually from the kernel git repository.
  • After updating, reload the batman‑adv module or reboot to ensure the patched code is active.

Generated by OpenCVE AI on July 30, 2026 at 20:37 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

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

Type Values Removed Values Added
Metrics cvssV3_1

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


Mon, 20 Jul 2026 12:15:00 +0000


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: tt: fix TOCTOU race for reported vlans The local TT based TVLV is generated by first checking the number of VLANs which have at least one TT entry. A new buffer with the correct size for the VLANs is then allocated. Only then, the list of VLANs s used to fill the VLAN entries in the buffer. During this time, the meshif_vlan_list_lock is held. But the actual number of TT entries of each VLAN can still increase during this time - just not the number of VLANs in the list. But the prefilter used in the buffer size calculation might still cause an increase of the number of VLANs which need to be stored. Simply because a VLAN might now suddenly have at least one entry when it had none in the pre-alloc check - and then needs to occupy space which was not allocated. It is better to overestimate the buffer size at the beginning and then fill the buffer only with the VLANs which are not empty.
Title batman-adv: tt: fix TOCTOU race for reported vlans
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:07.214Z

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

Link: CVE-2026-64091

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity :

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

Links: CVE-2026-64091 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T20:45:17Z

Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition