CVE-2026-46198: batman-adv: fix integer overflow on buff_pos
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-46198 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.38 with commit c6c8fea29769d998d94fcec9b9f14d4b52b349d3 and fixed in 6.6.140 with commit f61499359fa529f0d45a53bf7c573a49eb6322e6 Issue introduced in 2.6.38 with commit c6c8fea29769d998d94fcec9b9f14d4b52b349d3 and fixed in 6.12.90 with commit 974542d1efc48b7e9fe16184e647615cba39969b Issue introduced in 2.6.38 with commit c6c8fea29769d998d94fcec9b9f14d4b52b349d3 and fixed in 6.18.32 with commit bf872db54f91ffe70104b98c20068b2d5910e018 Issue introduced in 2.6.38 with commit c6c8fea29769d998d94fcec9b9f14d4b52b349d3 and fixed in 7.0.9 with commit b252797bfced986d6d92ec2f4cfcca842ce8aa78 Issue introduced in 2.6.38 with commit c6c8fea29769d998d94fcec9b9f14d4b52b349d3 and fixed in 7.1-rc4 with commit 0799e5943611006b346b8813c7daf7dd5aa26bfd
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-46198
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/batman-adv/bat_iv_ogm.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/f61499359fa529f0d45a53bf7c573a49eb6322e6 https://git.kernel.org/stable/c/974542d1efc48b7e9fe16184e647615cba39969b https://git.kernel.org/stable/c/bf872db54f91ffe70104b98c20068b2d5910e018 https://git.kernel.org/stable/c/b252797bfced986d6d92ec2f4cfcca842ce8aa78 https://git.kernel.org/stable/c/0799e5943611006b346b8813c7daf7dd5aa26bfd