Skip to contentSkip to conversation

CVE-2026-89776: vxlan: vnifilter: enforce exact length of GROUP/GROUP6 attributes

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16

lore
Share & tools
lore
#0 lore raw

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

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

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

vxlan: vnifilter: enforce exact length of GROUP/GROUP6 attributes

The VXLAN VNI filter entry policy declares the GROUP/GROUP6 address attributes as NLA_BINARY with only a maximum length, so validate_nla() accepts a payload shorter than the address. The GROUP consumer reads it with nla_get_in_addr(), an unconditional 4-byte load, so a short attribute over-reads up to 3 bytes of uninitialised slab data, which are stored into remote_ip and echoed back via RTM_GETTUNNEL, disclosing kernel memory.

Switch both entries to NLA_POLICY_EXACT_LEN() so the validator rejects any GROUP/GROUP6 that is not exactly 4 / 16 bytes; a valid address is always sent at full width.

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

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

	Issue introduced in 5.18 with commit f9c4bb0b245cee35ef66f75bf409c9573d934cf9 and fixed in 6.1.188 with commit e12c4663529699f457b2988c1dfedf4d13b3b3be
	Issue introduced in 5.18 with commit f9c4bb0b245cee35ef66f75bf409c9573d934cf9 and fixed in 6.6.157 with commit 47bfcc871576eaef6c8edab6749acd4b317306ea
	Issue introduced in 5.18 with commit f9c4bb0b245cee35ef66f75bf409c9573d934cf9 and fixed in 6.12.110 with commit a9ec10815199f9879ba080241dc555efb1daf324
	Issue introduced in 5.18 with commit f9c4bb0b245cee35ef66f75bf409c9573d934cf9 and fixed in 6.18.52 with commit daebc7064a1b4c12c98e52c4bceede7f2fcd573c
	Issue introduced in 5.18 with commit f9c4bb0b245cee35ef66f75bf409c9573d934cf9 and fixed in 7.2.6 with commit ad32e564c62ebf5ba76dd60a22af52c69d54d17b
	Issue introduced in 5.18 with commit f9c4bb0b245cee35ef66f75bf409c9573d934cf9 and fixed in 7.3-rc1 with commit 984f831dda31b3a18f47454cf64989f65402879e

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

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:
drivers/net/vxlan/vxlan_vnifilter.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/e12c4663529699f457b2988c1dfedf4d13b3b3be
	https://git.kernel.org/stable/c/47bfcc871576eaef6c8edab6749acd4b317306ea
	https://git.kernel.org/stable/c/a9ec10815199f9879ba080241dc555efb1daf324
	https://git.kernel.org/stable/c/daebc7064a1b4c12c98e52c4bceede7f2fcd573c
	https://git.kernel.org/stable/c/ad32e564c62ebf5ba76dd60a22af52c69d54d17b
	https://git.kernel.org/stable/c/984f831dda31b3a18f47454cf64989f65402879e