UAF bug in macsec for real_dev
Summary
GSD-2022-1002648: macsec: fix UAF bug for real_dev. Affects Kernel versions >= 2bce1ebed17da54c65042ec2b962e3234bad5b47, < d130282179aa6051449ac8f8df1115769998a665. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The macsec package is a component of the Linux Kernel, which provides support for MACsec (Media Access Control Security) protocol. MACsec is used to secure communication between network devices by encrypting and authenticating Ethernet frames. The real_dev function in macsec is responsible for handling the real network device associated with a MACsec device. However, a use-after-free (UAF) bug has been discovered in the real_dev function, which can lead to potential security vulnerabilities.
Vulnerability Detail
The UAF bug in the real_dev function of macsec can be exploited by an attacker to cause a denial-of-service (DoS) condition or potentially execute arbitrary code. The bug occurs when the real network device associated with a MACsec device is freed prematurely, but still referenced by the MACsec device. This can result in memory corruption and lead to unexpected behavior or system crashes. The vulnerability was introduced in version v5.4 of the Linux Kernel and has been fixed in version v5.18.3.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no known workaround for this vulnerability. It is recommended to apply the fix by updating the Linux Kernel.
Conclusion
The UAF bug in macsec's real_dev function can pose a significant security risk, potentially leading to DoS attacks or arbitrary code execution. It is crucial to update the Linux Kernel to version v5.18.3 or later to mitigate this vulnerability. If you need assistance with vulnerability remediation, please reach out to DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
MACsec (Media Access Control Security) is a protocol used to secure communication between network devices by encrypting and authenticating Ethernet frames.
A use-after-free bug occurs when a program continues to reference memory after it has been freed. This can lead to memory corruption and potentially be exploited by attackers.
The UAF bug in macsec can result in a denial-of-service (DoS) condition or potentially allow attackers to execute arbitrary code, leading to unauthorized access or control of the affected system.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will analyze it for any open-source vulnerabilities, including this one.
For further support on vulnerability remediation, you can contact info@devnack.com. They can provide guidance and assistance in fixing the UAF bug in macsec.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.