CVE-2026-98497 PUBLISHED

net/mlx5e: fix swapped IPv6 IPsec policy masks

Assigner: Linux
Reserved: 25.09.2026 Published: 18.10.2026 Updated: 18.10.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from ca7992f52c2cb5ef61fbfa590a2d7c926f290237 to 3803dc8477f08e0dac4050cafee0de43f32727be (excl.)
  • affected from ca7992f52c2cb5ef61fbfa590a2d7c926f290237 to e73f832f0a7b2c6ea45b2124c732d639be97b547 (excl.)
  • affected from ca7992f52c2cb5ef61fbfa590a2d7c926f290237 to 10de7ed8ef4840da9ca21de4c29578657ac367db (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.15 is affected
  • unaffected from 0 to 6.15 (excl.)
  • unaffected from 6.18.55 to 6.18.* (incl.)
  • unaffected from 7.2.9 to 7.2.* (incl.)
  • unaffected from 7.3-rc5 to * (incl.)

References