HIGH
batman-adv BuffPos Overflow
CVE-2026-46198
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
KernelScan AI6.9MEDIUM
01Description
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.
02KernelScan AI Analysis
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.
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.
03Fix Versions
| Branch | Fixed in | Patch commit |
|---|---|---|
| 5.10 | 5.10.258 | 867cd090760e |
| 5.15 | 5.15.209 | 10bb1f366d88 |
| 6.1 | 6.1.175 | 96c9c0ed9a95 |
| 6.12 | 6.12.90 | 974542d1efc4 |
| 6.18 | 6.18.32 | bf872db54f91 |
| 6.6 | 6.6.140 | f61499359fa5 |
| 7.0 | 7.0.9 | b252797bfced |
| mainline | 7.1-rc4 | 0799e5943611 |