CVE-2021-37159: Use After Free

Published Oct 2, 2020
·
Updated

A flaw use-after-free in the Linux kernel USB High Speed Mobile Devices functionality was found in the way user detaches USB device. A local user could use this flaw to crash the system or escalate their privileges on the system.

Other sources

hsofreenetdevice in drivers/net/usb/hso.c in the Linux kernel through 5.13.4 calls unregisternetdev without checking for the NETREGREGISTERED state, leading to a use-after-free and a double free.

In hsofreenetdevice of net/usb/hso.c, there is a possible use after free bug. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.

— OSV

Affected Software

103 affected componentsFixes available
redhat/kernel-rt<0:4.18.0-372.9.1.rt7.166.el8
0:4.18.0-372.9.1.rt7.166.el8
redhat/kernel<0:4.18.0-372.9.1.el8
0:4.18.0-372.9.1.el8
Linux Linux kernel<=5.13.4
Debian Debian Linux=9.0
Oracle Communications Cloud Native Core Binding Support Function=22.1.3
Oracle Communications Cloud Native Core Network Exposure Function=22.1.1
Oracle Communications Cloud Native Core Policy=22.2.0
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
android/:linux_kernel:>=:0<:2022-03-05
:2022-03-05
ubuntu/linux<3.13.0-199.250
3.13.0-199.250
ubuntu/linux-aws<4.4.0-1103.108
4.4.0-1103.108
ubuntu/linux-azure<4.15.0-1127.140~14.04.1
4.15.0-1127.140~14.04.1
ubuntu/linux-lts-xenial<4.4.0-223.256~14.04.1
4.4.0-223.256~14.04.1
ubuntu/linux<4.4.0-223.256
4.4.0-223.256
ubuntu/linux-aws<4.4.0-1139.153
4.4.0-1139.153
ubuntu/linux-aws-hwe<4.15.0-1116.123~16.04.1
4.15.0-1116.123~16.04.1
ubuntu/linux-azure<4.15.0-1127.140~16.04.1
4.15.0-1127.140~16.04.1
ubuntu/linux-gcp<4.15.0-1112.126~16.04.1
4.15.0-1112.126~16.04.1
ubuntu/linux-hwe<4.15.0-163.171~16.04.1
4.15.0-163.171~16.04.1
ubuntu/linux-kvm<4.4.0-1104.113
4.4.0-1104.113
ubuntu/linux-oracle<4.15.0-1084.92~16.04.1
4.15.0-1084.92~16.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux-fips<4.4.0-1073.79
4.4.0-1073.79
ubuntu/linux-fips*
ubuntu/linux<4.15.0-163.171
4.15.0-163.171
ubuntu/linux-aws<4.15.0-1116.123
4.15.0-1116.123
ubuntu/linux-aws-5.4<5.4.0-1060.63~18.04.1
5.4.0-1060.63~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1127.140
4.15.0-1127.140
ubuntu/linux-azure-5.4<5.4.0-1064.67~18.04.1
5.4.0-1064.67~18.04.1
ubuntu/linux-dell300x<4.15.0-1031.36
4.15.0-1031.36
ubuntu/linux-gcp-4.15<4.15.0-1112.126
4.15.0-1112.126
ubuntu/linux-gcp-5.4<5.4.0-1058.62~18.04.1
5.4.0-1058.62~18.04.1
ubuntu/linux-gke-5.4<5.4.0-1056.59~18.04.1
5.4.0-1056.59~18.04.1
ubuntu/linux-gkeop-5.4<5.4.0-1027.28~18.04.1
5.4.0-1027.28~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-91.102~18.04.1
5.4.0-91.102~18.04.1
ubuntu/linux-kvm<4.15.0-1103.105
4.15.0-1103.105
ubuntu/linux-oracle<4.15.0-1084.92
4.15.0-1084.92
ubuntu/linux-oracle-5.4<5.4.0-1058.62~18.04.1
5.4.0-1058.62~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1047.52~18.04.1
5.4.0-1047.52~18.04.1
ubuntu/linux-raspi2<4.15.0-1099.106
4.15.0-1099.106
ubuntu/linux-snapdragon<4.15.0-1116.125
4.15.0-1116.125
ubuntu/linux-aws-5.0*
ubuntu/linux-aws-5.3*
ubuntu/linux-azure*
ubuntu/linux-azure-5.3*
ubuntu/linux-azure-edge*
ubuntu/linux-gcp*
ubuntu/linux-gcp-5.3*
ubuntu/linux-gcp-edge*
ubuntu/linux-gke-4.15*
ubuntu/linux-hwe*
ubuntu/linux-hwe-edge*
ubuntu/linux-oem*
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
ubuntu/linux-aws-fips<4.15.0-2057.59
4.15.0-2057.59
ubuntu/linux-azure-fips<4.15.0-2039.43
4.15.0-2039.43
ubuntu/linux-fips<4.15.0-1073.82
4.15.0-1073.82
ubuntu/linux-gcp-fips<4.15.0-2022.24
4.15.0-2022.24
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-91.102
5.4.0-91.102
ubuntu/linux-aws<5.4.0-1060.63
5.4.0-1060.63
ubuntu/linux-aws-5.11<5.11.0-1019.20~20.04.1
5.11.0-1019.20~20.04.1
ubuntu/linux-azure<5.4.0-1064.67
5.4.0-1064.67
ubuntu/linux-azure-5.11<5.11.0-1017.18~20.04.1
5.11.0-1017.18~20.04.1
ubuntu/linux-bluefield<5.4.0-1022.25
5.4.0-1022.25
ubuntu/linux-gcp<5.4.0-1058.62
5.4.0-1058.62
ubuntu/linux-gcp-5.11<5.11.0-1020.22~20.04.1
5.11.0-1020.22~20.04.1
ubuntu/linux-gke<5.4.0-1056.59
5.4.0-1056.59
ubuntu/linux-gkeop<5.4.0-1027.28
5.4.0-1027.28
ubuntu/linux-hwe-5.11<5.11.0-37.41~20.04.2
5.11.0-37.41~20.04.2
ubuntu/linux-ibm<5.4.0-1008.9
5.4.0-1008.9
ubuntu/linux-kvm<5.4.0-1050.52
5.4.0-1050.52
ubuntu/linux-oem-5.10<5.10.0-1050.52
5.10.0-1050.52
ubuntu/linux-oem-5.13<5.13.0-1014.18
5.13.0-1014.18
ubuntu/linux-oracle<5.4.0-1058.62
5.4.0-1058.62
ubuntu/linux-oracle-5.11<5.11.0-1019.20~20.04.1
5.11.0-1019.20~20.04.1
ubuntu/linux-raspi<5.4.0-1047.52
5.4.0-1047.52
ubuntu/linux-riscv-5.11<5.11.0-1020.21~20.04.1
5.11.0-1020.21~20.04.1
ubuntu/linux-aws-5.8*
ubuntu/linux-azure-5.8*
ubuntu/linux-azure-fde-5.15<5.15.0-1114.123~20.04.1
5.15.0-1114.123~20.04.1
ubuntu/linux-gcp-5.8*
ubuntu/linux-hwe-5.8*
ubuntu/linux-oem-5.6*
ubuntu/linux-oracle-5.8*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.8*
ubuntu/linux-aws-fips<5.4.0-1069.73+fips2
5.4.0-1069.73+fips2
ubuntu/linux-azure-fips<5.4.0-1073.76+fips1
5.4.0-1073.76+fips1
ubuntu/linux-fips<5.4.0-1037.43
5.4.0-1037.43
ubuntu/linux-gcp-fips<5.4.0-1067.71~20.04.1
5.4.0-1067.71~20.04.1
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-raspi-realtime*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-372.9.1.rt7.166.el8
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-372.9.1.el8
  3. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  4. Upgrade

    Upgrade android/:linux_kernel: to a version that resolves this vulnerability.

    Fixed in :2022-03-05
  5. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 3.13.0-199.250
  6. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.4.0-1103.108
  7. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 4.15.0-1127.140~14.04.1
  8. Upgrade

    Upgrade ubuntu/linux-lts-xenial to a version that resolves this vulnerability.

    Fixed in 4.4.0-223.256~14.04.1
  9. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 4.4.0-223.256
  10. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.4.0-1139.153
  11. Upgrade

    Upgrade ubuntu/linux-aws-hwe to a version that resolves this vulnerability.

    Fixed in 4.15.0-1116.123~16.04.1
  12. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 4.15.0-1127.140~16.04.1
  13. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 4.15.0-1112.126~16.04.1
  14. Upgrade

    Upgrade ubuntu/linux-hwe to a version that resolves this vulnerability.

    Fixed in 4.15.0-163.171~16.04.1
  15. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 4.4.0-1104.113
  16. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 4.15.0-1084.92~16.04.1
  17. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 4.4.0-1073.79
  18. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 4.15.0-163.171
  19. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.15.0-1116.123
  20. Upgrade

    Upgrade ubuntu/linux-aws-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1060.63~18.04.1
  21. Upgrade

    Upgrade ubuntu/linux-azure-4.15 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1127.140
  22. Upgrade

    Upgrade ubuntu/linux-azure-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1064.67~18.04.1
  23. Upgrade

    Upgrade ubuntu/linux-dell300x to a version that resolves this vulnerability.

    Fixed in 4.15.0-1031.36
  24. Upgrade

    Upgrade ubuntu/linux-gcp-4.15 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1112.126
  25. Upgrade

    Upgrade ubuntu/linux-gcp-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1058.62~18.04.1
  26. Upgrade

    Upgrade ubuntu/linux-gke-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1056.59~18.04.1
  27. Upgrade

    Upgrade ubuntu/linux-gkeop-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1027.28~18.04.1
  28. Upgrade

    Upgrade ubuntu/linux-hwe-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-91.102~18.04.1
  29. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 4.15.0-1103.105
  30. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 4.15.0-1084.92
  31. Upgrade

    Upgrade ubuntu/linux-oracle-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1058.62~18.04.1
  32. Upgrade

    Upgrade ubuntu/linux-raspi-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1047.52~18.04.1
  33. Upgrade

    Upgrade ubuntu/linux-raspi2 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1099.106
  34. Upgrade

    Upgrade ubuntu/linux-snapdragon to a version that resolves this vulnerability.

    Fixed in 4.15.0-1116.125
  35. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2057.59
  36. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2039.43
  37. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-1073.82
  38. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2022.24
  39. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 5.4.0-91.102
  40. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 5.4.0-1060.63
  41. Upgrade

    Upgrade ubuntu/linux-aws-5.11 to a version that resolves this vulnerability.

    Fixed in 5.11.0-1019.20~20.04.1
  42. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 5.4.0-1064.67
  43. Upgrade

    Upgrade ubuntu/linux-azure-5.11 to a version that resolves this vulnerability.

    Fixed in 5.11.0-1017.18~20.04.1
  44. Upgrade

    Upgrade ubuntu/linux-bluefield to a version that resolves this vulnerability.

    Fixed in 5.4.0-1022.25
  45. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 5.4.0-1058.62
  46. Upgrade

    Upgrade ubuntu/linux-gcp-5.11 to a version that resolves this vulnerability.

    Fixed in 5.11.0-1020.22~20.04.1
  47. Upgrade

    Upgrade ubuntu/linux-gke to a version that resolves this vulnerability.

    Fixed in 5.4.0-1056.59
  48. Upgrade

    Upgrade ubuntu/linux-gkeop to a version that resolves this vulnerability.

    Fixed in 5.4.0-1027.28
  49. Upgrade

    Upgrade ubuntu/linux-hwe-5.11 to a version that resolves this vulnerability.

    Fixed in 5.11.0-37.41~20.04.2
  50. Upgrade

    Upgrade ubuntu/linux-ibm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1008.9
  51. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1050.52
  52. Upgrade

    Upgrade ubuntu/linux-oem-5.10 to a version that resolves this vulnerability.

    Fixed in 5.10.0-1050.52
  53. Upgrade

    Upgrade ubuntu/linux-oem-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1014.18
  54. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 5.4.0-1058.62
  55. Upgrade

    Upgrade ubuntu/linux-oracle-5.11 to a version that resolves this vulnerability.

    Fixed in 5.11.0-1019.20~20.04.1
  56. Upgrade

    Upgrade ubuntu/linux-raspi to a version that resolves this vulnerability.

    Fixed in 5.4.0-1047.52
  57. Upgrade

    Upgrade ubuntu/linux-riscv-5.11 to a version that resolves this vulnerability.

    Fixed in 5.11.0-1020.21~20.04.1
  58. Upgrade

    Upgrade ubuntu/linux-azure-fde-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1114.123~20.04.1
  59. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1069.73+fips2
  60. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1073.76+fips1
  61. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1037.43
  62. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1067.71~20.04.1
  63. Configuration

    Prevent the hso module from being loaded automatically to mitigate the use-after-free vulnerability.

    Linux kernel hso module module loading = disabled

