CVE-2026-72226: batman-adv: tt: prevent TVLV OOB check overflow
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
batman-adv: tt: prevent TVLV OOB check overflow
A TT unicast TVLV contains the number of VLANs stored in it. This number is an u16 and gets multiplied by the size of the struct batadv_tvlv_tt_vlan_data (8 bytes). The size can therefore overflow the u16 used to store the tt_vlan_len. All additional safety checks to prevent out-of-bounds access of the TVLV buffer are invalid due to this overflow.
Using size_t prevents this overflow and ensures that the safety checks compare against the actual buffer requirements.
The Linux kernel CVE team has assigned CVE-2026-72226 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.13 with commit 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b and fixed in 5.10.261 with commit 0de12a4c4847f571d82a9cd96bc633eded41d7c6 Issue introduced in 3.13 with commit 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b and fixed in 5.15.212 with commit d6ff4764ff784ede25f5c83a6f5883a74c93a5ea Issue introduced in 3.13 with commit 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b and fixed in 6.1.178 with commit 1898273c5dc8148267ef9f97cd2517a2822350e7 Issue introduced in 3.13 with commit 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b and fixed in 6.6.145 with commit 604bd5042fbcd1ab9f7cd98fd847ec017aeede8a Issue introduced in 3.13 with commit 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b and fixed in 6.12.97 with commit 7319c0794f91be2734aac695794e7203606b49f8 Issue introduced in 3.13 with commit 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b and fixed in 6.18.40 with commit 3256c05d5a9db34346eaf20f52dddde984852d77 Issue introduced in 3.13 with commit 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b and fixed in 7.1.5 with commit 6222b443686525cb5a9b6a9cecf23b2e2ab23e2a Issue introduced in 3.13 with commit 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b and fixed in 7.2-rc3 with commit 7a581d9aaba8c82bd6177fa36b2588eea77f6e2b
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-72226
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/batman-adv/translation-table.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/0de12a4c4847f571d82a9cd96bc633eded41d7c6 https://git.kernel.org/stable/c/d6ff4764ff784ede25f5c83a6f5883a74c93a5ea https://git.kernel.org/stable/c/1898273c5dc8148267ef9f97cd2517a2822350e7 https://git.kernel.org/stable/c/604bd5042fbcd1ab9f7cd98fd847ec017aeede8a https://git.kernel.org/stable/c/7319c0794f91be2734aac695794e7203606b49f8 https://git.kernel.org/stable/c/3256c05d5a9db34346eaf20f52dddde984852d77 https://git.kernel.org/stable/c/6222b443686525cb5a9b6a9cecf23b2e2ab23e2a https://git.kernel.org/stable/c/7a581d9aaba8c82bd6177fa36b2588eea77f6e2b