Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 27CE2304989 for ; Wed, 12 Nov 2025 10:53:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762944838; cv=none; b=XbRKEK03q5/cpfgC/6k/Px/wDnI5whQhKxvM0qtQZ1INQmQHAtQGLLHyyUs/7bs8/T+9d1lFYfZSgpIPnuqr+vYrdVjntMx7eF3IVb0ltM5yl1YB25ODjqzwqqappsqBpWCb/ZNP556EH/E4QGfAuXNcJ6nm9AnUUgJKXQWeEbo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762944838; c=relaxed/simple; bh=3oiO+Nz1HEZA5z2N49wegxPM0SNCfDot++8KLfI4H9Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Lz/AZibF3660fp7Lwdb/OFPi4T6+OazmMRFhkNUq+THR3CSzcZvoWxzySi1Md2Dp63frGA8x9GCt4P41pR4Baqi3Sv2/6j8fNjSEoAFwO/rZfQwHjFiLxrnlcOpblRVclmNzs9agwK+Jo/SB0je/xIgu4kc7IytOw3oSaOG1BQE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xHExoUxF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="xHExoUxF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EAF6C4CEF7; Wed, 12 Nov 2025 10:53:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762944837; bh=3oiO+Nz1HEZA5z2N49wegxPM0SNCfDot++8KLfI4H9Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xHExoUxFHKfJGg8UJTJJRvbP+GcU1Q+i4RD5DRj+gKfe/G8koFvxNKURoyVnvTsLr x9zq7ukYye7cgqpNe2TJ+kgrpgD161b2GjCSld05DmxsopPqcrf84NvMGE/sEw1mVJ z2cK9RSwmPmPK9aGnY9rBc+HuP70Nko35YGgDB4s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40173: net/ip6_tunnel: Prevent perpetual tunnel growth Date: Wed, 12 Nov 2025 05:53:56 -0500 Message-ID: <2025111254-CVE-2025-40173-4a68@gregkh> X-Mailer: git-send-email 2.51.2 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3641; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3rNjfqoA4JBVeEHwiyHXpOteK3PkEjL74OctUAW3sbI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJki6U6uKfJJeZ98UmfcXeV1u7n1WmP44fz/a8z+nTR8K 2Za7T6/I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbyK4phwbxom67kR9oyc5yn XtwkfmKHxa6/0gzzPXof164PPuHnf4nj1WeF/5nlPzMSAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: net/ip6_tunnel: Prevent perpetual tunnel growth Similarly to ipv4 tunnel, ipv6 version updates dev->needed_headroom, too. While ipv4 tunnel headroom adjustment growth was limited in commit 5ae1e9922bbd ("net: ip_tunnel: prevent perpetual headroom growth"), ipv6 tunnel yet increases the headroom without any ceiling. Reflect ipv4 tunnel headroom adjustment limit on ipv6 version. Credits to Francesco Ruggeri, who was originally debugging this issue and wrote local Arista-specific patch and a reproducer. The Linux kernel CVE team has assigned CVE-2025-40173 to this issue. Affected and fixed versions =========================== Issue introduced in 4.7 with commit 8eb30be0352d09165e94a41fef1c7b994dca0714 and fixed in 5.4.301 with commit 566f8d5c8a443f2dd69c5460fdec43ed1c870c65 Issue introduced in 4.7 with commit 8eb30be0352d09165e94a41fef1c7b994dca0714 and fixed in 5.10.246 with commit 11f6066af3bfb8149aa16c42c0b0c5ea5b199a94 Issue introduced in 4.7 with commit 8eb30be0352d09165e94a41fef1c7b994dca0714 and fixed in 5.15.196 with commit 402b6985e872b4cf394bbbf33b503947a326a6cb Issue introduced in 4.7 with commit 8eb30be0352d09165e94a41fef1c7b994dca0714 and fixed in 6.1.158 with commit 10fe967efe73c610e526ff7460581610633dee9c Issue introduced in 4.7 with commit 8eb30be0352d09165e94a41fef1c7b994dca0714 and fixed in 6.6.114 with commit 48294a67863c9cfa367abb66bbf0ef6548ae124f Issue introduced in 4.7 with commit 8eb30be0352d09165e94a41fef1c7b994dca0714 and fixed in 6.12.55 with commit eeb4345488672584db4f8c20a1ae13a212ce31c4 Issue introduced in 4.7 with commit 8eb30be0352d09165e94a41fef1c7b994dca0714 and fixed in 6.17.5 with commit b6eb25d870f1a8ae571fd3da2244b71df547824b Issue introduced in 4.7 with commit 8eb30be0352d09165e94a41fef1c7b994dca0714 and fixed in 6.18-rc2 with commit 21f4d45eba0b2dcae5dbc9e5e0ad08735c993f16 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-2025-40173 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: include/net/ip_tunnels.h net/ipv4/ip_tunnel.c net/ipv6/ip6_tunnel.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/566f8d5c8a443f2dd69c5460fdec43ed1c870c65 https://git.kernel.org/stable/c/11f6066af3bfb8149aa16c42c0b0c5ea5b199a94 https://git.kernel.org/stable/c/402b6985e872b4cf394bbbf33b503947a326a6cb https://git.kernel.org/stable/c/10fe967efe73c610e526ff7460581610633dee9c https://git.kernel.org/stable/c/48294a67863c9cfa367abb66bbf0ef6548ae124f https://git.kernel.org/stable/c/eeb4345488672584db4f8c20a1ae13a212ce31c4 https://git.kernel.org/stable/c/b6eb25d870f1a8ae571fd3da2244b71df547824b https://git.kernel.org/stable/c/21f4d45eba0b2dcae5dbc9e5e0ad08735c993f16