Skip to main content

Linux Kernel batman-adv EUVDEUVD-2026-25552

| CVE-2026-31659 CRITICAL
Integer Overflow or Wraparound (CWE-190)
2026-04-24 Linux GHSA-8jfv-frvf-4g4v
9.8
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Join batman-adv mesh as originator
  2. Delivery
    Advertise oversized global TT (16-bit length wraps)
  3. Exploit
    Victim computes undersized kmalloc allocation
  4. Execution
    Full-table response writes past heap object
  5. Impact
    Kernel memory corruption, DoS or escalation

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target host to be running the batman-adv kernel module and actively participating in a B.A.T.M.A.N. Advanced Layer-2 mesh, and the attacker must be (or control) a mesh originator able to advertise translation-table data to the victim. The concrete trigger is a global TT advertisement whose TVLV value length (TT payload length plus VLAN header offset) exceeds the 16-bit field, i.e. wraps above 65535, causing the undersized allocation on the victim's full-table response path. Limiting factors: batman-adv is not enabled in default kernel configurations of most servers/desktops, so the attack surface is confined to mesh deployments; the attacker needs L2 mesh adjacency/membership rather than arbitrary Internet routability; and no authentication defeat is needed because the mesh protocol itself is unauthenticated (consistent with PR:N).

Impact

The signals conflict and should be weighed carefully. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, 9.8) treats this as remote-unauthenticated critical, but batman-adv is a Layer-2 mesh protocol: the 'remote originator' must be a participating node in the same mesh, which is realistically Adjacent (AV:A) rather than Internet-routable (AV:N) - this alone lowers real-world reachability. Against that, EPSS is only 0.02% (7th percentile), there is no CISA KEV listing, and no public exploit identified at time of analysis, so there is no evidence of active or imminent exploitation. The tag set labels this 'Information Disclosure,' and the CVSS marks C:H, yet the described defect is an out-of-bounds heap WRITE - most plausibly a denial of service (kernel panic) with potential for privilege escalation/code execution, not primarily a read/leak; the confidentiality framing appears overstated versus the integrity/availability impact. Net: a genuinely serious memory-corruption bug in reachable kernel code, but the practical priority is bounded by the requirement to be an on-mesh originator and the near-zero exploitation probability. Prioritize patching on hosts that actually run batman-adv mesh; deprioritize on the overwhelming majority of systems where the module is never loaded.

Exploit ScenarioDerived

An attacker joins (or compromises a node on) a batman-adv mesh and, as a remote originator, advertises a global translation table large enough that the payload length plus VLAN header offset exceeds 65535. When a victim node builds the full-table TT response, the 16-bit length wraps, kmalloc() returns an undersized buffer, and the response path writes past it, corrupting kernel heap memory to crash the node or potentially escalate. No public proof-of-concept is identified at time of analysis, and the low complexity (AC:L) means no special timing or race is required once mesh access is obtained.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

Heap out-of-bounds write in the Linux kernel's batman-adv mesh routing subsystem lets a remote mesh originator corrupt kernel memory by advertising an oversized global translation table (TT). In batadv_tt_prepare_tvlv_global_data(), the allocation length is computed in 16-bit temporaries, so a large TT payload plus the VLAN header offset wraps past 65535 before kmalloc(), producing an undersized buffer that the full-table response path then overruns using the original (unwrapped) length. It is fixed across multiple stable kernel branches; there is no public exploit identified at time of analysis and EPSS is negligible (0.02%).

RemediationAI

