Linux: net/mlx5e: fix swapped IPv6 IPsec policy masks
What fixes it
- 3803dc8477f08e0dac4050cafee0de43f32727beLinuxCVE List
- 10de7ed8ef4840da9ca21de4c29578657ac367dbLinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
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.
Text from CVE List
Affected versions 8
- Linuxaffected: ca7992f52c2cb5ef61fbfa590a2d7c926f290237 before 3803dc8477f08e0dac4050cafee0de43f32727beCVE List
- Linuxaffected: ca7992f52c2cb5ef61fbfa590a2d7c926f290237 before e73f832f0a7b2c6ea45b2124c732d639be97b547CVE List
- Linuxaffected: ca7992f52c2cb5ef61fbfa590a2d7c926f290237 before 10de7ed8ef4840da9ca21de4c29578657ac367dbCVE List
- Linuxaffected: 6.15CVE List
- Linuxunaffected: all versions before 6.15CVE List
- Linuxunaffected: 6.18.55 through 6.18.*CVE List
- Linuxunaffected: 7.2.9 through 7.2.*CVE List
- Linuxunaffected: 7.3CVE List