net/mlx5e: Fix macsec possible null dereference when updating MAC security entity (SecY)
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5e: Fix macsec possible null dereference when updating MAC security entity (SecY)
Upon updating MAC security entity (SecY) in hw offload path, the macsec security association (SA) initialization routine is called. In case of extended packet number (epn) is enabled the salt and ssci attributes are retrieved using the MACsec driver rx_sa context which is unavailable when updating a SecY property such as encoding-sa hence the null dereference. Fix by using the provided SA to set those attributes.
From the CVE record · Linux
The Linux kernel’s net/mlx5e MACsec hardware-offload path can dereference a null pointer when a MAC security entity (SecY) property is updated with extended packet numbers enabled. Someone able to cause such an update could trigger the dereference; the input does not specify whether this is possible remotely or what authorization is required.
Engineers running Linux kernels that use net/mlx5e MACsec hardware offload should check their kernels; affected versions are not specified.