Fix return value of __setup handler in kgdboc

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001810: kgdboc: fix return value of __setup handler. Affects Kernel versions >= 1bd54d851f50dea6af30c3e6ff4f3e9aab5558f9, < a885e17cf5f2dd6606abe825a001fd09a5c29c2e. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback