UAF bug in macsec for real_dev

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1002648: macsec: fix UAF bug for real_dev. Affects Kernel versions >= 2bce1ebed17da54c65042ec2b962e3234bad5b47, < d130282179aa6051449ac8f8df1115769998a665. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback