---
id: CVE-2026-98497
title: 'net/mlx5e: fix swapped IPv6 IPsec policy masks'
summary: |-
  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 corresp…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= ca7992f52c2cb5ef61fbfa590a2d7c926f290237 <
    3803dc8477f08e0dac4050cafee0de43f32727be
  - >-
    Linux >= ca7992f52c2cb5ef61fbfa590a2d7c926f290237 <
    e73f832f0a7b2c6ea45b2124c732d639be97b547
  - >-
    Linux >= ca7992f52c2cb5ef61fbfa590a2d7c926f290237 <
    10de7ed8ef4840da9ca21de4c29578657ac367db
  - Linux 6.15
published: '2026-10-18'
updated: '2026-10-18'
sourceUpdated: '2026-10-18T15:16:28.852Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-98497'
references:
  - url: 'https://git.kernel.org/stable/c/3803dc8477f08e0dac4050cafee0de43f32727be'
  - url: 'https://git.kernel.org/stable/c/e73f832f0a7b2c6ea45b2124c732d639be97b547'
  - url: 'https://git.kernel.org/stable/c/10de7ed8ef4840da9ca21de4c29578657ac367db'
tags:
  - cve.org
ingestedAt: '2026-10-18T15:45:12.289Z'
---

## Overview

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.

## Affected

- `Linux >= ca7992f52c2cb5ef61fbfa590a2d7c926f290237 < 3803dc8477f08e0dac4050cafee0de43f32727be`
- `Linux >= ca7992f52c2cb5ef61fbfa590a2d7c926f290237 < e73f832f0a7b2c6ea45b2124c732d639be97b547`
- `Linux >= ca7992f52c2cb5ef61fbfa590a2d7c926f290237 < 10de7ed8ef4840da9ca21de4c29578657ac367db`
- `Linux 6.15`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
