CVE-2021-47120
CVE-2021-47120 · HID: magicmouse: fix NULL-deref on disconnect
This page contains facts from public vulnerability sources. Check the original advisory before updating.
This page shows selected source facts. See the linked advisories for the complete description and affected versions.
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 5.5 · Medium · EPSS 0.2% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
linux
- Versions
- ≥ 9d7b18668956c411a422d04c712994c5fdb23a4b, < 368c5d45a87e1bcc7f1e98e0c255c37b7b12c5d6: Affected (git)
- ≥ 9d7b18668956c411a422d04c712994c5fdb23a4b, < b5d013c4c76b276890135b5d32803c4c63924b77: Affected (git)
- ≥ 9d7b18668956c411a422d04c712994c5fdb23a4b, < 9cf27473f21913a3eaf4702dd2a25415afd5f33f: Affected (git)
- ≥ 9d7b18668956c411a422d04c712994c5fdb23a4b, < 4b4f6cecca446abcb686c6e6c451d4f1ec1a7497: Affected (git)
No fix published
linux
- Versions
- 4.20: Affected
- ≥ 0, < 4.20: Not affected (semver)
- ≥ 5.4.125, ≤ 5.4.*: Not affected (semver)
- ≥ 5.10.43, ≤ 5.10.*: Not affected (semver)
- ≥ 5.12.10, ≤ 5.12.*: Not affected (semver)
- ≥ 5.13: Not affected (original_commit_for_fix)
No fix published
linux Debian:12
- Affected ranges
- ECOSYSTEM: < 5.10.46-1
Update to 5.10.46-1
linux Debian:13
- Affected ranges
- ECOSYSTEM: < 5.10.46-1
Update to 5.10.46-1
linux Debian:14
- Affected ranges
- ECOSYSTEM: < 5.10.46-1
Update to 5.10.46-1
linux-hwe-edge Ubuntu:16.04:LTS
- Versions
- 4.8.0-28.30~16.04.1
- 4.8.0-30.32~16.04.1
- 4.8.0-32.34~16.04.1
- 4.8.0-34.36~16.04.1
- 4.10.0-14.16~16.04.1
- 4.10.0-19.21~16.04.1
- 4.10.0-20.22~16.04.1
- 4.10.0-21.23~16.04.1
- 4.10.0-22.24~16.04.1
- 4.10.0-24.28~16.04.1
- 4.10.0-26.30~16.04.1
- 4.11.0-13.19~16.04.1
- 4.11.0-14.20~16.04.1
- 4.13.0-16.19~16.04.3
- 4.13.0-17.20~16.04.1
- 4.13.0-19.22~16.04.1
- 4.13.0-21.24~16.04.1
- 4.13.0-25.29~16.04.2
- 4.15.0-13.14~16.04.1
- 4.15.0-15.16~16.04.1
- 4.15.0-20.21~16.04.1
- 4.15.0-22.24~16.04.1
- 4.15.0-23.25~16.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
linux-aws-5.4 Ubuntu:18.04:LTS
- Versions
- 5.4.0-1018.18~18.04.1
- 5.4.0-1020.20~18.04.2
- 5.4.0-1022.22~18.04.1
- 5.4.0-1024.24~18.04.1
- 5.4.0-1025.25~18.04.1
- 5.4.0-1028.29~18.04.1
- 5.4.0-1029.30~18.04.1
- 5.4.0-1030.31~18.04.1
- 5.4.0-1032.33~18.04.1
- 5.4.0-1034.35~18.04.1
- 5.4.0-1035.37~18.04.1
- 5.4.0-1037.39~18.04.1
- 5.4.0-1038.40~18.04.1
- 5.4.0-1039.41~18.04.1
- 5.4.0-1041.43~18.04.1
- 5.4.0-1043.45~18.04.1
- 5.4.0-1045.47~18.04.1
- 5.4.0-1047.49~18.04.1
- 5.4.0-1048.50~18.04.1
- 5.4.0-1049.51~18.04.1
- 5.4.0-1051.53~18.04.1
- 5.4.0-1054.57~18.04.1
- Affected ranges
- ECOSYSTEM: < 5.4.0-1055.58~18.04.1
Update to 5.4.0-1055.58~18.04.1
linux-azure-5.4 Ubuntu:18.04:LTS
- Versions
- 5.4.0-1020.20~18.04.1
- 5.4.0-1022.22~18.04.1
- 5.4.0-1023.23~18.04.1
- 5.4.0-1025.25~18.04.1
- 5.4.0-1026.26~18.04.1
- 5.4.0-1031.32~18.04.1
- 5.4.0-1032.33~18.04.1
- 5.4.0-1034.35~18.04.1
- 5.4.0-1035.36~18.04.1
- 5.4.0-1036.38~18.04.1
- 5.4.0-1039.41~18.04.1
- 5.4.0-1040.42~18.04.1
- 5.4.0-1041.43~18.04.1
- 5.4.0-1043.45~18.04.1
- 5.4.0-1044.46~18.04.1
- 5.4.0-1046.48~18.04.1
- 5.4.0-1047.49~18.04.1
- 5.4.0-1048.50~18.04.1
- 5.4.0-1049.51~18.04.1
- 5.4.0-1051.53~18.04.1
- 5.4.0-1055.57~18.04.1
- Affected ranges
- ECOSYSTEM: < 5.4.0-1056.58~18.04.1
Update to 5.4.0-1056.58~18.04.1
linux-gcp-5.4 Ubuntu:18.04:LTS
- Versions
- 5.4.0-1019.19~18.04.2
- 5.4.0-1021.21~18.04.1
- 5.4.0-1022.22~18.04.1
- 5.4.0-1024.24~18.04.1
- 5.4.0-1025.25~18.04.1
- 5.4.0-1028.29~18.04.1
- 5.4.0-1029.31~18.04.1
- 5.4.0-1030.32~18.04.1
- 5.4.0-1032.34~18.04.1
- 5.4.0-1033.35~18.04.1
- 5.4.0-1034.37~18.04.1
- 5.4.0-1036.39~18.04.1
- 5.4.0-1037.40~18.04.1
- 5.4.0-1038.41~18.04.1
- 5.4.0-1040.43~18.04.1
- 5.4.0-1041.44~18.04.1
- 5.4.0-1042.45~18.04.1
- 5.4.0-1043.46~18.04.1
- 5.4.0-1044.47~18.04.2
- 5.4.0-1046.49~18.04.1
- 5.4.0-1049.53~18.04.1
- Affected ranges
- ECOSYSTEM: < 5.4.0-1051.55~18.04.1
Update to 5.4.0-1051.55~18.04.1
linux-hwe-5.4 Ubuntu:18.04:LTS
- Versions
- 5.4.0-37.41~18.04.1
- 5.4.0-39.43~18.04.1
- 5.4.0-40.44~18.04.1
- 5.4.0-42.46~18.04.1
- 5.4.0-45.49~18.04.2
- 5.4.0-47.51~18.04.1
- 5.4.0-48.52~18.04.1
- 5.4.0-51.56~18.04.1
- 5.4.0-52.57~18.04.1
- 5.4.0-53.59~18.04.1
- 5.4.0-54.60~18.04.1
- 5.4.0-56.62~18.04.1
- 5.4.0-58.64~18.04.1
- 5.4.0-59.65~18.04.1
- 5.4.0-60.67~18.04.1
- 5.4.0-62.70~18.04.1
- 5.4.0-64.72~18.04.1
- 5.4.0-65.73~18.04.1
- 5.4.0-66.74~18.04.2
- 5.4.0-67.75~18.04.1
- 5.4.0-70.78~18.04.1
- 5.4.0-71.79~18.04.1
- 5.4.0-72.80~18.04.1
- 5.4.0-73.82~18.04.1
- 5.4.0-74.83~18.04.1
- 5.4.0-77.86~18.04.1
- 5.4.0-80.90~18.04.1
- Affected ranges
- ECOSYSTEM: < 5.4.0-81.91~18.04.1
Update to 5.4.0-81.91~18.04.1
linux-oracle-5.4 Ubuntu:18.04:LTS
- Versions
- 5.4.0-1019.19~18.04.1
- 5.4.0-1021.21~18.04.1
- 5.4.0-1022.22~18.04.1
- 5.4.0-1024.24~18.04.1
- 5.4.0-1025.25~18.04.1
- 5.4.0-1028.29~18.04.1
- 5.4.0-1029.31~18.04.1
- 5.4.0-1030.32~18.04.1
- 5.4.0-1033.35
- 5.4.0-1034.36~18.04.1
- 5.4.0-1035.38~18.04.1
- 5.4.0-1037.40~18.04.1
- 5.4.0-1038.41~18.04.1
- 5.4.0-1039.42~18.04.1
- 5.4.0-1041.44~18.04.1
- 5.4.0-1042.45~18.04.1
- 5.4.0-1043.46~18.04.1
- 5.4.0-1044.47~18.04.1
- 5.4.0-1046.50~18.04.2
- 5.4.0-1048.52~18.04.1
- 5.4.0-1049.53~18.04.1
- 5.4.0-1052.56~18.04.1
- Affected ranges
- ECOSYSTEM: < 5.4.0-1053.57~18.04.1
Update to 5.4.0-1053.57~18.04.1
linux-raspi-5.4 Ubuntu:18.04:LTS
- Versions
- 5.4.0-1013.13~18.04.1
- 5.4.0-1015.15~18.04.1
- 5.4.0-1016.17~18.04.1
- 5.4.0-1018.20~18.04.1
- 5.4.0-1019.21~18.04.1
- 5.4.0-1021.24~18.04.1
- 5.4.0-1022.25~18.04.1
- 5.4.0-1023.26~18.04.1
- 5.4.0-1025.28~18.04.1
- 5.4.0-1026.29~18.04.1
- 5.4.0-1028.31~18.04.1
- 5.4.0-1029.32~18.04.1
- 5.4.0-1030.33~18.04.1
- 5.4.0-1032.35~18.04.1
- 5.4.0-1033.36~18.04.1
- 5.4.0-1034.37~18.04.1
- 5.4.0-1035.38~18.04.1
- 5.4.0-1036.39~18.04.1
- 5.4.0-1038.41~18.04.1
- 5.4.0-1041.45~18.04.1
- Affected ranges
- ECOSYSTEM: < 5.4.0-1042.46~18.04.3
Update to 5.4.0-1042.46~18.04.3
linux-aws-5.0 Ubuntu:18.04:LTS
- Versions
- 5.0.0-1021.24~18.04.1
- 5.0.0-1022.25~18.04.1
- 5.0.0-1023.26~18.04.1
- 5.0.0-1024.27~18.04.1
- 5.0.0-1025.28
- 5.0.0-1027.30
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
linux-aws-5.3 Ubuntu:18.04:LTS
- Versions
- 5.3.0-1016.17~18.04.1
- 5.3.0-1017.18~18.04.1
- 5.3.0-1019.21~18.04.1
- 5.3.0-1023.25~18.04.1
- 5.3.0-1028.30~18.04.1
- 5.3.0-1030.32~18.04.1
- 5.3.0-1032.34~18.04.2
- 5.3.0-1033.35
- 5.3.0-1034.36
- 5.3.0-1035.37
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
linux-azure Ubuntu:18.04:LTS
- Versions
- 4.15.0-1002.2
- 4.15.0-1003.3
- 4.15.0-1004.4
- 4.15.0-1008.8
- 4.15.0-1009.9
- 4.15.0-1012.12
- 4.15.0-1013.13
- 4.15.0-1014.14
- 4.15.0-1018.18
- 4.15.0-1019.19
- 4.15.0-1021.21
- 4.15.0-1022.23
- 4.15.0-1023.24
- 4.15.0-1025.26
- 4.15.0-1028.29
- 4.15.0-1030.31
- 4.15.0-1031.32
- 4.15.0-1032.33
- 4.15.0-1035.36
- 4.15.0-1036.38
- 4.15.0-1037.39
- 4.18.0-1011.11~18.04.1
- 4.18.0-1013.13~18.04.1
- 4.18.0-1014.14~18.04.1
- 4.18.0-1018.18~18.04.1
- 4.18.0-1019.19~18.04.1
- 4.18.0-1020.20~18.04.1
- 4.18.0-1023.24~18.04.1
- 4.18.0-1024.25~18.04.1
- 4.18.0-1025.27~18.04.1
- 5.0.0-1014.14~18.04.1
- 5.0.0-1016.17~18.04.1
- 5.0.0-1018.19~18.04.1
- 5.0.0-1020.21~18.04.1
- 5.0.0-1022.23~18.04.1
- 5.0.0-1023.24~18.04.1
- 5.0.0-1025.27~18.04.1
- 5.0.0-1027.29~18.04.1
- 5.0.0-1028.30~18.04.1
- 5.0.0-1029.31~18.04.1
- 5.0.0-1031.33
- 5.0.0-1032.34
- 5.0.0-1035.37
- 5.0.0-1036.38
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
linux-azure-5.3 Ubuntu:18.04:LTS
- Versions
- 5.3.0-1007.8~18.04.1
- 5.3.0-1008.9~18.04.1
- 5.3.0-1009.10~18.04.1
- 5.3.0-1010.11~18.04.1
- 5.3.0-1012.13~18.04.1
- 5.3.0-1013.14~18.04.1
- 5.3.0-1016.17~18.04.1
- 5.3.0-1018.19~18.04.1
- 5.3.0-1019.20~18.04.1
- 5.3.0-1020.21~18.04.1
- 5.3.0-1022.23~18.04.1
- 5.3.0-1028.29~18.04.1
- 5.3.0-1031.32~18.04.1
- 5.3.0-1032.33~18.04.1
- 5.3.0-1034.35~18.04.1
- 5.3.0-1035.36
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
linux-azure-edge Ubuntu:18.04:LTS
- Versions
- 4.18.0-1006.6~18.04.1
- 4.18.0-1007.7~18.04.1
- 4.18.0-1008.8~18.04.1
- 5.0.0-1012.12~18.04.2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
linux-gcp Ubuntu:18.04:LTS
- Versions
- 4.15.0-1001.1
- 4.15.0-1003.3
- 4.15.0-1005.5
- 4.15.0-1006.6
- 4.15.0-1008.8
- 4.15.0-1009.9
- 4.15.0-1010.10
- 4.15.0-1014.14
- 4.15.0-1015.15
- 4.15.0-1017.18
- 4.15.0-1018.19
- 4.15.0-1019.20
- 4.15.0-1021.22
- 4.15.0-1023.24
- 4.15.0-1024.25
- 4.15.0-1025.26
- 4.15.0-1026.27
- 4.15.0-1027.28
- 4.15.0-1028.29
- 4.15.0-1029.31
- 4.15.0-1030.32
- 4.15.0-1032.34
- 4.15.0-1033.35
- 4.15.0-1034.36
- 4.15.0-1036.38
- 4.15.0-1037.39
- 4.15.0-1040.42
- 4.15.0-1042.45
- 4.15.0-1044.70
- 5.0.0-1020.20~18.04.1
- 5.0.0-1021.21~18.04.1
- 5.0.0-1025.26~18.04.1
- 5.0.0-1026.27~18.04.1
- 5.0.0-1028.29~18.04.1
- 5.0.0-1029.30~18.04.1
- 5.0.0-1031.32
- 5.0.0-1033.34
- 5.0.0-1034.35
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
linux-gcp-5.3 Ubuntu:18.04:LTS
- Versions
- 5.3.0-1008.9~18.04.1
- 5.3.0-1009.10~18.04.1
- 5.3.0-1010.11~18.04.1
- 5.3.0-1012.13~18.04.1
- 5.3.0-1014.15~18.04.1
- 5.3.0-1016.17~18.04.1
- 5.3.0-1017.18~18.04.1
- 5.3.0-1018.19~18.04.1
- 5.3.0-1020.22~18.04.1
- 5.3.0-1026.28~18.04.1
- 5.3.0-1029.31~18.04.1
- 5.3.0-1030.32~18.04.1
- 5.3.0-1032.34~18.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
linux-gke-4.15 Ubuntu:18.04:LTS
- Versions
- 4.15.0-1030.32
- 4.15.0-1032.34
- 4.15.0-1033.35
- 4.15.0-1034.36
- 4.15.0-1036.38
- 4.15.0-1037.39
- 4.15.0-1040.42
- 4.15.0-1041.43
- 4.15.0-1042.44
- 4.15.0-1044.46
- 4.15.0-1045.48
- 4.15.0-1046.49
- 4.15.0-1048.51
- 4.15.0-1049.52
- 4.15.0-1050.53
- 4.15.0-1052.55
- 4.15.0-1055.58
- 4.15.0-1057.60
- 4.15.0-1058.61
- 4.15.0-1059.62
- 4.15.0-1063.66
- 4.15.0-1064.67
- 4.15.0-1066.69
- 4.15.0-1067.70
- 4.15.0-1069.72
- 4.15.0-1070.73
- 4.15.0-1072.76
- 4.15.0-1073.78
- 4.15.0-1074.79
- 4.15.0-1076.81
- 4.15.0-1077.82
- 4.15.0-1078.83
- 4.15.0-1079.84
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
linux-gke-5.4 Ubuntu:18.04:LTS
- Versions
- 5.4.0-1025.25~18.04.1
- 5.4.0-1027.28~18.04.1
- 5.4.0-1029.31~18.04.1
- 5.4.0-1030.32~18.04.1
- 5.4.0-1032.34~18.04.1
- 5.4.0-1033.35~18.04.1
- 5.4.0-1035.37~18.04.1
- 5.4.0-1036.38~18.04.1
- 5.4.0-1037.39~18.04.1
- 5.4.0-1039.41~18.04.1
- 5.4.0-1040.42~18.04.1
- 5.4.0-1042.44~18.04.1
- 5.4.0-1043.45~18.04.1
- 5.4.0-1044.46~18.04.1
- 5.4.0-1046.48~18.04.1
- 5.4.0-1049.52~18.04.1
- 5.4.0-1051.54~18.04.1
- 5.4.0-1052.55~18.04.1
- 5.4.0-1053.56~18.04.1
- 5.4.0-1054.57~18.04.1
- 5.4.0-1055.58~18.04.1
- 5.4.0-1056.59~18.04.1
- 5.4.0-1057.60~18.04.1
- 5.4.0-1059.62~18.04.1
- 5.4.0-1061.64~18.04.1
- 5.4.0-1062.65~18.04.1
- 5.4.0-1063.66~18.04.1
- 5.4.0-1065.68~18.04.1
- 5.4.0-1066.69~18.04.1
- 5.4.0-1067.70~18.04.1
- 5.4.0-1068.71~18.04.1
- 5.4.0-1071.76~18.04.3
- 5.4.0-1072.77~18.04.1
- 5.4.0-1074.79~18.04.1
- 5.4.0-1076.82~18.04.1
- 5.4.0-1078.84~18.04.1
- 5.4.0-1080.86~18.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
linux-gkeop-5.4 Ubuntu:18.04:LTS
- Versions
- 5.4.0-1001.1
- 5.4.0-1003.3
- 5.4.0-1004.5
- 5.4.0-1005.6
- 5.4.0-1007.8~18.04.1
- 5.4.0-1008.9~18.04.1
- 5.4.0-1009.10~18.04.1
- 5.4.0-1010.11~18.04.1
- 5.4.0-1011.12~18.04.2
- 5.4.0-1012.13~18.04.1
- 5.4.0-1013.14~18.04.1
- 5.4.0-1014.15~18.04.1
- 5.4.0-1015.16~18.04.1
- 5.4.0-1016.17~18.04.1
- 5.4.0-1018.19~18.04.1
- 5.4.0-1021.22~18.04.1
- 5.4.0-1022.23~18.04.1
- 5.4.0-1023.24~18.04.1
- 5.4.0-1024.25~18.04.1
- 5.4.0-1025.26~18.04.1
- 5.4.0-1026.27~18.04.1
- 5.4.0-1027.28~18.04.1
- 5.4.0-1029.30~18.04.2
- 5.4.0-1031.32~18.04.1
- 5.4.0-1032.33~18.04.1
- 5.4.0-1033.34~18.04.1
- 5.4.0-1034.35~18.04.1
- 5.4.0-1036.37~18.04.1
- 5.4.0-1037.38~18.04.1
- 5.4.0-1038.39~18.04.1
- 5.4.0-1039.40~18.04.1
- 5.4.0-1040.41~18.04.1
- 5.4.0-1043.44~18.04.1
- 5.4.0-1046.48~18.04.1
- 5.4.0-1048.51~18.04.1
- 5.4.0-1049.52~18.04.1
- 5.4.0-1051.54~18.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
linux-hwe Ubuntu:18.04:LTS
- Versions
- 4.18.0-13.14~18.04.1
- 4.18.0-14.15~18.04.1
- 4.18.0-15.16~18.04.1
- 4.18.0-16.17~18.04.1
- 4.18.0-17.18~18.04.1
- 4.18.0-18.19~18.04.1
- 4.18.0-20.21~18.04.1
- 4.18.0-21.22~18.04.1
- 4.18.0-22.23~18.04.1
- 4.18.0-24.25~18.04.1
- 4.18.0-25.26~18.04.1
- 5.0.0-23.24~18.04.1
- 5.0.0-25.26~18.04.1
- 5.0.0-27.28~18.04.1
- 5.0.0-29.31~18.04.1
- 5.0.0-31.33~18.04.1
- 5.0.0-32.34~18.04.2
- 5.0.0-35.38~18.04.1
- 5.0.0-36.39~18.04.1
- 5.0.0-37.40~18.04.1
- 5.3.0-26.28~18.04.1
- 5.3.0-28.30~18.04.1
- 5.3.0-40.32~18.04.1
- 5.3.0-42.34~18.04.1
- 5.3.0-45.37~18.04.1
- 5.3.0-46.38~18.04.1
- 5.3.0-51.44~18.04.2
- 5.3.0-53.47~18.04.1
- 5.3.0-59.53~18.04.1
- 5.3.0-61.55~18.04.1
- 5.3.0-62.56~18.04.1
- 5.3.0-64.58~18.04.1
- 5.3.0-65.59
- 5.3.0-66.60
- 5.3.0-67.61
- 5.3.0-68.63
- 5.3.0-69.65
- 5.3.0-70.66
- 5.3.0-72.68
- 5.3.0-73.69
- 5.3.0-74.70
- 5.3.0-75.71
- 5.3.0-76.72
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
linux-hwe-edge Ubuntu:18.04:LTS
- Versions
- 5.0.0-15.16~18.04.1
- 5.0.0-16.17~18.04.1
- 5.0.0-17.18~18.04.1
- 5.0.0-19.20~18.04.1
- 5.0.0-20.21~18.04.1
- 5.3.0-19.20~18.04.2
- 5.3.0-22.24~18.04.1
- 5.3.0-23.25~18.04.1
- 5.3.0-23.25~18.04.2
- 5.3.0-24.26~18.04.2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://git.kernel.org/stable/c/368c5d45a87e1bcc7f1e98e0c255c37b7b12c5d6
- https://git.kernel.org/stable/c/b5d013c4c76b276890135b5d32803c4c63924b77
- https://git.kernel.org/stable/c/9cf27473f21913a3eaf4702dd2a25415afd5f33f
- https://git.kernel.org/stable/c/4b4f6cecca446abcb686c6e6c451d4f1ec1a7497
- https://nvd.nist.gov/vuln/detail/CVE-2021-47120