Memory Leak in __mdiobus_register in Kernel

Kernel Updated 02 Oct 2025

Summary

14/11/2021
N/A
No i
Unrated
Not published

GSD-2021-1002188: net: mdiobus: Fix memory leak in __mdiobus_register. Affects Kernel versions < ab609f25d19858513919369ff3d9a63c02cd9e2e. 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 Kernel is a critical component of the Linux operating system that manages the system's resources and facilitates communication between hardware and software. It provides essential functionality for networking, device drivers, and other core operations. The __mdiobus_register function is part of the mdiobus subsystem, which handles the management of Ethernet PHY devices. This vulnerability specifically affects the __mdiobus_register function and can lead to a memory leak.

Vulnerability Detail

The vulnerability in __mdiobus_register function in the Kernel can result in a memory leak. When a network device is registered, the function allocates memory for the mdiobus structure but fails to free it in certain error paths. This can lead to a continuous accumulation of memory, eventually exhausting system resources. An attacker could potentially exploit this vulnerability to cause a denial-of-service (DoS) condition by repeatedly triggering the error paths and consuming excessive memory.

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 avoid the memory leak by preventing the triggering of the error paths that lead to the memory allocation without deallocation. This can be achieved by avoiding specific actions or configurations that trigger the error conditions. However, applying the official fix by updating the Kernel is the recommended approach.

Conclusion

The memory leak vulnerability in the __mdiobus_register function of the Kernel can lead to the exhaustion of system resources and potentially cause a denial-of-service (DoS) condition. It is crucial to update the Kernel to version v5.15 or later to apply the necessary fix. Applying the official fix will ensure that memory is properly managed and system resources are not unnecessarily consumed. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can result in a memory leak, leading to the exhaustion of system resources. This can cause performance degradation and potentially result in a denial-of-service (DoS) condition.

An attacker can exploit this vulnerability by repeatedly triggering the error paths that cause memory allocation without deallocation. By consuming excessive memory, the attacker can exhaust system resources and cause a denial-of-service (DoS) condition.

There is no known evidence of this vulnerability being actively exploited at this time. However, it is important to apply the fix to prevent potential exploitation.

The vulnerability is present in versions of the Kernel prior to v5.15. Updating to version v5.15 or later will resolve the issue.

For more details about this vulnerability, including the specific code changes that address the issue, you can refer to the source link provided in the vulnerability details.

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