Description
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->ktls_rx_was_enabled is set. When TLS RX offload is enabled for the first time, mlx5e_ktls_set_feature_rx() sets the flag and reopens the channels so that they get the queue, but it ignores the return value of mlx5e_safe_reopen_channels(). If the reopen fails, mlx5e_safe_switch_params() keeps the old channels, which have no async ICOSQ, while NETIF_F_HW_TLS_RX is still reported as enabled. The next offloaded RX connection then dereferences the NULL c->async_icosq in post_rx_param_wqes(). 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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
abed42f9cd809bf790c415c86f6dc41a3f69c91b to < 968d316185ea83598cdff7bf7c6d3b9a90e1d508affectedabed42f9cd809bf790c415c86f6dc41a3f69c91b to < 343672bad64153e895d201ff6d3dfaf15c22682eaffected
Linux Linux
Default version status: affected
7.0affected0 to < 7.0unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected