# CVE-2026-23440: net/mlx5e: Fix race condition during IPSec ESN update

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2026-04-03T15:15:24.596Z
- **Modified:** 2026-10-19T19:17:48.243Z

## Who should check

- Anyone running Linux \>= fef06678931ff67b158d337b581e5cf5ca40a3a3, \< 3dffc083292e6872787bd7e34b957627622f9af4; \>= fef06678931ff67b158d337b581e5cf5ca40a3a3, \< 2051c709dce92da3550040aa7949cd5a9c89b14e; \>= fef06678931ff67b158d337b581e5cf5ca40a3a3, \< 96c9c25b74686ac2de15921c9ad30c5ef13af8cd; \>= fef06678931ff67b158d337b581e5cf5ca40a3a3, \< 8d625c15471fb8780125eaef682983a96af77bdc; \>= fef06678931ff67b158d337b581e5cf5ca40a3a3, \< beb6e2e5976a128b0cccf10d158124422210c5ef
- Anyone running Linux 6.4

## Description

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.

## Affected and fixed versions

- Linux: \>= fef06678931ff67b158d337b581e5cf5ca40a3a3, \< 3dffc083292e6872787bd7e34b957627622f9af4; \>= fef06678931ff67b158d337b581e5cf5ca40a3a3, \< 2051c709dce92da3550040aa7949cd5a9c89b14e; \>= fef06678931ff67b158d337b581e5cf5ca40a3a3, \< 96c9c25b74686ac2de15921c9ad30c5ef13af8cd; \>= fef06678931ff67b158d337b581e5cf5ca40a3a3, \< 8d625c15471fb8780125eaef682983a96af77bdc; \>= fef06678931ff67b158d337b581e5cf5ca40a3a3, \< beb6e2e5976a128b0cccf10d158124422210c5ef (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-23440. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23440.md
Affected: Linux >= fef06678931ff67b158d337b581e5cf5ca40a3a3, < 3dffc083292e6872787bd7e34b957627622f9af4; >= fef06678931ff67b158d337b581e5cf5ca40a3a3, < 2051c709dce92da3550040aa7949cd5a9c89b14e; >= fef06678931ff67b158d337b581e5cf5ca40a3a3, < 96c9c25b74686ac2de15921c9ad30c5ef13af8cd; >= fef06678931ff67b158d337…
Fixed in: Linux 3dffc083292e6872787bd7e34b957627622f9af4, Linux 2051c709dce92da3550040aa7949cd5a9c89b14e, Linux 96c9c25b74686ac2de15921c9ad30c5ef13af8cd, Linux 8d625c15471fb8780125eaef682983a96af77bdc

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-23440 being exploited?

There is no confirmed exploitation: CVE-2026-23440 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-23440?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-23440?

Linux \>= fef06678931ff67b158d337b581e5cf5ca40a3a3, \< 3dffc083292e6872787bd7e34b957627622f9af4; \>= fef06678931ff67b158d337b581e5cf5ca40a3a3, \< 2051c709dce92da3550040aa7949cd5a9c89b14e; \>= fef06678931ff67b158d337b581e5cf5ca40a3a3, \< 96c9c25b74686ac2de15921c9ad30c5ef13af8cd; \>= fef06678931ff67b158d337b581e5cf5ca40a3a3, \< 8d625c15471fb8780125eaef682983a96af77bdc; \>= fef06678931ff67b158d337b581e5cf5ca40a3a3, \< beb6e2e5976a128b0cccf10d158124422210c5ef; Linux 6.4.

### Is there a fix for CVE-2026-23440?

Yes. Fixed in Linux 3dffc083292e6872787bd7e34b957627622f9af4, Linux 2051c709dce92da3550040aa7949cd5a9c89b14e, Linux 96c9c25b74686ac2de15921c9ad30c5ef13af8cd, Linux 8d625c15471fb8780125eaef682983a96af77bdc. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-23440?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/3dffc083292e6872787bd7e34b957627622f9af4>
- patch: <https://git.kernel.org/stable/c/2051c709dce92da3550040aa7949cd5a9c89b14e>
- patch: <https://git.kernel.org/stable/c/96c9c25b74686ac2de15921c9ad30c5ef13af8cd>
- patch: <https://git.kernel.org/stable/c/8d625c15471fb8780125eaef682983a96af77bdc>
- patch: <https://git.kernel.org/stable/c/beb6e2e5976a128b0cccf10d158124422210c5ef>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-23440>

HTML: <https://flawdb.com/CVE-2026-23440> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-23440>
