Vulnerability in Kernel: Fix Underflow for the real_dev refcnt

Kernel Updated 02 Oct 2025

Summary

19/12/2021
N/A
No i
Unrated
Not published

GSD-2021-1002478: net: vlan: fix underflow for the real_dev refcnt. Affects Kernel versions >= e04a7a84bb77f9cdf4475340fe931389bc72331c, < 6e800ee43218a56acc93676bbb3d93b74779e555. 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 crucial component of the Linux operating system, responsible for managing system resources and facilitating communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The vulnerability in question affects the Kernel's VLAN (Virtual Local Area Network) implementation. VLANs allow for the segmentation of a physical network into multiple virtual networks, enabling better network management and security. However, a flaw in the VLAN code leads to an underflow in the reference count for the real_dev, which could have security implications.

Vulnerability Detail

The vulnerability arises from an underflow issue in the reference count for the real_dev in the VLAN code of the Kernel. This underflow can potentially be exploited by an attacker to manipulate the reference count and cause memory corruption or other security issues. The exact impact and attack vectors are yet to be proven, but it is crucial to address this vulnerability to ensure the integrity and security of the system. The vulnerability was introduced in Kernel version v5.10.80 and has been fixed in version v5.10.83.

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, if updating the Kernel is not immediately feasible, it is recommended to disable the use of VLANs or limit their usage to trusted networks only. This can be achieved by modifying network configurations to remove or restrict VLAN usage. However, this workaround should be considered temporary, and updating the Kernel to the fixed version is the recommended long-term solution.

Conclusion

In conclusion, the vulnerability in the Kernel's VLAN code poses a potential security risk due to an underflow issue in the reference count for the real_dev. It is crucial to update the Linux Kernel to version v5.10.83 or later to mitigate this vulnerability. Disabling or limiting the use of VLANs can serve as a temporary workaround. For further assistance and support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The exact impact of this vulnerability is yet to be proven. However, it has the potential to lead to memory corruption or other security issues, which could be exploited by attackers.

You can use the Vulert Playground at Vulert 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.

Yes, a temporary workaround is to disable the use of VLANs or limit their usage to trusted networks only. However, updating the Kernel to the fixed version is the recommended long-term solution.

The vulnerability was introduced in Kernel version v5.10.80 and has been fixed in version v5.10.83. Therefore, versions between v5.10.80 and v5.10.82 are affected.

You can find more information about this vulnerability in the GSD-2021-1002478 entry of the GSD Database maintained by the Cloud Security Alliance. The link to the entry is available in the references section of this report.

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