9.8critical
batman-adv: reject oversized global TT response buffers
- Severity
- 9.8critical CVSS:3.1 by Linux
- Exploit likelihood
- 0.44% (higher than 39% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 and 1 more 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.* | CVE List |
| 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 and 1 more | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: batman-adv: rechazar búferes de respuesta TT global sobredimensionados batadv_tt_prepare_tvlv_global_data() construye la longitud de asignación para una respuesta TT global en temporales de 16 bits. Cuando un originador remoto anuncia un TT global lo suficientemente grande, la longitud de la carga útil del TT más el desplazamiento de la cabecera VLAN puede exceder 65535 y desbordarse antes de kmalloc(). La ruta de respuesta de tabla completa todavía utiliza la longitud original de la carga útil del TT cuando llena tt_change, por lo que la asignación desbordada es demasiado pequeña y batadv_tt_prepare_tvlv_global_data() escribe más allá del final del objeto de la pila antes de que se ejecute la comprobación posterior del tamaño del paquete. Solucionar esto al rechazar respuestas TT cuya longitud de valor TVLV no puede caber en el campo de longitud de carga útil TVLV de 16 bits.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-31659 changed 2026-10-19 | CVE Terms of Use |
| NVD | CVE-2026-31659 changed 2026-11-11 | Public domain |