Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 323AC4C6F04 for ; Sun, 18 Oct 2026 15:23:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792336982; cv=none; b=qcLEVocbl87P0YKWs9alpWapPtmIRBaSBDPpXA5G+dSn4lc6OvFNDpFDAOSTTDtf+DlfAnAouT+WqGJQs1OOVct5cT/hvaASTc/DpHlwpCm+tdOa6a7TbR554OCR2BXB3C+w7hEdSmBsDvNHglTyLY5FHAJSCGlGkIwe6JSmQy4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792336982; c=relaxed/simple; bh=r5SBV2xm2i6wQD44ufsq6vL/sTJ6GbgH1W4iqp0R25s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ew0HF7i1UFgOlr4kpu6kcFAsrEJ25u6SWJxy2zC4CkMY+4886BeAU59vOJovnuJrqcEgEWrvYqGrMYNi2CIGxD+lvEoN8eO7LxrDKl70/XdRwAK7p6TrwaXd32r0K0R2/j8DgmAnP2IsNNnlfr9IKtKEqFvCxeZLdYZTOTUcK1U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TJOsazMe; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="TJOsazMe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D6261F000C4; Sun, 18 Oct 2026 15:22:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792336981; bh=q6EEDmmwxDzDJhGHLvkLKhc0NxzI2bSRyvbIhbqNCeE=; h=From:To:Cc:Subject:Date:Reply-To; b=TJOsazMeCuM6clkLgx5le/RnNGgmmvYfJH8rpzUZ/z36jvgmrZqkC4vm/PzHS53YC hdNlBE+Czn7+XeVG4ZplbwJ6RV08ZinE2/aoB+NAj8I8synI/UFooPdfEftDfKWeO3 SX4O5DTclUwqOr/tvUt4qr57HZY3qOyLpqL/lFd0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98497: net/mlx5e: fix swapped IPv6 IPsec policy masks Date: Sun, 18 Oct 2026 17:16:01 +0200 Message-ID: <2026101817-CVE-2026-98497-f49e@gregkh> X-Mailer: git-send-email 2.56.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=2541; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oqQOGSB9x6kqqlOwgop8ehagOOeuHRho48/WoHnIXXk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHrWa/z15SjQ4afm6qf6bjs75vuhEmb6eaX2Sy9wei UzvRq/sjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIkQjD/ADD/B7Dhs3PPxyw bVr8oXHqxvT9KQzzPQN4pxsdPTynpmiV5YZf7dvOCAW0AgA= 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/mlx5e: fix swapped IPv6 IPsec policy masks IPv6 XFRM policies may use different source and destination prefix lengths. mlx5e_ipsec_policy_mask() builds the corresponding masks independently, but setup_fte_addr6() installs each mask in the opposite address field. When the prefix lengths differ, this makes the source match use the destination prefix and the destination match use the source prefix. The resulting hardware rule can both miss traffic covered by the policy and match traffic outside it. Install each mask in its corresponding match field. The Linux kernel CVE team has assigned CVE-2026-98497 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit ca7992f52c2cb5ef61fbfa590a2d7c926f290237 and fixed in 6.18.55 with commit 3803dc8477f08e0dac4050cafee0de43f32727be Issue introduced in 6.15 with commit ca7992f52c2cb5ef61fbfa590a2d7c926f290237 and fixed in 7.2.9 with commit e73f832f0a7b2c6ea45b2124c732d639be97b547 Issue introduced in 6.15 with commit ca7992f52c2cb5ef61fbfa590a2d7c926f290237 and fixed in 7.3-rc5 with commit 10de7ed8ef4840da9ca21de4c29578657ac367db 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-98497 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/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.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/3803dc8477f08e0dac4050cafee0de43f32727be https://git.kernel.org/stable/c/e73f832f0a7b2c6ea45b2124c732d639be97b547 https://git.kernel.org/stable/c/10de7ed8ef4840da9ca21de4c29578657ac367db