{"id":"CVE-2026-31659","aliases":["CVE-2026-31659"],"related":[],"kind":"vulnerability","state":"published","title":"batman-adv: reject oversized global TT response buffers","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbatman-adv: reject oversized global TT response buffers\n\nbatadv_tt_prepare_tvlv_global_data() builds the allocation length for a\nglobal TT response in 16-bit temporaries. When a remote originator\nadvertises a large enough global TT, the TT payload length plus the VLAN\nheader offset can exceed 65535 and wrap before kmalloc().\n\nThe full-table response path still uses the original TT payload length when\nit fills tt_change, so the wrapped allocation is too small and\nbatadv_tt_prepare_tvlv_global_data() writes past the end of the heap object\nbefore the later packet-size check runs.\n\nFix this by rejecting TT responses whose TVLV value length cannot fit in\nthe 16-bit TVLV payload length field.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbatman-adv: reject oversized global TT response buffers\n\nbatadv_tt_prepare_tvlv_global_data() builds the allocation length for a\nglobal TT response in 16-bit temporaries. When a remote originator\nadvertises a large enough global TT, the TT payload length plus the VLAN\nheader offset can exceed 65535 and wrap before kmalloc().\n\nThe full-table response path still uses the original TT payload length when\nit fills tt_change, so the wrapped allocation is too small and\nbatadv_tt_prepare_tvlv_global_data() writes past the end of the heap object\nbefore the later packet-size check runs.\n\nFix this by rejecting TT responses whose TVLV value length cannot fit in\nthe 16-bit TVLV payload length field.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nbatman-adv: rechazar búferes de respuesta TT global sobredimensionados\n\nbatadv_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().\n\nLa 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.\n\nSolucionar 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.","source":"nvd"}],"published":"2026-04-24T14:45:10.254Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"type":"git","introduced":"7ea7b4a142758deaf46c1af0ca9ceca6dd55138b","fixed":"7e5d007e0df946bffb8542fb112e0044014a5897","status":"affected"},{"type":"git","introduced":"7ea7b4a142758deaf46c1af0ca9ceca6dd55138b","fixed":"2997f4bd1f982e7013709946e00be89b507693fa","status":"affected"},{"type":"git","introduced":"7ea7b4a142758deaf46c1af0ca9ceca6dd55138b","fixed":"95c71365a2222908441b54d6f2c315e0c79fcec3","status":"affected"},{"type":"git","introduced":"7ea7b4a142758deaf46c1af0ca9ceca6dd55138b","fixed":"69d61639bc7e963c3b645e570279d731e7c89062","status":"affected"},{"type":"git","introduced":"7ea7b4a142758deaf46c1af0ca9ceca6dd55138b","fixed":"f970646b9a39539d1bac86822ac78b5915455ea9","status":"affected"},{"type":"git","introduced":"7ea7b4a142758deaf46c1af0ca9ceca6dd55138b","fixed":"de6c1dc3c7d01a152607e6fcecee4d5288283f10","status":"affected"},{"type":"git","introduced":"7ea7b4a142758deaf46c1af0ca9ceca6dd55138b","fixed":"cf2199171ef799ca7270019125f4a91bd20ad4d9","status":"affected"},{"type":"git","introduced":"7ea7b4a142758deaf46c1af0ca9ceca6dd55138b","fixed":"3a359bf5c61d52e7f09754108309d637532164a6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.13","status":"unaffected"},{"type":"semver","introduced":"5.10.253","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.203","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.169","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.135","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.82","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.23","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.13","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.13.1","fixed":"5.10.253"},{"status":"affected","introduced":"5.11","fixed":"5.15.203"},{"status":"affected","introduced":"5.16","fixed":"6.1.169"},{"status":"affected","introduced":"6.2","fixed":"6.6.135"},{"status":"affected","introduced":"6.7","fixed":"6.12.82"},{"status":"affected","introduced":"6.13","fixed":"6.18.23"},{"status":"affected","introduced":"6.19","fixed":"6.19.13"},{"status":"affected","version":"3.13"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/7e5d007e0df946bffb8542fb112e0044014a5897","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2997f4bd1f982e7013709946e00be89b507693fa","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/95c71365a2222908441b54d6f2c315e0c79fcec3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/69d61639bc7e963c3b645e570279d731e7c89062","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f970646b9a39539d1bac86822ac78b5915455ea9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de6c1dc3c7d01a152607e6fcecee4d5288283f10","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cf2199171ef799ca7270019125f4a91bd20ad4d9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3a359bf5c61d52e7f09754108309d637532164a6","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-10-16T15:11:40.590Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31659","url":"https://www.cve.org/CVERecord?id=CVE-2026-31659","licence":"CVE Terms of Use","modified":"2026-10-19T18:56:02.093Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31659","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31659","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.538Z","epss":{"score":0.00437,"percentile":0.39766,"date":"2026-12-01T12:00:22.000Z"}}