Refcount Leak in bcma_mdio_mii_register in Kernel
Summary
GSD-2022-1002591: net: ethernet: bgmac: Fix refcount leak in bcma_mdio_mii_register. Affects Kernel versions >= 55954f3bfdacc5908515b0c306cea23e77fab740, < 7fb1fe7d9a167205413f1de8db9f7d0f82c78286. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The Kernel is a crucial component of the Linux operating system that acts as a bridge between the hardware and software layers. It provides essential functionalities and services to enable the proper functioning of the system. The vulnerability in question affects the bcma_mdio_mii_register function in the bgmac Ethernet driver. This function is responsible for registering the MDIO bus and MII interface for the Broadcom Gigabit Ethernet controller. The vulnerability allows for a refcount leak, which can lead to resource exhaustion and potential denial-of-service attacks.
Vulnerability Detail
The vulnerability arises due to a refcount leak in the bcma_mdio_mii_register function. When the function is called multiple times, it fails to properly release the reference count, resulting in a resource leak. An attacker could exploit this vulnerability by repeatedly calling the function, causing resource exhaustion and potentially leading to a denial-of-service condition. The impact of this vulnerability can vary depending on the specific system configuration and the attacker's ability to trigger the vulnerable code path.
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 apply a patch or backport the fix to their current Kernel version. The patch can be obtained from the Linux Kernel repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/). It is recommended to follow the instructions provided by the Kernel maintainers or consult the official documentation for guidance on applying patches.
Conclusion
The refcount leak vulnerability in bcma_mdio_mii_register in the Kernel can lead to resource exhaustion and potential denial-of-service attacks. It is crucial to update the Kernel to version v5.18.4 or later to fix this vulnerability. Applying patches or backporting the fix can serve as a temporary workaround. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The impact of this vulnerability can vary depending on the specific system configuration and the attacker's ability to trigger the vulnerable code path. It can potentially lead to resource exhaustion and denial-of-service attacks.
You can use tools like Vulert (https://vulert.com) to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in the software.
Yes, users can apply a patch or backport the fix to their current Kernel version. The patch can be obtained from the Linux Kernel repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/). It is recommended to follow the instructions provided by the Kernel maintainers or consult the official documentation for guidance on applying patches.
At the time of this report, there are no known exploits for this vulnerability. However, it is important to promptly update the Kernel to the fixed version to mitigate any potential risks.
For more information about this vulnerability, you can refer to the source database entry at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1002xxx/GSD-2022-1002591.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.