Skip to contentSkip to conversation

CVE-2026-53221: ip6_vti: fix incorrect tunnel matching in vti6_tnl_lookup()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 25

lore
Share & tools
lore
#0 lore raw

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

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

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

ip6_vti: fix incorrect tunnel matching in vti6_tnl_lookup()

In vti6_tnl_lookup(), when an exact match for a tunnel fails, the code falls back to searching for wildcard tunnels:

- Tunnels matching the packet's local address, with any remote address wildcard remote).

- Tunnels matching the packet's remote address, with any local address (wildcard local).

However, vti6 stores all these different types of tunnels in the same hash table (ip6n->tnls_r_l) prone to hash collisions.

The bug is that the fallback search loops in vti6_tnl_lookup() were missing checks to ensure that the candidate tunnel actually has a wildcard address.

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

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

	Issue introduced in 3.19 with commit fbe68ee87522f6eaa10f9076c0a7117e1613f2f7 and fixed in 5.10.259 with commit c327fa4fca31415431202e063767a7ae342e19c6
	Issue introduced in 3.19 with commit fbe68ee87522f6eaa10f9076c0a7117e1613f2f7 and fixed in 5.15.210 with commit fc657ac0767c49839b3ef0b08dc0953ca30883f8
	Issue introduced in 3.19 with commit fbe68ee87522f6eaa10f9076c0a7117e1613f2f7 and fixed in 6.1.176 with commit 47fb3c2b4203556308e64354b3e78f2ce221d646
	Issue introduced in 3.19 with commit fbe68ee87522f6eaa10f9076c0a7117e1613f2f7 and fixed in 6.6.143 with commit f513f308cc4bdb4530d033431592ffbc29b7fca1
	Issue introduced in 3.19 with commit fbe68ee87522f6eaa10f9076c0a7117e1613f2f7 and fixed in 6.12.94 with commit 90fd4513315ca07da99cfd8549d3e553a7160f0d
	Issue introduced in 3.19 with commit fbe68ee87522f6eaa10f9076c0a7117e1613f2f7 and fixed in 6.18.36 with commit 2abfb19bbb81958714ad1d43ebeb65b30394184b
	Issue introduced in 3.19 with commit fbe68ee87522f6eaa10f9076c0a7117e1613f2f7 and fixed in 7.0.13 with commit 2fc7bc087cc7085368263d9d37bfe9a0bddd6a2d
	Issue introduced in 3.19 with commit fbe68ee87522f6eaa10f9076c0a7117e1613f2f7 and fixed in 7.1 with commit a5c0359f5cbc51a2e2b114d6041e0f3c73f903e9

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

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/ipv6/ip6_vti.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/c327fa4fca31415431202e063767a7ae342e19c6
	https://git.kernel.org/stable/c/fc657ac0767c49839b3ef0b08dc0953ca30883f8
	https://git.kernel.org/stable/c/47fb3c2b4203556308e64354b3e78f2ce221d646
	https://git.kernel.org/stable/c/f513f308cc4bdb4530d033431592ffbc29b7fca1
	https://git.kernel.org/stable/c/90fd4513315ca07da99cfd8549d3e553a7160f0d
	https://git.kernel.org/stable/c/2abfb19bbb81958714ad1d43ebeb65b30394184b
	https://git.kernel.org/stable/c/2fc7bc087cc7085368263d9d37bfe9a0bddd6a2d
	https://git.kernel.org/stable/c/a5c0359f5cbc51a2e2b114d6041e0f3c73f903e9