Skip to contentSkip to conversation

CVE-2026-52914: batman-adv: fix fragment reassembly length accounting

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 24

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

batman-adv: fix fragment reassembly length accounting

batman-adv keeps a running payload length for queued fragments and uses it to validate a fragment chain before reassembly.

That accounting currently allows the accumulated fragment length to be truncated during updates. As a result, malformed fragment chains can bypass the intended validation and drive reassembly with inconsistent length state, leading to a local denial of service.

Fix the accounting by storing the accumulated length in a length-typed field and rejecting update overflows before the existing validation logic runs.

The fix was verified against the original reproducer and against valid fragment reassembly paths.

The Linux kernel CVE team has assigned CVE-2026-52914 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 3.13 with commit 610bfc6bc99bc83680d190ebc69359a05fc7f605 and fixed in 5.10.258 with commit e4f3f6b818aa6a678bc54a2d4e0bece2303c6a64
	Issue introduced in 3.13 with commit 610bfc6bc99bc83680d190ebc69359a05fc7f605 and fixed in 5.15.209 with commit 37be61825b15534a16ff9cfc9546de155b6df982
	Issue introduced in 3.13 with commit 610bfc6bc99bc83680d190ebc69359a05fc7f605 and fixed in 6.1.175 with commit 975563c5de1123dde1ec7946bf5556d20c89d74e
	Issue introduced in 3.13 with commit 610bfc6bc99bc83680d190ebc69359a05fc7f605 and fixed in 6.6.142 with commit f653b040dad1af70fa5cd4fe085e4758925480c9
	Issue introduced in 3.13 with commit 610bfc6bc99bc83680d190ebc69359a05fc7f605 and fixed in 6.12.92 with commit e910dbf509125fe51ad68e4fa74dc8ab0a8e787a
	Issue introduced in 3.13 with commit 610bfc6bc99bc83680d190ebc69359a05fc7f605 and fixed in 6.18.34 with commit 3eb8bcb823391bd58997831b3c9c152a4ba8e255
	Issue introduced in 3.13 with commit 610bfc6bc99bc83680d190ebc69359a05fc7f605 and fixed in 7.0.11 with commit fdb2c96efb2baeb3725e9ce3ede8f1e36f5490f0
	Issue introduced in 3.13 with commit 610bfc6bc99bc83680d190ebc69359a05fc7f605 and fixed in 7.1 with commit 9cd3f16c320bfdadd4509358122368deb56a5741

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-52914

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/fragmentation.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/e4f3f6b818aa6a678bc54a2d4e0bece2303c6a64
	https://git.kernel.org/stable/c/37be61825b15534a16ff9cfc9546de155b6df982
	https://git.kernel.org/stable/c/975563c5de1123dde1ec7946bf5556d20c89d74e
	https://git.kernel.org/stable/c/f653b040dad1af70fa5cd4fe085e4758925480c9
	https://git.kernel.org/stable/c/e910dbf509125fe51ad68e4fa74dc8ab0a8e787a
	https://git.kernel.org/stable/c/3eb8bcb823391bd58997831b3c9c152a4ba8e255
	https://git.kernel.org/stable/c/fdb2c96efb2baeb3725e9ce3ede8f1e36f5490f0
	https://git.kernel.org/stable/c/9cd3f16c320bfdadd4509358122368deb56a5741