CVE-2026-64522 PUBLISHED

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

Assigner: Linux
Reserved: 19.07.2026 Published: 25.07.2026 Updated: 25.07.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 22239eb258bc1e6ccdb2d3502fce1cc2b2a88386 to b5bd4249e430f5963d559708ee96a671716d2400 (excl.)
  • affected from 22239eb258bc1e6ccdb2d3502fce1cc2b2a88386 to ecafd8284e527666e83261e6e57a7c7341d591cb (excl.)
  • affected from 22239eb258bc1e6ccdb2d3502fce1cc2b2a88386 to abe003b33223ff33552f291644bf35d9c2f992fb (excl.)
  • Version 993c4ba71596c30418ba5a0ddcf4f9c2f431466a is affected
  • affected from 6.17.4 to 6.18 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.18 is affected
  • unaffected from 0 to 6.18 (excl.)
  • unaffected from 6.18.34 to 6.18.* (incl.)
  • unaffected from 7.0.11 to 7.0.* (incl.)
  • unaffected from 7.1 to * (incl.)

References