Event History

Oct 2, 2020
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 21, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via MITRE·12:00 AM
Description
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
Data Sourced
via OSV·03:16 PM
DescriptionSeverityAffected Software
Mar 1, 2022
Advisory Published
via OSV·12:00 AM
Feb 24, 2023
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
03:15 PM
Affected Software
May 12, 2023
Data Sourced
via Red Hat·07:42 PM
DescriptionSeverityAffected Software
Mar 25, 2024
Updated
via NVD·01:15 AM
Affected Software
Nov 21, 2024
Updated
via NVD·06:14 AM
RemedyAffected Software
Jun 17, 2026
Updated
via NVD·04:00 AM
RemedyAffected Software
Oct 8, 2026
Updated
via NVD·10:17 PM
Affected Software
Nov 12, 2026
Updated
via OSV·05:22 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2021-37159?

CVE-2021-37159 has a medium severity rating, allowing local users to cause a crash or escalate privileges.

2

How do I fix CVE-2021-37159?

To fix CVE-2021-37159, update your Linux kernel to versions 0:4.18.0-372.9.1.rt7.166.el8 or 0:4.18.0-372.9.1.el8, or ensure your system is running a patched version of the kernel.

3

Which versions of the Linux kernel are affected by CVE-2021-37159?

CVE-2021-37159 affects Linux kernel versions prior to 5.13.4 and other specific distributions such as Debian Linux 9.0 and certain Oracle communications software versions.

4

Can CVE-2021-37159 be exploited remotely?

CVE-2021-37159 is not remotely exploitable as it requires local user access to be triggered.

5

What kind of devices are impacted by CVE-2021-37159?

CVE-2021-37159 impacts USB High Speed Mobile Devices functionality within the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203