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-1002545: net: vlan: fix underflow for the real_dev refcnt. Affects Kernel versions >= 21032425c36ff85f16e72ca92193a8c401e4acd5, < f7fc72a508cf115c273a7a29350069def1041890. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 enable the segmentation of a physical network into multiple virtual networks, allowing for improved network management and security. However, a flaw in the VLAN code leads to an underflow issue in the reference count (refcnt) of the real_dev structure, potentially resulting in memory corruption or a use-after-free vulnerability.

Vulnerability Detail

The vulnerability arises from a programming error in the VLAN code of the Kernel. Specifically, an underflow occurs in the refcnt of the real_dev structure when certain operations are performed on VLAN interfaces. This underflow can lead to memory corruption or a use-after-free vulnerability, which could be exploited by an attacker to execute arbitrary code or cause a denial-of-service condition. The impact and attack plausibility of this vulnerability have not been proven yet. It is important to note that this vulnerability only affects Linux Kernel versions 5.15.3 to 5.15.5.

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 this vulnerability has been fixed in the latest version of the Kernel, there is no specific workaround available. Users are strongly encouraged to update their Kernel to the patched version.

Conclusion

In conclusion, the vulnerability in the Kernel's VLAN implementation, leading to an underflow in the real_dev refcnt, has been addressed in the Linux Kernel version 5.15.6. Users are advised to update their Kernel to the patched version to mitigate the risk of memory corruption or a use-after-free vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability could potentially lead to memory corruption or a use-after-free vulnerability. However, the actual impact and attack plausibility have not been proven yet.

This vulnerability affects Linux Kernel versions 5.15.3 to 5.15.5.

To fix this vulnerability, it is recommended to update your Kernel to version 5.15.6 or later.

The updated Kernel source code can be obtained from the official Linux Kernel repository at https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/

No, there is no specific workaround available for this vulnerability. Updating to the patched version of the Kernel is the recommended solution.

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