data built 2026-10-19T13:16:53Z

Look up another CVE · open CVE-2026-64091 in the interactive tracker

CVE-2026-64091

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

9.8 EPSS 0.4% AV:N

Published 2026-07-19 (3 months ago) by the Linux kernel CNA. Subsystem net/batman-adv. Debian urgency: not yet assigned.

What to do, per Debian release

Debian's own status for CVE-2026-64091 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source

ReleaseStatus VersionWhat this means
Debian 12bookwormfixed6.1.176-1Update the kernel and reboot. Fixed in 6.1.176-1. A running kernel keeps the old code until the machine restarts.
Debian 13trixiefixed6.12.94-1Update the kernel and reboot. Fixed in 6.12.94-1. A running kernel keeps the old code until the machine restarts.
Debian 14forkyfixed7.0.12-1Update the kernel and reboot. Fixed in 7.0.12-1. A running kernel keeps the old code until the machine restarts.
Debian unstablesidfixed7.0.12-1Update the kernel and reboot. Fixed in 7.0.12-1. A running kernel keeps the old code until the machine restarts.

The vulnerability

What the bug is

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.

Where it lives

The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.

net/batman-adv/translation-table.c

What this is
BATMAN ADVANCEDMAINTAINERS section matched on net/batman-adv/ · b.a.t.m.a.n@lists.open-mesh.org · Maintained
Kernel module
batman_adv

Check it on the machine

grep -w CONFIG_BATMAN_ADV /boot/config-$(uname -r)

Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.

lsmod | grep -w batman_adv

Prints a line if that module is loaded right now, and nothing if it is not. One that is not loaded can still be loaded later by anything that needs it.

Show whether Debian builds this, per release

Debian builds this, but not on every flavour. At least one release below builds the code on some of its kernel flavours and not on others, so the answer depends on the architecture and flavour installed.

  • bookworm, trixie, forky, sidMnot built on amd64/cloud-amd64, arm64/cloud-arm64
M
a module where it is built at all; some flavours do not build it
Build switch
CONFIG_BATMAN_ADV

From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages

Signals

Published
2026-07-19 (3 months ago)source
CVSS
9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:Hsource recompute it
Attack vector
network (AV:N)source
EPSS
0.43%, higher than 35.4% of all CVEssource
CISA KEV
not listedthe KEV catalogue
Debian urgency
not yet assignedsource
Subsystem
net/batman-adv

Upstream fixes

The versions the CNA records as introducing and fixing this, and the commit for each. source

IntroducedFixed inCommit
4.175.10.259e4236bf3ec8d
4.175.15.210724a8eb41556
4.176.1.176211ea59988e1
4.176.6.14365a1e67339aa
4.176.12.93b4d4efd4e351
4.176.18.344cc85aec8d3c
4.177.0.119a9c859457bc
4.177.194d27005016b
3.16.6000
4.4.21700
4.9.21700
4.14.17400

Why the CNA scored it this way

Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source

AV:NAttack vector, network
The bug is hit in `batadv_tt_prepare_tvlv_local_data()` when building TT TVLVs for OGM updates or TT_RESPONSE replies. A remote mesh peer can trigger the response path by sending unicast TVLV TT_REQUEST packets (`batadv_recv_unicast_tvlv` → `batadv_tt_tvlv_unicast_handler_v1` → `batadv_send_my_tt_response`) and can race the OGM commit path by flooding mesh traffic that registers new clients via `batadv_tt_local_add()`.
AC:LAttack complexity, low
The attacker controls both sides of the TOCTOU race by concurrently sending TT_REQUEST packets and traffic that adds TT entries to VLANs that were empty during the size calculation. No victim-specific memory layout or rare timing outside the attacker's control is required.
PR:NPrivileges required, none
Exploitation requires only participation in an active batman-adv mesh as an unauthenticated remote peer sending protocol packets. No local Linux credentials, capabilities, or netlink/rtnl admin rights on the victim host are needed.
UI:NUser interaction, none
The vulnerability is triggered entirely by attacker-sent mesh protocol packets and concurrent traffic processing; no victim user action such as mounting a filesystem or opening a file is required.
S:UScope, unchanged
The out-of-bounds write corrupts kernel heap memory within the same kernel security boundary. This is standard in-kernel memory corruption, not a cross-boundary escape such as VM guest-to-host or IOMMU bypass.
C:HConfidentiality impact, high
The TOCTOU causes undersized `kmalloc()` allocation followed by out-of-bounds writes of `batadv_tvlv_tt_vlan_data` structures (8 bytes each) and misplacement of the TT changes region, with subsequent `memcpy()` of change entries writing further past the buffer end. Heap corruption of this kind can be leveraged for arbitrary kernel memory disclosure.
I:HIntegrity impact, high
Writing VLAN headers and TT change records beyond the allocated buffer is a kernel heap buffer overflow. With heap grooming this class of corruption is exploitable for arbitrary kernel memory writes and potential privilege escalation.
A:HAvailability impact, high
Heap corruption from the out-of-bounds writes can cause immediate kernel oops/panic from corrupting adjacent slab objects or allocator metadata, and is independently a high availability impact even before successful exploitation.