Refcount Leak in bcma_mdio_mii_register in Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1002949: net: ethernet: bgmac: Fix refcount leak in bcma_mdio_mii_register. Affects Kernel versions >= 55954f3bfdacc5908515b0c306cea23e77fab740, < b51996e35bbfcc7a27d94dfeed5cc2429b2c0df4. 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 Your last release was probably never penetration tested 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 fundamental component of the Linux operating system that manages the system's resources and facilitates communication between hardware and software. It provides essential functionalities for networking, device drivers, and file systems. The vulnerability in question affects the bgmac Ethernet driver in the Kernel, specifically in the bcma_mdio_mii_register function.

Vulnerability Detail

The vulnerability is related to a refcount leak in the bcma_mdio_mii_register function of the bgmac Ethernet driver. This issue can lead to a resource leak, potentially causing memory corruption or exhaustion. An attacker may be able to exploit this vulnerability to execute arbitrary code, escalate privileges, or cause a denial-of-service condition. The vulnerability was introduced in version 4.8 of the Kernel and has been fixed in version 5.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

If updating the Kernel is not immediately feasible, users can mitigate the risk by disabling the affected bgmac Ethernet driver or using an alternative driver if available. However, it is strongly advised to apply the official patch by updating to the fixed version of the Kernel as soon as possible.

Conclusion

The refcount leak vulnerability in the bcma_mdio_mii_register function of the bgmac Ethernet driver in the Kernel can pose significant security risks. It is recommended to update the Kernel to version 5.17.15 or later to address this vulnerability. Users can also use the Vulert Playground to check if their systems are affected and receive real-time alerts for open-source vulnerabilities. For further support and assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability can potentially allow an attacker to execute arbitrary code, escalate privileges, or cause a denial-of-service condition.

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 to the playground, and it will provide real-time alerts for open-source vulnerabilities, including this one.

Yes, users can mitigate the risk by disabling the affected bgmac Ethernet driver or using an alternative driver if available. However, it is recommended to update the Kernel to the fixed version as soon as possible.

Yes, this vulnerability can be exploited remotely if the attacker can access the affected system over the network.

There are no known instances of this vulnerability being exploited in the wild at the time of this report. However, it is crucial to apply the necessary updates and patches to mitigate the risk.

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