HID: magicmouse: fix NULL-deref on disconnect in Kernel

Kernel Updated 02 Oct 2025

Summary

25/06/2021
N/A
No i
Unrated
Not published

GSD-2021-1000751: HID: magicmouse: fix NULL-deref on disconnect. Affects Kernel versions >= 9d7b18668956c411a422d04c712994c5fdb23a4b, < 368c5d45a87e1bcc7f1e98e0c255c37b7b12c5d6. 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 Kernel is a fundamental component of the Linux operating system that provides core functionalities and acts as a bridge between hardware and software. It manages system resources, facilitates communication between different software components, and ensures the stability and security of the system. The HID (Human Interface Device) subsystem in the Kernel handles input devices such as keyboards, mice, and touchpads. One of the supported devices is the magicmouse, a wireless mouse manufactured by Apple. However, a vulnerability has been discovered in the magicmouse driver that can lead to a NULL-dereference when the device is disconnected.

Vulnerability Detail

The vulnerability in the magicmouse driver occurs when the device is disconnected. A NULL-dereference error can occur, which may result in a system crash or potential privilege escalation if exploited by an attacker. This vulnerability was introduced in Kernel version v4.20 and has been fixed in version v5.4.125. The impact and attack plausibility of this 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

There is no specific workaround mentioned for this vulnerability. However, users can mitigate the risk by ensuring their Kernel is up to date and applying the necessary patches.

Conclusion

The HID: magicmouse vulnerability in the Linux Kernel can lead to a NULL-dereference error when the magicmouse device is disconnected. This vulnerability has been fixed in Kernel version v5.4.125. To ensure the security of your system, it is recommended to update the Kernel to the latest version. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability can range from a system crash to potential privilege escalation if exploited by an attacker.

You can use Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.

As of now, there is no known exploit for this vulnerability. However, it is important to update the Kernel to the latest version to mitigate any potential risks.

The recommended approach is to update the Linux Kernel to version v5.4.125 or later, as it includes the necessary fix for this vulnerability. Manual patching may require in-depth knowledge of the Kernel code and is not recommended for general users.

You can find more information about this vulnerability in the GSD-2021-1000751 entry of the GSD Database maintained by the Cloud Security Alliance. The link to the entry is available in the references section.

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