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 D21C435DA69 for ; Sat, 25 Apr 2026 08:47:58 +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=1777106878; cv=none; b=rmeX8LrVZh5uMNegZugvct4eXirYnjj6vioR0PDC7Ga7lVI1OUoFcrRGZ9Na6XV/PuPzd5AIBUYiKxi6kazPFX5DhFQAK5EWPV9pQt5/6u3gppXHXAXzjoA+B5QuKETi5ESX7glpZo2qBY8F7ZPDja7AeHWy3y6Bzgu4unRAAJo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777106878; c=relaxed/simple; bh=10hMrvwFM5hBXRvCyeMta+ntBZwqrLNW8Jyp4mdoszQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JrrGfftJNMQqUcC8EQaMXromJTusFouTHKvqdUcu4I0ZcEhjy0FPCo8h/Tvq/CkxlKQE80WwYRpjx+ry7SwuhYo7U4Y500DfqcxrT4RyYMaaN8fJ43M/XBaet7Kdxrd2QrK1Y8oFvod4Ozw2rs4PhSeyB2AUu8y4z9Ow592OHNM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=l+bmKfQP; 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="l+bmKfQP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D58FC2BCB0; Sat, 25 Apr 2026 08:47:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777106878; bh=10hMrvwFM5hBXRvCyeMta+ntBZwqrLNW8Jyp4mdoszQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=l+bmKfQPxIpF76UaohW4xf4/gH/FnOo0ue0lXiGldM55WMp0kuirNvDR2OWXqJq7M PWTXgwa1o5EYqfhBeNbwTK70ufXx8IWihjgeK6UqwC69p5hsAiSzDiZzOKjYB3UT1A Jqkykh6l3kaG/Wj23TMdy/08S5yaBslbdjYWLQGA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31685: netfilter: ip6t_eui64: reject invalid MAC header for all packets Date: Sat, 25 Apr 2026 10:46:52 +0200 Message-ID: <2026042545-CVE-2026-31685-3fcc@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2738; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+F8LWoQkseSZ7chpWJ2TuCk6qJS3eF40BCWeM6Lerf4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlv6ss8Y0oqNCqLpLw6LDPPdjrNcp4ynY3fYv3SWXG/b 2moxt7siGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIl49zPMZgu0zJvE6VM+WVjo v/SyCTtexbo/Y5grohy/7N69hROOLFtTKsVvJnZSd88lAA== 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: netfilter: ip6t_eui64: reject invalid MAC header for all packets `eui64_mt6()` derives a modified EUI-64 from the Ethernet source address and compares it with the low 64 bits of the IPv6 source address. The existing guard only rejects an invalid MAC header when `par->fragoff != 0`. For packets with `par->fragoff == 0`, `eui64_mt6()` can still reach `eth_hdr(skb)` even when the MAC header is not valid. Fix this by removing the `par->fragoff != 0` condition so that packets with an invalid MAC header are rejected before accessing `eth_hdr(skb)`. The Linux kernel CVE team has assigned CVE-2026-31685 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.83 with commit 9eda5478746ef7dc0e4e537b5a5e4b0ca1027091 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.24 with commit 807d6ee15804df6f01a35c910f09612e858739a6 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.19.14 with commit 309ae3e9a51a69699ca94eac5fac5688fa562d55 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.0 with commit fdce0b3590f724540795b874b4c8850c90e6b0a8 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-31685 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/netfilter/ip6t_eui64.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/9eda5478746ef7dc0e4e537b5a5e4b0ca1027091 https://git.kernel.org/stable/c/807d6ee15804df6f01a35c910f09612e858739a6 https://git.kernel.org/stable/c/309ae3e9a51a69699ca94eac5fac5688fa562d55 https://git.kernel.org/stable/c/fdce0b3590f724540795b874b4c8850c90e6b0a8