Null Pointer Dereference in Linux Kernel's Nintendo HID Driver

linux Updated 02 Oct 2025

Summary

18/06/2025
N/A
Yes i
Unrated
Not published

CVE-2022-49974: In the Linux kernel, the following vulnerability has been resolved: HID: nintendo: fix rumble worker null pointer deref We can dereference a null pointer trying to queue work to a destroyed workqueue. Affects linux versions < 6.0.2-1. Fixed in 6.0.2-1. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Linux kernel is a core component of many operating systems, providing essential services and managing hardware resources. The Nintendo HID driver allows for the integration of Nintendo controllers with Linux systems, enabling users to utilize these devices for gaming and other applications. This driver is crucial for ensuring proper communication between the operating system and the hardware, but it is susceptible to vulnerabilities that can compromise system stability and security.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the Nintendo HID driver that can lead to a null pointer dereference. This issue arises when the rumble worker attempts to queue work to a workqueue that has already been destroyed, specifically when the controller is disconnected. The function nintendo_hid_remove is called, which destroys the rumble_queue. If the controller state is set to JOYCON_CTLR_STATE_REMOVED, the system may attempt to use this destroyed queue, resulting in a null pointer dereference. This can lead to system crashes or unexpected behavior, posing a risk to system integrity.

How To Fix

Minimum fixed version

6.0.2-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. It is best to apply the patch as soon as it is available to avoid potential issues.

Conclusion

The vulnerability CVE-2022-49974 in the Linux kernel's Nintendo HID driver poses a significant risk due to the potential for null pointer dereference, leading to system instability. It is crucial for users to update their systems to the patched version to ensure continued security and functionality.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-49974 is a vulnerability in the Linux kernel's Nintendo HID driver that can lead to a null pointer dereference when a controller is disconnected.

This vulnerability can cause system crashes or unexpected behavior when attempting to use a Nintendo controller that has been disconnected.

Yes, a patch is available in version 6.0.2-1 of the Linux package for Debian systems.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

While there are no specific workarounds, it is advisable to monitor your system for any unusual behavior and apply the patch as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

6.0.2-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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