CVE-2026-31659 Details
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.
A vulnerability in the Linux kernel's batman-adv module allows for buffer overflow in the translation table (TT) response handling. The issue arises because the function 'batadv_tt_prepare_tvlv_global_data()' calculates the allocation length for global TT responses using 16-bit temporary variables. If a remote originator sends a sufficiently large global TT, the combined length of the TT payload and VLAN header can exceed 65535, causing a wraparound before memory allocation with 'kmalloc()'. This wrapped length leads to an allocation that is too small, allowing 'batadv_tt_prepare_tvlv_global_data()' to write past the end of the allocated memory, creating a heap overflow. The vulnerability affects several versions of the Linux kernel through 6.4.0.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for upgrading the kernel can be found in the official Linux kernel documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/2997f4bd1f982e7013709946e00be89b507693fa | kernel.org | Patch |
| https://git.kernel.org/stable/c/3a359bf5c61d52e7f09754108309d637532164a6 | kernel.org | Patch |
| https://git.kernel.org/stable/c/69d61639bc7e963c3b645e570279d731e7c89062 | kernel.org | Patch |
| https://git.kernel.org/stable/c/7e5d007e0df946bffb8542fb112e0044014a5897 | kernel.org | Patch |
| https://git.kernel.org/stable/c/95c71365a2222908441b54d6f2c315e0c79fcec3 | kernel.org | Patch |
| https://git.kernel.org/stable/c/cf2199171ef799ca7270019125f4a91bd20ad4d9 | kernel.org | Patch |
| https://git.kernel.org/stable/c/de6c1dc3c7d01a152607e6fcecee4d5288283f10 | kernel.org | Patch |
| https://git.kernel.org/stable/c/f970646b9a39539d1bac86822ac78b5915455ea9 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 3.13.1, < 5.10.253 >= 5.11, < 5.15.203 >= 5.16, < 6.1.169 >= 6.2, < 6.6.135 >= 6.7, < 6.12.82 >= 6.13, < 6.18.23 >= 6.19, < 6.19.13 3.13 - 7.0 rc1 7.0 rc2 7.0 rc3 7.0 rc4 7.0 rc5 7.0 rc6 7.0 rc7 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Apr 27, 2026 | Initial Analysis | [email protected] |
| Apr 27, 2026 | CVE Modified | kernel.org |
| Apr 24, 2026 | New CVE Received | kernel.org |