Skip to contentSkip to conversation

CVE-2026-80601: batman-adv: gw: acquire ethernet header only after skb realloc

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 28

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: gw: acquire ethernet header only after skb realloc

The pskb_may_pull() called by batadv_get_vid() could reallocate the buffer behind the skb. Variables which were pointing to the old buffer need to be reassigned to avoid an use-after-free.

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

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

	Issue introduced in 3.14 with commit 6c413b1c22a2c4ef324f1c6f2c282f1ca10a93b9 and fixed in 5.10.261 with commit 2760b38222c8828b075802342fe3b91eb823d542
	Issue introduced in 3.14 with commit 6c413b1c22a2c4ef324f1c6f2c282f1ca10a93b9 and fixed in 5.15.212 with commit 6c37f1166549c999ccd164b0cb6462d1ae68f8f6
	Issue introduced in 3.14 with commit 6c413b1c22a2c4ef324f1c6f2c282f1ca10a93b9 and fixed in 6.1.178 with commit b79884a5567bf788fb76c30832467cf6a56f3c0d
	Issue introduced in 3.14 with commit 6c413b1c22a2c4ef324f1c6f2c282f1ca10a93b9 and fixed in 6.6.145 with commit afac8096bde4948e3caa7e4dd733867cfbd3018e
	Issue introduced in 3.14 with commit 6c413b1c22a2c4ef324f1c6f2c282f1ca10a93b9 and fixed in 6.12.97 with commit e3f4325e35dd6e76b80665f3510738ce34819753
	Issue introduced in 3.14 with commit 6c413b1c22a2c4ef324f1c6f2c282f1ca10a93b9 and fixed in 6.18.40 with commit e6b43acd34b219b807e65096ce207b087942779d
	Issue introduced in 3.14 with commit 6c413b1c22a2c4ef324f1c6f2c282f1ca10a93b9 and fixed in 7.1.5 with commit 916dac5f2944f63f07f7b501acbea6737dbbed0e
	Issue introduced in 3.14 with commit 6c413b1c22a2c4ef324f1c6f2c282f1ca10a93b9 and fixed in 7.2 with commit 77880a3be88d378d60cc1e8f8ec70430e2ed0518

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

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/gateway_client.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/2760b38222c8828b075802342fe3b91eb823d542
	https://git.kernel.org/stable/c/6c37f1166549c999ccd164b0cb6462d1ae68f8f6
	https://git.kernel.org/stable/c/b79884a5567bf788fb76c30832467cf6a56f3c0d
	https://git.kernel.org/stable/c/afac8096bde4948e3caa7e4dd733867cfbd3018e
	https://git.kernel.org/stable/c/e3f4325e35dd6e76b80665f3510738ce34819753
	https://git.kernel.org/stable/c/e6b43acd34b219b807e65096ce207b087942779d
	https://git.kernel.org/stable/c/916dac5f2944f63f07f7b501acbea6737dbbed0e
	https://git.kernel.org/stable/c/77880a3be88d378d60cc1e8f8ec70430e2ed0518