KernelScan.io

HIGH

batman-adv BuffPos Overflow

CVE-2026-46198

CVSS 8.8 / 10.0 NVD

CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

KernelScan AI6.9MEDIUM

01

In the Linux kernel, the following vulnerability has been resolved: batman-adv: fix integer overflow on buff_pos Fixing an integer overflow present in batadv_iv_ogm_send_to_if. The size check is done using the int type in batadv_iv_ogm_aggr_packet whereas the buff_pos variable uses the s16 type. This could lead to an out-of-bound read.

02

Engine v0.2.0

Risk summary

An integer overflow in batman-adv mesh networking allows adjacent network attackers to trigger a large out-of-bounds read during OGM packet processing. This can leak limited kernel memory and will likely hit unmapped pages, causing a kernel panic. Systems running batman-adv over wireless or local layer-2 networks are at risk.

Affectednet/batman-adv/bat_iv_ogm.c (batman-adv mesh networking)

Vulnerability analysis

The vulnerability occurs when the buff_pos variable (s16 type) overflows while aggregating or forwarding batman-adv OGM packets. The size check in batadv_iv_ogm_aggr_packet uses the int type, so the s16 overflow causes buff_pos to wrap to a negative value, bypassing the length check and resulting in an out-of-bounds read. The fix changes buff_pos from s16 to int, eliminating the overflow condition. The exploitable primitive is an out-of-bounds read, not the integer overflow itself.

03

BranchFixed inPatch commit
5.105.10.258867cd090760e
5.155.15.20910bb1f366d88
6.16.1.17596c9c0ed9a95
6.126.12.90974542d1efc4
6.186.18.32bf872db54f91
6.66.6.140f61499359fa5
7.07.0.9b252797bfced
mainline7.1-rc40799e5943611