Fix return value of __setup handler in kgdboc
Summary
GSD-2022-1001810: kgdboc: fix return value of __setup handler. Affects Kernel versions >= 1bd54d851f50dea6af30c3e6ff4f3e9aab5558f9, < a885e17cf5f2dd6606abe825a001fd09a5c29c2e. 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 kgdboc package is a kernel module in the Linux Kernel ecosystem. It provides support for kernel debugging over a serial console. The kgdboc module allows developers to connect a remote debugger to the kernel and perform debugging operations. However, a vulnerability has been discovered in the __setup handler of kgdboc, which can lead to potential security issues.
Vulnerability Detail
The vulnerability in kgdboc arises from an incorrect return value in the __setup handler. This can result in improper handling of setup arguments, potentially leading to memory corruption or privilege escalation attacks. An attacker may exploit this vulnerability to execute arbitrary code or gain elevated privileges on a vulnerable system. The vulnerability was introduced in version v4.20 of the Linux Kernel and has been fixed in version v5.15.33.
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 essential to update the Linux Kernel to the fixed version to ensure the security of the system.
Conclusion
The vulnerability in kgdboc, which involves an incorrect return value in the __setup handler, can lead to memory corruption or privilege escalation attacks. It is crucial to update the Linux Kernel to version v5.15.33 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
kgdboc is a kernel module in the Linux Kernel ecosystem that provides support for kernel debugging over a serial console.
__setup is a macro in the Linux Kernel that allows registering setup functions for kernel command-line arguments. The __setup handler is responsible for processing these arguments.
The vulnerability in kgdboc can lead to memory corruption or privilege escalation attacks. An attacker may exploit this vulnerability to execute arbitrary code or gain elevated privileges on a vulnerable system.
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, the vulnerability has been fixed in version v5.15.33 of the Linux Kernel. It is recommended to update the kernel to this version or later to mitigate the vulnerability.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.