Skip to contentSkip to conversation

CVE-2026-98497: net/mlx5e: fix swapped IPv6 IPsec policy masks

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

lore
Share & tools
lore
#0 lore raw

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

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