UAF Bug in macsec for real_dev in Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1002992: macsec: fix UAF bug for real_dev. Affects Kernel versions >= 2bce1ebed17da54c65042ec2b962e3234bad5b47, < 78933cbc143b82d02330e00900d2fd08f2682f4e. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Kernel is a critical component of the Linux operating system that manages system resources and facilitates communication between hardware and software. It provides essential functionality for the proper functioning of the system. The macsec module in the Kernel is responsible for implementing MACsec (Media Access Control Security), a security standard for wired Ethernet networks. MACsec provides secure communication by encrypting and authenticating network traffic at the link layer. However, a Use-After-Free (UAF) bug has been discovered in the macsec module specifically for the real_dev attribute.

Vulnerability Detail

The UAF bug in macsec for real_dev can lead to potential security vulnerabilities. A UAF bug occurs when a program uses a pointer to an object after it has been freed from memory. In this case, the bug affects the real_dev attribute in the macsec module. An attacker could exploit this vulnerability to execute arbitrary code or cause a denial-of-service (DoS) condition. The bug was introduced in version v5.4 of the Linux Kernel and has been fixed in version v5.17.15.

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

As a workaround, users can disable the macsec module if it is not required for their system. This can be done by removing or blacklisting the macsec module from the Kernel configuration. However, it is important to note that disabling the macsec module may impact the security of the system, especially if MACsec functionality is needed.

Conclusion

The UAF bug in macsec for real_dev is a critical vulnerability that can potentially lead to security breaches and system instability. It is recommended to update the Linux Kernel to version v5.17.15 or later to fix this vulnerability. Users can also consider disabling the macsec module as a temporary workaround, but this may impact system security. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The macsec module in the Kernel is responsible for implementing MACsec (Media Access Control Security), a security standard for wired Ethernet networks. MACsec provides secure communication by encrypting and authenticating network traffic at the link layer.

A Use-After-Free (UAF) bug occurs when a program uses a pointer to an object after it has been freed from memory. This can lead to potential security vulnerabilities and can be exploited by attackers to execute arbitrary code or cause a denial-of-service (DoS) condition.

The UAF bug in macsec for real_dev can potentially allow attackers to execute arbitrary code or cause a denial-of-service (DoS) condition. This can lead to unauthorized access, data breaches, system crashes, or other security incidents.

To fix the UAF bug, it is recommended to update the Linux Kernel to version v5.17.15 or later. This fix can be obtained by pulling the latest updates from the official Linux Kernel repository.

Yes, as a workaround, users can disable the macsec module if it is not required for their system. This can be done by removing or blacklisting the macsec module from the Kernel configuration. However, it is important to note that disabling the macsec module may impact the security of the system, especially if MACsec functionality is needed.

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