CVE
CVE-2026-31659
CNA description
In the Linux kernel, the following vulnerability has been resolved: batman-adv: reject oversized global TT response buffers batadv_tt_prepare_tvlv_global_data() builds the allocation length for a global TT response in 16-bit temporaries. When a remote originator advertises a large enough global TT, the TT payload length plus the VLAN header offset can exceed 65535 and wrap before kmalloc(). The full-table response path still uses the original TT payload length when it fills tt_change, so the wrapped allocation is too small and batadv_tt_prepare_tvlv_global_data() writes past the end of the heap object before the later packet-size check runs. Fix this by rejecting TT responses whose TVLV value length cannot fit in the 16-bit TVLV payload length field.
Affected versions
All Linux kernel vulnerabilities →
- 7.0-rc7This version only
- 7.0-rc6This version only
- 7.0-rc5This version only
- 7.0-rc4This version only
- 7.0-rc3This version only
- 7.0-rc2This version only
- 7.0-rc1This version only
- ≥ 6.19, < 6.19.13Fixed in 6.19.13
- ≥ 6.13, < 6.18.23Fixed in 6.18.23
- ≥ 6.7, < 6.12.82Fixed in 6.12.82
- ≥ 6.2, < 6.6.135Fixed in 6.6.135
- ≥ 5.16, < 6.1.169Fixed in 6.1.169
- ≥ 5.11, < 5.15.203Fixed in 5.15.203
- ≥ 3.13.1, < 5.10.253Fixed in 5.10.253
- 3.13This version only
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- git.kernel.org/stable/c/2997f4bd1f982e7013709946e00be89b507693fa · Patch
- git.kernel.org/stable/c/3a359bf5c61d52e7f09754108309d637532164a6 · Patch
- git.kernel.org/stable/c/69d61639bc7e963c3b645e570279d731e7c89062 · Patch
- git.kernel.org/stable/c/7e5d007e0df946bffb8542fb112e0044014a5897 · Patch
- git.kernel.org/stable/c/95c71365a2222908441b54d6f2c315e0c79fcec3 · Patch
- git.kernel.org/stable/c/cf2199171ef799ca7270019125f4a91bd20ad4d9 · Patch
- git.kernel.org/stable/c/de6c1dc3c7d01a152607e6fcecee4d5288283f10 · Patch
- git.kernel.org/stable/c/f970646b9a39539d1bac86822ac78b5915455ea9 · Patch
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.