Vendor-released patch: upgrade to a fixed stable kernel - 5.10.253, 5.15.203, 6.1.169, 6.6.135, 6.12.82, 6.18.23, 6.19.13, or mainline 7.0 (or your distribution's equivalent, e.g. via Ubuntu USN-8490-1 at https://ubuntu.com/security/notices/USN-8490-1, and Red Hat/SUSE kernel updates). The fix makes batman-adv reject TT responses whose TVLV value length cannot fit the 16-bit payload length field. Where immediate patching is not possible, the most effective compensating control is to not load/use batman-adv on hosts that do not need mesh routing - unload the module and blacklist it (e.g. 'modprobe -r batman_adv' plus a modprobe.d blacklist entry), which fully removes exposure at the cost of disabling mesh functionality on that host. On nodes that must run the mesh, restrict mesh membership to trusted, authenticated peers and segment the mesh L2 domain so untrusted devices cannot join and advertise global TT data; this shrinks the attacker population but does not eliminate risk if any peer is compromised. Confirm exact patched versions against the kernel.org stable commits (https://git.kernel.org/stable/c/95c71365a2222908441b54d6f2c315e0c79fcec3) before deploying.

Affected VersionsENISA

Linux patch: 6.6.135
Linux 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b <95c71365a2222908441b54d6f2c315e0c79fcec3
Linux patch: 6.19.13
Linux patch: 6.12.82
Linux patch: 5.15.203
Linux 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b <cf2199171ef799ca7270019125f4a91bd20ad4d9
Linux 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b <69d61639bc7e963c3b645e570279d731e7c89062
Linux 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b <de6c1dc3c7d01a152607e6fcecee4d5288283f10
Linux 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b <7e5d007e0df946bffb8542fb112e0044014a5897
Linux patch: 6.18.23
Linux 3.13
Linux patch: 6.1.169
Linux patch: 7.0
Linux 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b <3a359bf5c61d52e7f09754108309d637532164a6
Linux 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b <f970646b9a39539d1bac86822ac78b5915455ea9
Linux patch: 5.10.253
Linux 7ea7b4a142758deaf46c1af0ca9ceca6dd55138b <2997f4bd1f982e7013709946e00be89b507693fa
Linux patch: 0

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

batman-adv (B.A.T.M.A.N. Advanced) is an in-kernel Layer-2 mesh routing protocol that maintains a distributed translation table (TT) mapping client MAC addresses to originators, exchanged via TVLV (Type-Version-Length-Value) containers. The affected CPE is cpe:2.3:a:linux:linux (the mainline/stable kernel). The root cause is an integer overflow (CWE-190) in batadv_tt_prepare_tvlv_global_data(): the TVLV payload length field is 16 bits, and the code sums the advertised TT payload length with a per-VLAN header offset in 16-bit temporaries, allowing the value to wrap before the kmalloc() size argument is derived. Because the subsequent tt_change fill uses the original, un-wrapped payload length, the code writes past the end of the too-small heap object (CWE-787 out-of-bounds write / heap buffer overflow), and it does so before the later packet-size sanity check executes. NVD lists CWE as N/A; the class is best described as an integer-overflow-to-heap-overflow. The fix rejects TT responses whose TVLV value length cannot fit the 16-bit payload length field.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Linux) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.3 HIGH

batman-adv needs L2 mesh membership so AV:A not AV:N; mesh is unauthenticated (PR:N); out-of-bounds heap write is primarily integrity/availability (I:H/A:H) with only limited confidentiality (C:L).

3.1 AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H
4.0 AV:A/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE CRITICAL

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Patch released
Apr 27, 2026 - 20:17 nvd
Patch available
CVSS changed
Apr 27, 2026 - 15:22 NVD
9.8 (CRITICAL)
Patch available
Apr 24, 2026 - 16:16 EUVD
CVE Published
Apr 24, 2026 - 14:45 nvd
CRITICAL 9.8

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-31659 is a critical memory corruption vulnerability in the Batman Advanced (batman-adv) mesh networking component for Linux that enables remote system compromise through malformed network advertisements; no public exploit identified at time of analysis. Organizations using mesh infrastructure deployments face risk of full system compromise. Immediate patching is essential despite current low exploitation likelihood.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Prevalence
Low
batman-adv mesh module, rarely enabled outside community/embedded mesh networks
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy