# CVE-2026-64091: batman-adv: tt: fix TOCTOU race for reported vlans

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-07-19T15:40:00.030Z
- Modified: 2026-08-11T15:36:30.617Z
- Weaknesses: CWE-367
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 16116dac23396e73c01eeee97b102e4833a4b205 before e4236bf3ec8d6bb15d0d8d825dcf9933a7d6666b; from 16116dac23396e73c01eeee97b102e4833a4b205 before 724a8eb4155669797c96b70d70e354284ae3b5a8; from 16116dac23396e73c01eeee97b102e4833a4b205 before 211ea59988e1cba43cb0367ad65d379b56f9c3bd; from 16116dac23396e73c01eeee97b102e4833a4b205 before 65a1e67339aa8c95ac544b796946af388930ee23; from 16116dac23396e73c01eeee97b102e4833a4b205 before b4d4efd4e351593c81e9293d4b4408d244fa5ee7; from 16116dac23396e73c01eeee97b102e4833a4b205 before 4cc85aec8d3c9ab4dc716dc9f1ed36fca16b227f; from 16116dac23396e73c01eeee97b102e4833a4b205 before 9a9c859457bc440a55773e01ff18b1bb5bab6836; from 16116dac23396e73c01eeee97b102e4833a4b205 before 94d27005016be15ffc638b2ecbc4d58805ad7b48; 3134c5a32810c510f1f447c135cec346acbb71c3; e861e03a1b5b615ad1b57b1802b17e260eedccfe; 0b81edc8818903c64c4d121bc51cd5825be8cc67; 90ae6475b1753f0c1a4c66034b5666de3189fac8; and 5 more (not affected: before 4.17; from 5.10.259 up to 5.10.*; from 5.15.210 up to 5.15.*; from 6.1.176 up to 6.1.*; from 6.6.143 up to 6.6.*; from 6.12.93 up to 6.12.*; from 6.18.34 up to 6.18.*; from 7.0.11 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 3.16.60 before 3.17; from 4.4.217 before 4.5; from 4.9.217 before 4.10; from 4.14.174 before 4.15; from 4.17.1 before 5.10.259; from 5.11 before 5.15.210; from 5.16 before 6.1.176; from 6.2 before 6.6.143; from 6.7 before 6.12.93; from 6.13 before 6.18.34; from 6.19 before 7.0.11; 4.17; and 1 more

## References

- <https://git.kernel.org/stable/c/e4236bf3ec8d6bb15d0d8d825dcf9933a7d6666b> (patch)
- <https://git.kernel.org/stable/c/724a8eb4155669797c96b70d70e354284ae3b5a8> (patch)
- <https://git.kernel.org/stable/c/211ea59988e1cba43cb0367ad65d379b56f9c3bd> (patch)
- <https://git.kernel.org/stable/c/65a1e67339aa8c95ac544b796946af388930ee23> (patch)
- <https://git.kernel.org/stable/c/b4d4efd4e351593c81e9293d4b4408d244fa5ee7> (patch)
- <https://git.kernel.org/stable/c/4cc85aec8d3c9ab4dc716dc9f1ed36fca16b227f> (patch)
- <https://git.kernel.org/stable/c/9a9c859457bc440a55773e01ff18b1bb5bab6836> (patch)
- <https://git.kernel.org/stable/c/94d27005016be15ffc638b2ecbc4d58805ad7b48> (patch)

## Sources

- CVE List: [CVE-2026-64091](https://www.cve.org/CVERecord?id=CVE-2026-64091), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2026-64091](https://nvd.nist.gov/vuln/detail/CVE-2026-64091), Public domain, modified 2026-08-11

---

Page: https://cve.day/CVE-2026-64091 · Whole record: https://cve.day/CVE-2026-64091.json · Rebuilt by cve.day 2026-11-25T22:59:28.987Z
