x86/hyperv: Fix NULL deref in set_hv_tscchange_cb() if Hyper-V setup fails
Summary
GSD-2021-1002258: x86/hyperv: Fix NULL deref in set_hv_tscchange_cb() if Hyper-V setup fails. Affects Kernel versions >= 93286261de1b46339aa27cd4c639b21778f6cade, < b0e44dfb4e4c699cca33ede431b8d127e6e8d661. 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 vulnerability affects the Kernel package in the Linux ecosystem. The Kernel is the core component of the Linux operating system, responsible for managing system resources and providing an interface for applications to interact with the hardware. The vulnerability specifically impacts the x86/hyperv module within the Kernel. The x86/hyperv module provides support for running Linux as a guest operating system on Microsoft Hyper-V virtualization platforms.
Vulnerability Detail
The vulnerability arises from a NULL dereference in the set_hv_tscchange_cb() function when the Hyper-V setup fails. This can lead to a kernel crash or other undefined behavior. The vulnerability was introduced in version v4.16 of the Linux Kernel and has been fixed in version v5.4.162. The impact and attack plausibility of the vulnerability have not been proven yet.
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
No specific workaround has been mentioned for this vulnerability.
Conclusion
The x86/hyperv vulnerability in the Linux Kernel, which could result in a NULL dereference and potential kernel crash, has been addressed in version v5.4.162. It is recommended to update the Kernel to this version or later to mitigate the vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The impact of this vulnerability is not yet proven. It could potentially lead to a kernel crash or other undefined behavior.
You can use Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Vulert Playground allows you to analyze your application's manifest file, such as package-lock.json, and provides real-time alerts for open-source vulnerabilities.
Yes, a patch has been released in version v5.4.162 of the Linux Kernel. It is recommended to update to this version or later to fix the vulnerability.
No specific temporary measures have been mentioned for this vulnerability. It is recommended to update the Kernel as soon as possible.
You can find more information about this vulnerability in the GSD-2021-1002258 JSON report available on the Cloud Security Alliance's GitHub repository (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1002xxx/GSD-2021-1002258.json).
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.