# CVE-2026-31659: batman-adv: reject oversized global TT response buffers

- 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.44%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-04-24T14:45:10.254Z
- Modified: 2026-11-11T23:10:00.263Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b before 7e5d007e0df946bffb8542fb112e0044014a5897; from 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b before 2997f4bd1f982e7013709946e00be89b507693fa; from 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b before 95c71365a2222908441b54d6f2c315e0c79fcec3; from 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b before 69d61639bc7e963c3b645e570279d731e7c89062; from 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b before f970646b9a39539d1bac86822ac78b5915455ea9; from 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b before de6c1dc3c7d01a152607e6fcecee4d5288283f10; from 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b before cf2199171ef799ca7270019125f4a91bd20ad4d9; from 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b before 3a359bf5c61d52e7f09754108309d637532164a6; 3.13 (not affected: before 3.13; from 5.10.253 up to 5.10.*; from 5.15.203 up to 5.15.*; from 6.1.169 up to 6.1.*; from 6.6.135 up to 6.6.*; from 6.12.82 up to 6.12.*; from 6.18.23 up to 6.18.*; from 6.19.13 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 3.13.1 before 5.10.253; from 5.11 before 5.15.203; from 5.16 before 6.1.169; from 6.2 before 6.6.135; from 6.7 before 6.12.82; from 6.13 before 6.18.23; from 6.19 before 6.19.13; 3.13; 7.0

## References

- <https://git.kernel.org/stable/c/7e5d007e0df946bffb8542fb112e0044014a5897> (patch)
- <https://git.kernel.org/stable/c/2997f4bd1f982e7013709946e00be89b507693fa> (patch)
- <https://git.kernel.org/stable/c/95c71365a2222908441b54d6f2c315e0c79fcec3> (patch)
- <https://git.kernel.org/stable/c/69d61639bc7e963c3b645e570279d731e7c89062> (patch)
- <https://git.kernel.org/stable/c/f970646b9a39539d1bac86822ac78b5915455ea9> (patch)
- <https://git.kernel.org/stable/c/de6c1dc3c7d01a152607e6fcecee4d5288283f10> (patch)
- <https://git.kernel.org/stable/c/cf2199171ef799ca7270019125f4a91bd20ad4d9> (patch)
- <https://git.kernel.org/stable/c/3a359bf5c61d52e7f09754108309d637532164a6> (patch)

## Sources

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

---

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