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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.78% (percentile 53, 2026-11-28)
- **CWE:** CWE-190
- **Published:** 2026-04-24T14:45:10.254Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< 7e5d007e0df946bffb8542fb112e0044014a5897; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< 2997f4bd1f982e7013709946e00be89b507693fa; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< 95c71365a2222908441b54d6f2c315e0c79fcec3; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< 69d61639bc7e963c3b645e570279d731e7c89062; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< f970646b9a39539d1bac86822ac78b5915455ea9; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< de6c1dc3c7d01a152607e6fcecee4d5288283f10; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< cf2199171ef799ca7270019125f4a91bd20ad4d9; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< 3a359bf5c61d52e7f09754108309d637532164a6
- Anyone running Linux 3.13

## 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 and fixed versions

- Linux: \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< 7e5d007e0df946bffb8542fb112e0044014a5897; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< 2997f4bd1f982e7013709946e00be89b507693fa; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< 95c71365a2222908441b54d6f2c315e0c79fcec3; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< 69d61639bc7e963c3b645e570279d731e7c89062; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< f970646b9a39539d1bac86822ac78b5915455ea9; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< de6c1dc3c7d01a152607e6fcecee4d5288283f10; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< cf2199171ef799ca7270019125f4a91bd20ad4d9; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< 3a359bf5c61d52e7f09754108309d637532164a6 (cvelist)
- Linux: 3.13 (cvelist)

## Mitigation

- Upgrade Linux to 3a359bf5c61d52e7f09754108309d637532164a6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-31659. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31659.md
Affected: Linux >= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, < 7e5d007e0df946bffb8542fb112e0044014a5897; >= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, < 2997f4bd1f982e7013709946e00be89b507693fa; >= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, < 95c71365a2222908441b54d6f2c315e0c79fcec3; >= 7ea7b4a142758deaf46c1af…
Fixed in: Linux 7e5d007e0df946bffb8542fb112e0044014a5897, Linux 2997f4bd1f982e7013709946e00be89b507693fa, Linux 95c71365a2222908441b54d6f2c315e0c79fcec3, Linux 69d61639bc7e963c3b645e570279d731e7c89062, Linux 3a359bf5c61d52e7f09754108309d637532164a6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-31659 being exploited?

There is no confirmed exploitation: CVE-2026-31659 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.78% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-31659?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-31659?

Linux \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< 7e5d007e0df946bffb8542fb112e0044014a5897; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< 2997f4bd1f982e7013709946e00be89b507693fa; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< 95c71365a2222908441b54d6f2c315e0c79fcec3; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< 69d61639bc7e963c3b645e570279d731e7c89062; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< f970646b9a39539d1bac86822ac78b5915455ea9; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< de6c1dc3c7d01a152607e6fcecee4d5288283f10; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< cf2199171ef799ca7270019125f4a91bd20ad4d9; \>= 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b, \< 3a359bf5c61d52e7f09754108309d637532164a6; Linux 3.13.

### Is there a fix for CVE-2026-31659?

Yes. Fixed in Linux 7e5d007e0df946bffb8542fb112e0044014a5897, Linux 2997f4bd1f982e7013709946e00be89b507693fa, Linux 95c71365a2222908441b54d6f2c315e0c79fcec3, Linux 69d61639bc7e963c3b645e570279d731e7c89062, Linux 3a359bf5c61d52e7f09754108309d637532164a6. Upgrade Linux to 3a359bf5c61d52e7f09754108309d637532164a6 or later.

### How do I check if I'm affected by CVE-2026-31659?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31659>

HTML: <https://flawdb.com/CVE-2026-31659> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31659>
