Refcount Leak in altera_tse_mdio_create in Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1003257: net: altera: Fix refcount leak in altera_tse_mdio_create. Affects Kernel versions >= bbd2190ce96d8fce031f0526c1f970b68adc9d1a, < e31d9ba169860687dba19bdc8fccbfd34077f655. 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 provides core functionality and manages system resources. It is responsible for facilitating communication between hardware and software components. The altera_tse_mdio_create function in the Kernel's net: altera module is used to create a management data input/output (MDIO) interface for Altera Triple-Speed Ethernet (TSE) devices. This interface allows for communication with external devices over the MDIO bus. However, a refcount leak vulnerability has been identified in the altera_tse_mdio_create function, which can lead to resource exhaustion and potential system instability.

Vulnerability Detail

The refcount leak vulnerability in altera_tse_mdio_create arises from a failure to properly handle reference counts when creating an MDIO interface. This can result in a refcount leak, where the reference count for the interface is not properly decremented, leading to resource leaks and potential memory corruption. An attacker could potentially exploit this vulnerability to exhaust system resources, causing a denial-of-service condition or even executing arbitrary code with elevated privileges. The vulnerability was introduced in version v3.15 of the Linux Kernel and has been fixed in version v5.15.47.

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, a possible workaround is to disable the use of the altera_tse_mdio_create function or the affected net: altera module altogether. This can be achieved by modifying the Kernel configuration to exclude the module from the build or by blacklisting the module at runtime. However, it is important to note that this workaround may impact the functionality of Altera Triple-Speed Ethernet devices and should only be considered as a temporary measure until the Kernel can be updated.

Conclusion

The refcount leak vulnerability in altera_tse_mdio_create poses a risk of resource leaks, memory corruption, and system instability. It is crucial to update the Linux Kernel to version v5.15.47 or later to mitigate this vulnerability. If immediate updating is not possible, consider applying the provided workaround while planning for the Kernel update. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can lead to resource leaks, potential memory corruption, and system instability. An attacker could exploit this vulnerability to cause a denial-of-service condition or execute arbitrary code with elevated privileges.

You can use the Vulert Playground (https://vulert.com/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 patch for this vulnerability has been included in version v5.15.47 of the Linux Kernel. It is recommended to update to this version or later to mitigate the risk.

Yes, a temporary workaround is to disable the use of the altera_tse_mdio_create function or the affected net: altera module. However, this may impact the functionality of Altera Triple-Speed Ethernet devices and should only be considered as a temporary measure until the Kernel can be updated.

You can find more information about this vulnerability in the GSD-2022-1003257 entry of the GSD Database maintained by the Cloud Security Alliance. The entry includes the vulnerability details, affected package, and references to the relevant commits in the Linux Kernel source code.

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