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

net/mlx5e: Fix eswitch mode block underflow on IPsec acquire SA

mlx5e_xfrm_add_state() handles acquire-flow temporary SAs by allocating
software state and skipping hardware offload setup.

That path jumps to the common success label before taking the eswitch mode
block. After tunnel-mode validation was moved earlier, the common success
label unconditionally calls mlx5_eswitch_unblock_mode(). For acquire SAs,
this decrements esw->offloads.num_block_mode without a matching increment.

Return directly after installing the acquire SA offload handle, so only the
paths that successfully called mlx5_eswitch_block_mode() call the matching
unblock.
Published: 2026-07-25
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A code path in the Linux kernel’s mlx5e networking driver mishandles a counter that tracks how many eswitch mode operations are blocking a device. When an IPsec acquisition security association is processed, the counter is decremented without a corresponding increment, causing an underflow and resulting in an incorrect negative reference count. This faulty state can lead the kernel to crash, which disables the affected node and provides a denial‑of‑service condition. The flaw is a classic example of integer underflow and improper counter management, aligning with CWE‑191.

Affected Systems

All Linux kernel releases that incorporate the mlx5e driver and contain the eswitch IPsec offload path before the patch is applied are vulnerable. The vulnerability affects any kernel built from the commit range referenced in the provided repository links, so systems running older or unpatched kernel versions that enable eswitch mode for IPsec offload fall into the affected set. No specific vendor or product version identifiers are listed beyond the Linux kernel itself.

Risk and Exploitability

The CVSS score of 8.8 reflects a high severity impact, but the EPSS score is listed as < 1% and the vulnerability is not included in the CISA KEV catalog, indicating that real-world exploitation is currently considered unlikely. Based on the description, it is inferred that successful compromise would generally require the ability to influence IPsec configuration or inject acquisition requests that reach the driver, which typically limits the threat to users with local or privileged access. However, hosts that accept external IPsec traffic and enable eswitch mode could be exposed if an attacker can craft traffic that triggers the offload path.

Generated by OpenCVE AI on August 4, 2026 at 14:11 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a Linux kernel release that includes the corrected eswitch block/unblock logic from the referenced commits and deploy the update as soon as possible.
  • If a kernel update cannot be performed immediately, reconfigure the kernel to disable eswitch mode or IPsec offload entirely, thereby removing the paths that exercise the faulty counter.
  • Adjust or disable IPsec acquisition mechanisms that rely on the offload path, ensuring that all SAs are validated before reaching the driver or that acquire‑only SAs are not used.

Generated by OpenCVE AI on August 4, 2026 at 14:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
History

Mon, 03 Aug 2026 18:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-399

Thu, 30 Jul 2026 00:15:00 +0000


Mon, 27 Jul 2026 05:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-399
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}


Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Fix eswitch mode block underflow on IPsec acquire SA mlx5e_xfrm_add_state() handles acquire-flow temporary SAs by allocating software state and skipping hardware offload setup. That path jumps to the common success label before taking the eswitch mode block. After tunnel-mode validation was moved earlier, the common success label unconditionally calls mlx5_eswitch_unblock_mode(). For acquire SAs, this decrements esw->offloads.num_block_mode without a matching increment. Return directly after installing the acquire SA offload handle, so only the paths that successfully called mlx5_eswitch_block_mode() call the matching unblock.
Title net/mlx5e: Fix eswitch mode block underflow on IPsec acquire SA
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:42:35.590Z

Reserved: 2026-07-19T15:36:31.794Z

Link: CVE-2026-64522

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-07-25T10:17:38.497

Modified: 2026-07-27T05:16:56.213

Link: CVE-2026-64522

cve-icon Redhat

Severity : Low

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64522 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T14:15:10Z

Weaknesses
  • CWE-191

    Integer Underflow (Wrap or Wraparound)