Vulnerability record
net/mlx5e: Fix ipsec core device access during profile changes
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5e: Fix ipsec core device access during profile changes
Devlink E-Switch mode changes replace the netdev profile without unregistering the netdev. XFRM state and policy creation can therefore run while mlx5e_priv_cleanup() clears priv with memset() or mlx5e_priv_init() initializes it again. Accesses to priv->mdev can observe NULL or a torn pointer, and repeated loads may return different values.
Read priv->mdev once in each add callback and use the saved pointer throughout the callback, including error unwinding.…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources