Memory Leak Vulnerability in Linux Kernel's VLAN Handling

linux Updated 02 Oct 2025

Summary

26/02/2025
N/A
Yes i
Medium
5.5

CVE-2022-49636: In the Linux kernel, the following vulnerability has been resolved: vlan: fix memory leak in vlan_newlink() Blamed commit added back a bug I fixed in commit 9bbd917e0bec ("vlan: fix memory leak in vlan_dev_set_egress_pri... Affects linux versions < 5.18.14-1. Fixed in 5.18.14-1. 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 Linux kernel is a core component of many operating systems, providing essential services for hardware management, process control, and system security. It supports a wide range of functionalities, including networking, file systems, and device drivers. The VLAN (Virtual Local Area Network) feature allows for network segmentation, improving performance and security. However, a recent vulnerability has been identified in the VLAN handling code, which can lead to memory leaks under certain conditions.

Vulnerability Detail

The vulnerability, identified as CVE-2022-49636, arises from a memory leak in the vlan_newlink() function within the Linux kernel. This issue occurs when a memory allocation fails during the execution of vlan_changelink() after previous allocations have succeeded. In such cases, the allocated memory is not properly freed, leading to potential memory exhaustion and degraded system performance. The problem was introduced by a commit that reintroduced a previously fixed bug, highlighting the importance of rigorous code review and testing.

How To Fix

Minimum fixed version

5.18.14-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the patch as soon as it is available.

Conclusion

The CVE-2022-49636 vulnerability in the Linux kernel's VLAN handling code poses a significant risk due to potential memory leaks. Users are strongly encouraged to update their systems to the latest patched version to mitigate this risk. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-49636 is a vulnerability in the Linux kernel that causes a memory leak in the VLAN handling code, potentially leading to system performance issues.

You can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in your software. You can check your application against this vulnerability using the Vulert playground without any signup.

The main risk is memory exhaustion, which can lead to degraded system performance and instability, especially in environments with limited resources.

Yes, a patch is available in version 5.18.14-1 of the Linux kernel. Users are advised to update to this version or later.

If an immediate update is not possible, monitor your system for unusual behavior and consider isolating affected services until a patch can be applied.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

5.18.14-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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