CVE-2026-143189: net/mlx5e: IPsec, don't match upper proto selectors in crypto offload TX

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5e: IPsec, don't match upper proto selectors in crypto offload TX

The mentioned commit introduced support for upper protocol selectors (protocol & ports) to mlx5 IPsec offload. In crypto offload mode this causes offloaded TX SAs to stop matching traffic.

In txaddrule(), setupfteupperprotomatch() is called for all offload types and programs a match on the upper protocol (TCP/UDP) and ports. For crypto offload, setupfteesp() is then called and sets ipprotocol to ESP. The resulting rule requires both ESP as the IP protocol and TCP/UDP ports, which no packet can satisfy, so TX crypto offload silently stops working for such SAs.

In crypto offload mode the stack builds the ESP packet and the HW only encrypts it, so the SA rule should only match on the SPI. Move the setupfteupperprotomatch() call under the XFRMDEVOFFLOADPACKET case, where the rule matches the plaintext packet and upper protocol selectors apply.

The other three callers are unaffected: rxaddrulesaselector() is already only invoked for packet offload, and txaddpolicy() / rxaddpolicy() are only reachable in packet offload mode, since xfrm policy offload is exclusively of type XFRMDEVOFFLOADPACKET.

Affected Software

4 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.3.0<6.12.120
6.12.120
linux/kernel>=6.13.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.7
7.3.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.120
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.66
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.7

Event History

Dec 3, 2026
CVE Published
via MITRE·09:20 AM
Data Sourced
via MITRE·09:20 AM
Description
Data Sourced
via OSV·09:20 AM
DescriptionAffected Software
Data Sourced
via NVD·10:17 AM
Description

Frequently Asked Questions

1

Which systems are affected in practice?

Systems using mlx5 IPsec crypto offload for transmit security associations with upper-protocol selectors, such as TCP/UDP protocol or port selectors, are affected. Packet offload mode is not affected by this specific issue.

2

What is the operational impact?

Affected transmit security associations silently stop matching traffic for hardware crypto offload. The programmed rule requires an impossible combination of ESP as the IP protocol together with TCP/UDP ports.

3

How can I determine whether I am affected?

Check whether mlx5 IPsec is configured in crypto offload mode and whether transmit security associations use upper-protocol selectors. The issue is limited to TX crypto offload; the described receive selector and policy-rule paths are packet-offload-only and unaffected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203