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

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2026-10-18T15:16:28.852Z
- Modified: 2026-10-24T14:16:44.467Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from ca7992f52c2cb5ef61fbfa590a2d7c926f290237 before 3803dc8477f08e0dac4050cafee0de43f32727be; from ca7992f52c2cb5ef61fbfa590a2d7c926f290237 before e73f832f0a7b2c6ea45b2124c732d639be97b547; from ca7992f52c2cb5ef61fbfa590a2d7c926f290237 before 10de7ed8ef4840da9ca21de4c29578657ac367db; 6.15 (not affected: before 6.15; from 6.18.55 up to 6.18.*; from 7.2.9 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/3803dc8477f08e0dac4050cafee0de43f32727be>
- <https://git.kernel.org/stable/c/e73f832f0a7b2c6ea45b2124c732d639be97b547>
- <https://git.kernel.org/stable/c/10de7ed8ef4840da9ca21de4c29578657ac367db>

## Sources

- CVE List: [CVE-2026-98497](https://www.cve.org/CVERecord?id=CVE-2026-98497), CVE Terms of Use, modified 2026-10-24
- NVD: [CVE-2026-98497](https://nvd.nist.gov/vuln/detail/CVE-2026-98497), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-98497 · Whole record: https://cve.day/CVE-2026-98497.json · Rebuilt by cve.day 2026-11-25T22:59:45.202Z
