{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-64091","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-07-19T07:54:57.032Z","datePublished":"2026-07-19T15:40:00.030Z","dateUpdated":"2026-08-05T12:39:07.214Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T12:39:07.214Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbatman-adv: tt: fix TOCTOU race for reported vlans\n\nThe local TT based TVLV is generated by first checking the number of VLANs\nwhich have at least one TT entry. A new buffer with the correct size for\nthe VLANs is then allocated. Only then, the list of VLANs s used to fill\nthe VLAN entries in the buffer. During this time, the meshif_vlan_list_lock\nis held. But the actual number of TT entries of each VLAN can still\nincrease during this time - just not the number of VLANs in the list.\n\nBut the prefilter used in the buffer size calculation might still cause an\nincrease of the number of VLANs which need to be stored. Simply because a\nVLAN might now suddenly have at least one entry when it had none in the\npre-alloc check - and then needs to occupy space which was not allocated.\n\nIt is better to overestimate the buffer size at the beginning and then fill\nthe buffer only with the VLANs which are not empty."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"AV:N - 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()`.\nAC:L - 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.\nPR:N - 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.\nUI:N - 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.\nS:U - 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.\nC:H - 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.\nI:H - 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.\nA:H - 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."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/batman-adv/translation-table.c"],"versions":[{"version":"16116dac23396e73c01eeee97b102e4833a4b205","lessThan":"e4236bf3ec8d6bb15d0d8d825dcf9933a7d6666b","status":"affected","versionType":"git"},{"version":"16116dac23396e73c01eeee97b102e4833a4b205","lessThan":"724a8eb4155669797c96b70d70e354284ae3b5a8","status":"affected","versionType":"git"},{"version":"16116dac23396e73c01eeee97b102e4833a4b205","lessThan":"211ea59988e1cba43cb0367ad65d379b56f9c3bd","status":"affected","versionType":"git"},{"version":"16116dac23396e73c01eeee97b102e4833a4b205","lessThan":"65a1e67339aa8c95ac544b796946af388930ee23","status":"affected","versionType":"git"},{"version":"16116dac23396e73c01eeee97b102e4833a4b205","lessThan":"b4d4efd4e351593c81e9293d4b4408d244fa5ee7","status":"affected","versionType":"git"},{"version":"16116dac23396e73c01eeee97b102e4833a4b205","lessThan":"4cc85aec8d3c9ab4dc716dc9f1ed36fca16b227f","status":"affected","versionType":"git"},{"version":"16116dac23396e73c01eeee97b102e4833a4b205","lessThan":"9a9c859457bc440a55773e01ff18b1bb5bab6836","status":"affected","versionType":"git"},{"version":"16116dac23396e73c01eeee97b102e4833a4b205","lessThan":"94d27005016be15ffc638b2ecbc4d58805ad7b48","status":"affected","versionType":"git"},{"version":"3134c5a32810c510f1f447c135cec346acbb71c3","status":"affected","versionType":"git"},{"version":"e861e03a1b5b615ad1b57b1802b17e260eedccfe","status":"affected","versionType":"git"},{"version":"0b81edc8818903c64c4d121bc51cd5825be8cc67","status":"affected","versionType":"git"},{"version":"90ae6475b1753f0c1a4c66034b5666de3189fac8","status":"affected","versionType":"git"},{"version":"3.16.60","lessThan":"3.17","status":"affected","versionType":"semver"},{"version":"4.4.217","lessThan":"4.5","status":"affected","versionType":"semver"},{"version":"4.9.217","lessThan":"4.10","status":"affected","versionType":"semver"},{"version":"4.14.174","lessThan":"4.15","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/batman-adv/translation-table.c"],"versions":[{"version":"4.17","status":"affected"},{"version":"0","lessThan":"4.17","status":"unaffected","versionType":"semver"},{"version":"5.10.259","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.210","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.176","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.143","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.93","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.34","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.0.11","lessThanOrEqual":"7.0.*","status":"unaffected","versionType":"semver"},{"version":"7.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"5.10.259"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"5.15.210"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"6.1.176"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"6.6.143"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"6.12.93"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"6.18.34"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"7.0.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"7.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16.60"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4.217"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9.217"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14.174"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/e4236bf3ec8d6bb15d0d8d825dcf9933a7d6666b"},{"url":"https://git.kernel.org/stable/c/724a8eb4155669797c96b70d70e354284ae3b5a8"},{"url":"https://git.kernel.org/stable/c/211ea59988e1cba43cb0367ad65d379b56f9c3bd"},{"url":"https://git.kernel.org/stable/c/65a1e67339aa8c95ac544b796946af388930ee23"},{"url":"https://git.kernel.org/stable/c/b4d4efd4e351593c81e9293d4b4408d244fa5ee7"},{"url":"https://git.kernel.org/stable/c/4cc85aec8d3c9ab4dc716dc9f1ed36fca16b227f"},{"url":"https://git.kernel.org/stable/c/9a9c859457bc440a55773e01ff18b1bb5bab6836"},{"url":"https://git.kernel.org/stable/c/94d27005016be15ffc638b2ecbc4d58805ad7b48"}],"title":"batman-adv: tt: fix TOCTOU race for reported vlans","x_generator":{"engine":"bippy-1.2.0"}}}}