Skip to contentSkip to conversation

CVE-2026-23441: net/mlx5e: Prevent concurrent access to IPSec ASO context

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 3

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

net/mlx5e: Prevent concurrent access to IPSec ASO context

The query or updating IPSec offload object is through Access ASO WQE. The driver uses a single mlx5e_ipsec_aso struct for each PF, which contains a shared DMA-mapped context for all ASO operations.

A race condition exists because the ASO spinlock is released before the hardware has finished processing WQE. If a second operation is initiated immediately after, it overwrites the shared context in the DMA area.

When the first operation's completion is processed later, it reads this corrupted context, leading to unexpected behavior and incorrect results.

This commit fixes the race by introducing a private context within each IPSec offload object. The shared ASO context is now copied to this private context while the ASO spinlock is held. Subsequent processing uses this saved, per-object context, ensuring its integrity is maintained.

The Linux kernel CVE team has assigned CVE-2026-23441 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.2 with commit 1ed78fc033074c55221a80498204c539a3696877 and fixed in 6.6.130 with commit 99aaee927800ea00b441b607737f9f67b1899755
	Issue introduced in 6.2 with commit 1ed78fc033074c55221a80498204c539a3696877 and fixed in 6.12.78 with commit c3db55dc0f3344b62da25b025a8396d78763b5fa
	Issue introduced in 6.2 with commit 1ed78fc033074c55221a80498204c539a3696877 and fixed in 6.18.20 with commit 2c6a5be0aee5a44066f68a332c30650900e32ad4
	Issue introduced in 6.2 with commit 1ed78fc033074c55221a80498204c539a3696877 and fixed in 6.19.10 with commit 6834d196107d5267dcad31b44211da7698e8f618
	Issue introduced in 6.2 with commit 1ed78fc033074c55221a80498204c539a3696877 and fixed in 7.0-rc5 with commit 99b36850d881e2d65912b2520a1c80d0fcc9429a

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-23441

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/99aaee927800ea00b441b607737f9f67b1899755
	https://git.kernel.org/stable/c/c3db55dc0f3344b62da25b025a8396d78763b5fa
	https://git.kernel.org/stable/c/2c6a5be0aee5a44066f68a332c30650900e32ad4
	https://git.kernel.org/stable/c/6834d196107d5267dcad31b44211da7698e8f618
	https://git.kernel.org/stable/c/99b36850d881e2d65912b2520a1c80d0fcc9429a