CVE-2026-31659

Source
https://cve.org/CVERecord?id=CVE-2026-31659
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31659.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-31659
Downstream
Published
2026-04-24T14:45:10.254Z
Modified
2026-06-18T03:56:51.947993606Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
batman-adv: reject oversized global TT response buffers
Details

In the Linux kernel, the following vulnerability has been resolved:

batman-adv: reject oversized global TT response buffers

batadvttpreparetvlvglobal_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 ttchange, so the wrapped allocation is too small and batadvttpreparetvlvglobaldata() 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31659.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7ea7b4a142758deaf46c1af0ca9ceca6dd55138b
Fixed
7e5d007e0df946bffb8542fb112e0044014a5897
Fixed
2997f4bd1f982e7013709946e00be89b507693fa
Fixed
95c71365a2222908441b54d6f2c315e0c79fcec3
Fixed
69d61639bc7e963c3b645e570279d731e7c89062
Fixed
f970646b9a39539d1bac86822ac78b5915455ea9
Fixed
de6c1dc3c7d01a152607e6fcecee4d5288283f10
Fixed
cf2199171ef799ca7270019125f4a91bd20ad4d9
Fixed
3a359bf5c61d52e7f09754108309d637532164a6

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31659.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.13.0
Fixed
5.10.253
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.203
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.169
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.135
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.82
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.23
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.13

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31659.json"