CVE-2026-63834: batman-adv: tp_meter: restrict number of unacked list entries
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
batman-adv: tp_meter: restrict number of unacked list entries
When the unacked_list is unbound, an attacker could send messages with small lengths and appropriated seqno + gaps to force the receiver to allocate more and more unacked_list entries. And the end either causing an out-of-memory situation or increase the management overhead for the (large) list that significant portions of CPU cycles are wasted in searching through the list.
When limiting the list to a specific number, it is important to still correctly add a new entry to the list. But if the list became larger than the limit, the last entry of the list (with the highest seqno) must be dropped to still allow the earlier seqnos to finish and therefore to continue the process. Otherwise, the process might get stuck with too high seqnos which are not handled by batadv_tp_ack_unordered().
The Linux kernel CVE team has assigned CVE-2026-63834 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.8 with commit 33a3bb4a3345bb511f9c69c913da95d4693e2a4e and fixed in 5.10.260 with commit 31a88792bfba142be3c9521538c1db805677381f Issue introduced in 4.8 with commit 33a3bb4a3345bb511f9c69c913da95d4693e2a4e and fixed in 5.15.211 with commit 1111a3381bca2d1f084a07686bc783af5ab23df7 Issue introduced in 4.8 with commit 33a3bb4a3345bb511f9c69c913da95d4693e2a4e and fixed in 6.1.177 with commit 1c616b0be4bd8399d485e25e91859373b95d6013 Issue introduced in 4.8 with commit 33a3bb4a3345bb511f9c69c913da95d4693e2a4e and fixed in 6.6.144 with commit f8c499fd275e59203b77fca76ae6ef2d096c2133 Issue introduced in 4.8 with commit 33a3bb4a3345bb511f9c69c913da95d4693e2a4e and fixed in 6.12.95 with commit c6231d628d06d841bc1617b2f7034f5f39876b16 Issue introduced in 4.8 with commit 33a3bb4a3345bb511f9c69c913da95d4693e2a4e and fixed in 6.18.38 with commit 2233787658db859f0a9b83cb397cf783bb8be865 Issue introduced in 4.8 with commit 33a3bb4a3345bb511f9c69c913da95d4693e2a4e and fixed in 7.1.3 with commit 1fb8762600a393d1caccd63be5d07e1756982d68 Issue introduced in 4.8 with commit 33a3bb4a3345bb511f9c69c913da95d4693e2a4e and fixed in 7.2-rc1 with commit e7c775110e1858e5a7471a23a9c9658c0af9df89
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-63834
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/tp_meter.c
net/batman-adv/types.h
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/31a88792bfba142be3c9521538c1db805677381f https://git.kernel.org/stable/c/1111a3381bca2d1f084a07686bc783af5ab23df7 https://git.kernel.org/stable/c/1c616b0be4bd8399d485e25e91859373b95d6013 https://git.kernel.org/stable/c/f8c499fd275e59203b77fca76ae6ef2d096c2133 https://git.kernel.org/stable/c/c6231d628d06d841bc1617b2f7034f5f39876b16 https://git.kernel.org/stable/c/2233787658db859f0a9b83cb397cf783bb8be865 https://git.kernel.org/stable/c/1fb8762600a393d1caccd63be5d07e1756982d68 https://git.kernel.org/stable/c/e7c775110e1858e5a7471a23a9c9658c0af9df89