batman-adv: reject oversized global TT response buffers (Linux Linux)

CVE-2026-31659
CRITICAL 9.8

At a glance

Source
NVD
EPSS
EPSS 0.42 % · percentile 36 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-190 — Integer Overflow or Wraparound

References

Scores

VersionScoreVectorScored by
CVSS 3.1CRITICAL 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1CRITICAL 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b < 7e5d007e0df946bffb8542fb112e0044014a5897 ; affected 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b < 2997f4bd1f982e7013709946e00be89b507693fa ; affected 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b < 95c71365a2222908441b54d6f2c315e0c79fcec3 ; affected 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b < 69d61639bc7e963c3b645e570279d731e7c89062 ; affected 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b < f970646b9a39539d1bac86822ac78b5915455ea9 ; affected 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b < de6c1dc3c7d01a152607e6fcecee4d5288283f10
Linux · Linuxaffected 3.13 ; unaffected 0 < 3.13 ; unaffected 5.10.253 ≤ 5.10.* ; unaffected 5.15.203 ≤ 5.15.* ; unaffected 6.1.169 ≤ 6.1.* ; unaffected 6.6.135 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD