Vulnerability in Kernel package: vsock connection interruption
Summary
GSD-2022-1000394: vsock: remove vsock from connected table when connect is interrupted by a signal. Affects Kernel versions >= d021c344051af91f42c5ba9fdedc176740cbd238, < 87cd1bbd6677411e17369cd4b7389ab1e1fdba44. 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 essential services such as process management, memory management, and device drivers. The vsock subsystem within the Kernel package enables communication between virtual machines and the host system via sockets. However, a vulnerability has been discovered in the vsock module that allows connected vsock instances to remain in the connected table even when the connection is interrupted by a signal.
Vulnerability Detail
The vulnerability arises from a failure to remove vsock instances from the connected table when a connection is interrupted by a signal. This can lead to resource leaks and potential security issues. An attacker could exploit this vulnerability to exhaust system resources or cause a denial-of-service condition. The vulnerability was introduced in version v3.9 of the Linux Kernel and has been fixed in version v5.10.102.
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 package is not immediately feasible, a temporary workaround can be implemented by manually removing vsock instances from the connected table when a connection is interrupted by a signal. This can be achieved by modifying the relevant code in the Kernel source files. Here is an example of how the code modification can be done:
// Remove vsock from connected table when connection is interrupted by a signal
void handle_signal(int signum) {
// Code to remove vsock from connected table
}
// Register signal handler
signal(SIGINT, handle_signal);
Conclusion
In conclusion, a vulnerability has been identified in the Kernel package's vsock module, which allows connected vsock instances to remain in the connected table even when the connection is interrupted by a signal. This vulnerability can have serious consequences, including resource leaks and potential security issues. It is crucial to update the Linux Kernel package to version v5.10.102 or later to mitigate this vulnerability. If immediate updating is not possible, a temporary workaround can be implemented by manually removing vsock instances from the connected table. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to resource leaks and potential security issues. An attacker could exploit this vulnerability to exhaust system resources or cause a denial-of-service condition.
You can use Vulert's playground at Vulert 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, this vulnerability has been fixed in version v5.10.102 of the Linux Kernel package.
Yes, a temporary workaround is available by manually removing vsock instances from the connected table when a connection is interrupted by a signal. Please refer to the 'workaround' section for more details.
You can find more information about this vulnerability in the GSD-2022-1000394 entry of the GSD database maintained by the Cloud Security Alliance. The link to the specific entry is provided in the 'affected' section of this report.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.