CVE-2026-143193: net/mlx5e: kTLS, Fix missing error unwind when enabling RX offload
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5e: kTLS, Fix missing error unwind when enabling RX offload
Since commit abed42f9cd80 ("net/mlx5e: Conditionally create async ICOSQ"), the async ICOSQ is only created when an XDP program is attached or priv->ktlsrxwasenabled is set. When TLS RX offload is enabled for the first time, mlx5ektlssetfeaturerx() sets the flag and reopens the channels so that they get the queue, but it ignores the return value of mlx5esafereopenchannels().
If the reopen fails, mlx5esafeswitchparams() keeps the old channels, which have no async ICOSQ, while NETIFFHWTLSRX is still reported as enabled. The next offloaded RX connection then dereferences the NULL c->asyncicosq in postrxparamwqes(). Enabling the feature again does not help, as the flag is already set and the reopen is skipped.
Propagate the error, clear the flag and destroy the accel TCP flow tables again, so that the feature stays disabled and the next attempt retries the reopen.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger the NULL dereference?
TLS RX hardware offload must be enabled for the first time, and the channel reopen required to create the async ICOSQ must fail. A subsequent offloaded RX connection can then dereference a NULL async ICOSQ.
Does retrying TLS RX offload enablement recover from a failed channel reopen?
No. In the affected behavior, the enablement flag remains set after the failed reopen, so another enable attempt skips the reopen and does not create the missing queue.
What is the effect of the fix when channel reopening fails?
The fix propagates the reopen error, clears the TLS RX enabled flag, and destroys the acceleration TCP flow tables. This keeps the feature disabled and allows a later enablement attempt to retry the channel reopen.