CVE-2026-52934

batman-adv: tvlv: reject oversized TVLV packets

HIGH
8.8
CVSS Score
Published: June 24, 2026 at 07:14 AM UTC
Updated: August 5, 2026 at 01:24 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.13 ≤ v < 5.10.2593.13 ≤ v < 5.15.2103.13 ≤ v < 6.1.1763.13 ≤ v < 6.12.933.13 ≤ v < 6.18.343.13 ≤ v < 6.6.1433.13 ≤ v < 7.0.113.13 ≤ v < 7.15.11 ≤ v < 5.15.2105.16 ≤ v < 6.1.1766.13 ≤ v < 6.18.346.19 ≤ v < 7.0.116.2 ≤ v < 6.6.1436.7 ≤ v < 6.12.937.1 rc17.1 rc27.1 rc37.1 rc4ef26157747d42254453f6b3ac2bd8bd3c53339c3
Vendor states this is fixed in 13493b00dd1e05a705981e052158652ea23eb482 (fixed)
Vendor states this is fixed in 1595628a2f877d052eda18865ccf539392c47c04 (fixed)
Vendor states this is fixed in 6448a49344e87487b61bd88cb850cd694a0f576d (fixed)
Vendor states this is fixed in 94a3d72cd9b21116d7c6d5bdc57c11401fc28557 (fixed)
Vendor states this is fixed in 94db72e9dac202e017ee3db22c59d17e4f3bf171 (fixed)
Vendor states this is fixed in c02aa6c0c9d1bea9bb75dea362b75ad225137bae (fixed)
Vendor states this is fixed in ede47988ac5687793745b17c1634a496a2299919 (fixed)
Vendor states this is fixed in f50487e3566358b2b982b7801945e858c78ad9ab (fixed)
Vendor states this is fixed in 3.13 (unaffected)
Vendor states this is fixed in 5.10.259 (unaffected)
Vendor states this is fixed in 5.15.210 (unaffected)
Vendor states this is fixed in 6.1.176 (unaffected)
Vendor states this is fixed in 6.12.93 (unaffected)
Vendor states this is fixed in 6.18.34 (unaffected)
Vendor states this is fixed in 6.6.143 (unaffected)
Vendor states this is fixed in 7.0.11 (unaffected)
Vendor states this is fixed in 7.1 (unaffected)

CVSS

8.8HIGHLinux
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card