macsec: fix UAF bug for real_dev
This is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven. This ID is fixed in Linux Kernel version v5.18.3 by commit d130282179aa6051449ac8f8df1115769998a665, it was introduced in version v5.4 by commit 2bce1ebed17da54c65042ec2b962e3234bad5b47. For more details please see the references link.