CVE-2026-52934 Details
Description
In the Linux kernel, the following vulnerability has been resolved: batman-adv: tvlv: reject oversized TVLV packets batadv_tvlv_container_ogm_append() builds a TVLV packet section from the tvlv.container_list. The total size of this section is computed by batadv_tvlv_container_list_size(), which sums the sizes of all registered containers. The return type and accumulator in batadv_tvlv_container_list_size() were u16. If the accumulated size exceeds U16_MAX, the value wraps around, causing the subsequent allocation in batadv_tvlv_container_ogm_append() to be undersized. The memcpy-style copy that follows would then write beyond the end of the allocated buffer, corrupting kernel memory. Fix this by widening the return type of batadv_tvlv_container_list_size() to size_t. In batadv_tvlv_container_ogm_append(), check the computed length against U16_MAX before proceeding, and bail out as if the allocation had failed when the limit is exceeded.
A vulnerability in the Linux kernel's batman-adv module allows for improper handling of oversized TVLV packets. The issue arises in the function 'batadv_tvlv_container_ogm_append()', which constructs a TVLV packet section from the 'tvlv.container_list'. The size of this section is calculated by 'batadv_tvlv_container_list_size()', which sums the sizes of all registered containers. However, the return type and accumulator in this size calculation were limited to 16 bits. If the total size exceeds the maximum value for an unsigned 16-bit integer, it wraps around, leading to an undersized allocation for the packet. This underallocation can be exploited, as a subsequent memory copy operation writes beyond the allocated buffer, corrupting kernel memory.
The vulnerability has been addressed by changing the return type of the size calculation function to 'size_t', which allows for larger sizes without wrapping around. Additionally, a check has been implemented to ensure that the calculated length does not exceed U16_MAX before proceeding with the packet allocation.
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/13493b00dd1e05a705981e052158652ea23eb482 | kernel.org | Patch |
| https://git.kernel.org/stable/c/1595628a2f877d052eda18865ccf539392c47c04 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6448a49344e87487b61bd88cb850cd694a0f576d | kernel.org | Patch |
| https://git.kernel.org/stable/c/94a3d72cd9b21116d7c6d5bdc57c11401fc28557 | kernel.org | Patch |
| https://git.kernel.org/stable/c/94db72e9dac202e017ee3db22c59d17e4f3bf171 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c02aa6c0c9d1bea9bb75dea362b75ad225137bae | kernel.org | Patch |
| https://git.kernel.org/stable/c/ede47988ac5687793745b17c1634a496a2299919 | kernel.org | Patch |
| https://git.kernel.org/stable/c/f50487e3566358b2b982b7801945e858c78ad9ab | 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, < 5.10.259 >= 5.11, < 5.15.210 >= 5.16, < 6.1.176 >= 6.2, < 6.6.143 >= 6.7, < 6.12.93 >= 6.13, < 6.18.34 >= 6.19, < 7.0.11 7.1 rc1 7.1 rc2 7.1 rc3 7.1 rc4 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 8, 2026 | Initial Analysis | [email protected] |
| Jun 28, 2026 | CVE Modified | kernel.org |
| Jun 24, 2026 | New CVE Received | kernel.org |