VDB

CVE-2026-23440

CVE-2026-23440 PUBLISHED CVSS 7.5 HIGH

net/mlx5e: Fix race condition during IPSec ESN update

Reported by linux · Published April 3, 2026

In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Fix race condition during IPSec ESN update In IPSec full offload mode, the device reports an ESN (Extended Sequence Number) wrap event to the driver. The driver validates this event by querying the IPSec ASO and checking that the esn_event_arm field is 0x0, which indicates an event has occurred. After handling the event, the driver must re-arm the context by setting esn_event_arm back to 0x1. A race condition exists in this handling path. After validating the event, the driver calls mlx5_accel_esp_modify_xfrm() to update the kernel's xfrm state. This function temporarily releases and re-acquires the xfrm state lock. So, need to acknowledge the event first by setting esn_event_arm to 0x1. This prevents the driver from reprocessing the same ESN update if the hardware sends events for other reason. Since the next ESN update only occurs after nearly 2^31 packets are received, there's no risk of missing an update, as it will happen long after this handling has finished. Processing the event twice causes the ESN high-order bits (esn_msb) to be incremented incorrectly. The driver then programs the hardware with this invalid ESN state, which leads to anti-replay failures and a complete halt of IPSec traffic. Fix this by re-arming the ESN event immediately after it is validated, before calling mlx5_accel_esp_modify_xfrm(). This ensures that any spurious, duplicate events are correctly ignored, closing the race window.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
perf6.12Amazon Linux1:6.12.79-101.147.amzn2023
perf6.18Amazon Linux1:6.18.20-20.229.amzn2023
kernel6.12Amazon Linux1:6.12.79-101.147.amzn2023

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
LinuxLinuxfef06678931ff67b158d337b581e5cf5ca40a3a3, fef06678931ff67b158d337b581e5cf5ca40a3a3, fef06678931ff67b158d337b581e5cf5ca40a3a3
LinuxLinux6.4, 0, 6.6.130
amazon:2023perf6.120
amazon:2023perf6.180
amazon:2023kernel6.120
linuxlinux_kernel6.4, 6.4, 6.4
amazon:2023kernel6.180
amazon:2023bpftool6.120
amazon:2023kernel6.12-modules-extra-common0
LinuxLinux6.6.130, *, 7.0
amazon:2023kernel6.18-libbpf-static0
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel6.12-headers0
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel-livepatch-6.12.79-101.1470
amazon:2023python3-perf6.120
amazon:2023kernel6.18-libbpf-devel0
amazon:2023kernel6.18-devel0
amazon:2023kernel6.12-modules-extra0

…and 12 more

Timeline

  • Apr 3, 2026 CVE Published
  • May 18, 2026 EPSS Score (30 in total, the first dated here)
  • Jun 2, 2026 Security Advisory (100 in total, the first dated here)
  • Jun 13, 2026 Coalition ESS Score
  • Aug 9, 2026 CVE Updated
  • Aug 11, 2026 Distribution Patch (93 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-23440
vulnetix vdb fixes CVE-2026-23440

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-23440/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›