CVE-2021-47120: HID: magicmouse: fix NULL-deref on disconnect
Vulnerability summary
CVE-2021-47120 is a medium (CVSS 5.5) NULL Pointer Dereference vulnerability in linux. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 14.5% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3 · Related 3Timeline
- 15-03-2024PublishedVulnerability first disclosed.
- 11-05-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: HID: magicmouse: fix NULL-deref on disconnect Commit 9d7b18668956 ("HID: magicmouse: add support for Apple Magic Trackpad 2") added a sanity check for an Apple trackpad but returned success instead of -ENODEV when the check failed. This means that the remove callback will dereference the never-initialised driver data pointer when the driver is later unbound (e.g. on USB disconnect).
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.24%
Chance of exploitation in the next 30 days
Percentile
15%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.24% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu82 products
- linux< 5.4.0-81.91
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 5.4.0-1055.58
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 9d7b18668956c411a422d04c712994c5fdb23a4b, < 368c5d45a87e1bcc7f1e98e0c255c37b7b12c5d6 | ≥ 9d7b18668956c411a422d04c712994c5fdb23a4b, < b5d013c4c76b276890135b5d32803c4c63924b77 | ≥ 9d7b18668956c411a422d04c712994c5fdb23a4b, < 9cf27473f21913a3eaf4702dd2a25415afd5f33f | ≥ 9d7b18668956c411a422d04c712994c5fdb23a4b, < 4b4f6cecca446abcb686c6e6c451d4f1ec1a7497 | 4.20
- linux_kernel≥ 4.20, < 5.4.125 | ≥ 5.5, < 5.10.43 | ≥ 5.11, < 5.12.10 | 5.13:rc1 | 5.13:rc2 | 5.13:rc3 | 5.13:rc4
Debian1 product
- linux< 5.10.46-1
3 vendors · 85 products