CVE-2021-47120
Assigner: Linux
Published: 2024-03-15T20:14:26.578Z
State: PUBLISHED
descriptions: value: 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).
affected: product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions: version: 9d7b18668956
lessThan: 368c5d45a87e
status: affected
versionType: git
version: 9d7b18668956
lessThan: b5d013c4c76b
status: affected
versionType: git
version: 9d7b18668956
lessThan: 9cf27473f219
status: affected
versionType: git
version: 9d7b18668956
lessThan: 4b4f6cecca44
status: affected
versionType: git
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions: version: 4.20
status: affected
version: 0
lessThan: 4.20
status: unaffected
versionType: custom
version: 5.4.125
lessThanOrEqual: 5.4.*
status: unaffected
versionType: custom
version: 5.10.43
lessThanOrEqual: 5.10.*
status: unaffected
versionType: custom
version: 5.12.10
lessThanOrEqual: 5.12.*
status: unaffected
versionType: custom
version: 5.13
lessThanOrEqual: *
status: unaffected
versionType: original_commit_for_fix
title: HID: magicmouse: fix NULL-deref on disconnect
x_generator: engine: bippy-8df59b4913de