net/mlx5e: fix swapped IPv6 IPsec policy masks
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.557.2.97.3In 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.
From the CVE record · Linux
The Linux kernel's net/mlx5e driver installs IPv6 IPsec policy masks in the wrong address fields. When source and destination prefix lengths differ, the hardware rule can miss traffic covered by the policy and match traffic outside it. The input does not specify attacker access requirements or user interaction.
Engineers running Linux kernels that use net/mlx5e IPv6 IPsec policy offload should check their affected versions; none are specified in the input.