net: macsec: Fix offload support for NETDEV_UNREGISTER event
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: macsec: Fix offload support for NETDEV_UNREGISTER event
Current macsec netdev notify handler handles NETDEV_UNREGISTER event by releasing relevant SW resources only, this causes resources leak in case of macsec HW offload, as the underlay driver was not notified to clean it's macsec offload resources.
Fix by calling the underlay driver to clean it's relevant resources by moving offload handling from macsec_dellink() to macsec_common_dellink() when handling NETDEV_UNREGISTER event.
From the CVE record · Linux
The Linux kernel's macsec handler does not notify the underlay driver to clean up hardware-offload resources when a network device is unregistered, causing a resource leak. The input does not establish whether an attacker can trigger this, or specify access or interaction requirements.
Engineers running Linux kernels with macsec hardware offload should check their systems; affected versions are not specified.