Vulnerability in Kernel package: scsi: bnx2fc
Summary
GSD-2022-1000256: scsi: bnx2fc: Flush destroy_work queue before calling bnx2fc_interface_put(). Affects Kernel versions >= 0cbf32e1681d870632a1772601cbaadd996dc978, < b11e34f7bab21df36f02a5e54fb69e858c09a65d. 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 package is a fundamental component of the Linux operating system, responsible for managing the system's core functionality. It provides an interface between the hardware and software layers, allowing applications to communicate with the underlying hardware. The scsi: bnx2fc module within the Kernel package is specifically designed for Fibre Channel over Ethernet (FCoE) protocol support. It enables the use of Fibre Channel storage devices over Ethernet networks. However, a vulnerability has been discovered in this module that could potentially be exploited by attackers.
Vulnerability Detail
The vulnerability in the scsi: bnx2fc module arises from a failure to flush the destroy_work queue before calling bnx2fc_interface_put(). This flaw can be leveraged by an attacker to execute arbitrary code or trigger a denial-of-service (DoS) condition. By exploiting this vulnerability, an attacker may gain unauthorized access to sensitive information, modify data, or disrupt the normal operation of the system. The vulnerability was introduced in version v3.2 of the Linux Kernel and has been fixed in version v5.15.19.
How To Fix
No fixed version is published for this vulnerability.
To fix this vulnerability, it is recommended to update the Linux Kernel package to version v5.15.19 or later. This can be done by downloading the latest version from the official Linux Kernel repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and following the installation instructions provided. It is crucial to ensure that the new version is properly installed and all necessary dependencies are met.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
If updating the Linux Kernel package is not immediately feasible, a temporary workaround can be implemented. This involves manually flushing the destroy_work queue before calling bnx2fc_interface_put(). Here is an example of how this can be done in code:
// Flush destroy_work queue
flush_workqueue(&destroy_work);
// Call bnx2fc_interface_put()
bnx2fc_interface_put();
Conclusion
In conclusion, the scsi: bnx2fc module in the Kernel package is vulnerable to a flaw that can be exploited by attackers to execute arbitrary code or cause a denial-of-service condition. It is crucial to update the Linux Kernel package to version v5.15.19 or later to mitigate this vulnerability. If immediate updating is not possible, a temporary workaround can be implemented by manually flushing the destroy_work queue before calling bnx2fc_interface_put(). For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can potentially allow attackers to execute arbitrary code or cause a denial-of-service (DoS) condition. This could lead to unauthorized access, data manipulation, or disruption of system operations.
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 fix for this vulnerability is available in version v5.15.19 of the Linux Kernel package. It is recommended to update to this version or a later one to mitigate the risk.
Yes, a temporary workaround involves manually flushing the destroy_work queue before calling bnx2fc_interface_put(). Please refer to the 'workaround' section for code examples and instructions.
You can find more information about this vulnerability in the official Linux Kernel repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and the vulnerability database maintained by the Cloud Security Alliance (https://github.com/cloudsecurityalliance/gsd-database).
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.