NULL pointer vulnerability in nbd package
Summary
UVI-2021-1000195: nbd: Fix NULL pointer in flush_workqueue. Affects Kernel versions >= e9e006f5fcf2bab59149cb38a48a4817c1b538b4, < 54b78ba7e96e5fe1edb8054e375d31a6c0dc60dc. 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 nbd package is a component of the Linux Kernel, which is responsible for handling network block devices. It allows remote storage devices to be accessed over a network. The package provides functionality for connecting to and managing these network block devices. However, a vulnerability has been discovered in the package that could lead to a NULL pointer dereference.
Vulnerability Detail
The vulnerability in the nbd package arises from a NULL pointer dereference in the flush_workqueue function. This can occur when attempting to flush a workqueue that has not been initialized properly. An attacker could potentially exploit this vulnerability to cause a denial-of-service condition or execute arbitrary code with kernel privileges. The vulnerability was introduced in version v5.4 of the Linux Kernel and has been fixed in version v5.12.5.
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
There is no known workaround for this vulnerability. It is necessary to apply the fix by updating the Linux Kernel.
Conclusion
In conclusion, the nbd package in the Linux Kernel is vulnerable to a NULL pointer dereference issue. This vulnerability can be fixed by updating the Linux Kernel to version v5.12.5 or later. It is recommended to apply the fix as soon as possible to mitigate the risk of exploitation. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The nbd package is a component of the Linux Kernel that allows remote storage devices to be accessed over a network.
A NULL pointer dereference occurs when a program attempts to access or manipulate data using a pointer that points to NULL, resulting in a crash or undefined behavior.
This vulnerability could lead to a denial-of-service condition or allow an attacker to execute arbitrary code with kernel 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 the Vulert Playground will analyze it for vulnerabilities.
You can find more information about this vulnerability in the Open Source Vulnerability database entry UVI-2021-1000195 (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1000xxx/UVI-2021-1000195.json).
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.