CVE-2026-80599: batman-adv: dat: ensure accessible eth_hdr proto field
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
batman-adv: dat: ensure accessible eth_hdr proto field
When batadv_get_vid() accesses the proto field of the ethernet header, it is not checking if the data itself is accessible. The caller is responsible for it. But in contrast to other call sites, batadv_dat_get_vid() and its caller didn't make sure this is true. This could have caused an out-of-bounds access.
The Linux kernel CVE team has assigned CVE-2026-80599 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.13 with commit be1db4f6615b5e6156c807ea8985171c215c2d57 and fixed in 5.10.261 with commit da3677b5ed362742d30ceab31bfafcdc74dc2642 Issue introduced in 3.13 with commit be1db4f6615b5e6156c807ea8985171c215c2d57 and fixed in 5.15.212 with commit 6d3ea37074bb747f745d28138f87745ba9bd97c5 Issue introduced in 3.13 with commit be1db4f6615b5e6156c807ea8985171c215c2d57 and fixed in 6.1.178 with commit 7913935d41f166c367bbf7cc76a79e50044388e8 Issue introduced in 3.13 with commit be1db4f6615b5e6156c807ea8985171c215c2d57 and fixed in 6.6.145 with commit 3c62694c31f043568c3f4784b8d247cc3bea6b4c Issue introduced in 3.13 with commit be1db4f6615b5e6156c807ea8985171c215c2d57 and fixed in 6.12.97 with commit 5836a050d02e9598fa0f71e88dde28b63dfa35e3 Issue introduced in 3.13 with commit be1db4f6615b5e6156c807ea8985171c215c2d57 and fixed in 6.18.40 with commit 8f76277d02176cd739945bba3379448e2e22e799 Issue introduced in 3.13 with commit be1db4f6615b5e6156c807ea8985171c215c2d57 and fixed in 7.1.5 with commit 4407ff3af469356f9641c4a6e7072309bae86bea Issue introduced in 3.13 with commit be1db4f6615b5e6156c807ea8985171c215c2d57 and fixed in 7.2 with commit 26560c4a03dc4d607331600c187f59ab2df5f341
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-80599
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/distributed-arp-table.c
net/batman-adv/main.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/da3677b5ed362742d30ceab31bfafcdc74dc2642 https://git.kernel.org/stable/c/6d3ea37074bb747f745d28138f87745ba9bd97c5 https://git.kernel.org/stable/c/7913935d41f166c367bbf7cc76a79e50044388e8 https://git.kernel.org/stable/c/3c62694c31f043568c3f4784b8d247cc3bea6b4c https://git.kernel.org/stable/c/5836a050d02e9598fa0f71e88dde28b63dfa35e3 https://git.kernel.org/stable/c/8f76277d02176cd739945bba3379448e2e22e799 https://git.kernel.org/stable/c/4407ff3af469356f9641c4a6e7072309bae86bea https://git.kernel.org/stable/c/26560c4a03dc4d607331600c187f59ab2df5f341