CVE-2019-19527: Use After Free

Published Aug 6, 2019
·
Updated

A vulnerability was found in hiddevopen in drivers/hid/usbhid/hiddev.c in USB human interface device class subsystem, in this problem if a USB device fails to initialize correctly list management code in the error handling path can delete a list entry while other USB code paths could be using it. This may lead to a use-after-free situation which is frequently used by attackers to corrupt memory, panic the system or possibly escalate privileges.

Upstream Patch:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6d4472d7bec39917b54e4e80245784ea5d60ce49 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9c09b214f30e3c11f9b0b03f89442df03643794d

References:

https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.2.10 http://www.openwall.com/lists/oss-security/2019/12/03/4 http://seclists.org/oss-sec/2019/q4/115

Other sources

A vulnerability was found in hiddevopen in drivers/hid/usbhid/hiddev.c in the USB Human Interface Device class subsystem, where an existing device must be validated prior to its access. The device should also ensure the hiddevlist cleanup occurs at failure, as this may lead to a use-after-free problem, or possibly escalate privileges to an unauthorized user.

In the Linux kernel before 5.2.10, there is a use-after-free bug that can be caused by a malicious USB device in the drivers/hid/usbhid/hiddev.c driver, aka CID-9c09b214f30e.

Affected Software

59 affected componentsFixes available
redhat/kernel-rt<0:3.10.0-1127.18.2.rt56.1116.el7
0:3.10.0-1127.18.2.rt56.1116.el7
redhat/kernel<0:3.10.0-1127.18.2.el7
0:3.10.0-1127.18.2.el7
redhat/kernel<0:3.10.0-1062.36.1.el7
0:3.10.0-1062.36.1.el7
redhat/kernel-rt<0:4.18.0-147.8.1.rt24.101.el8_1
0:4.18.0-147.8.1.rt24.101.el8_1
redhat/kernel<0:4.18.0-147.8.1.el8_1
0:4.18.0-147.8.1.el8_1
Linux Linux kernel>=2.6.30<3.16.79
Linux Linux kernel>=3.17<4.4.190
Linux Linux kernel>=4.5<4.9.190
Linux Linux kernel>=4.10<4.14.140
Linux Linux kernel>=4.15<4.19.68
Linux Linux kernel>=4.20<5.2.10
Debian Debian Linux=8.0
openSUSE Leap=15.1
Google Android
ubuntu/linux-aws<4.4.0-1056.60
4.4.0-1056.60
ubuntu/linux-azure<4.15.0-1060.65~14.04.1
4.15.0-1060.65~14.04.1
ubuntu/linux-lts-xenial<4.4.0-166.195~14.04.1
4.4.0-166.195~14.04.1
ubuntu/linux*
ubuntu/linux<4.4.0-166.195
4.4.0-166.195
ubuntu/linux-aws<4.4.0-1096.107
4.4.0-1096.107
ubuntu/linux-aws-hwe<4.15.0-1051.53~16.04.1
4.15.0-1051.53~16.04.1
ubuntu/linux-azure<4.15.0-1060.65
4.15.0-1060.65
ubuntu/linux-gcp<4.15.0-1046.49
4.15.0-1046.49
ubuntu/linux-hwe<4.15.0-65.74~16.04.1
4.15.0-65.74~16.04.1
ubuntu/linux-kvm<4.4.0-1060.67
4.4.0-1060.67
ubuntu/linux-oracle<4.15.0-1026.29~16.04.1
4.15.0-1026.29~16.04.1
ubuntu/linux-raspi2<4.4.0-1124.133
4.4.0-1124.133
ubuntu/linux-snapdragon<4.4.0-1128.136
4.4.0-1128.136
ubuntu/linux-hwe-edge*
ubuntu/linux-fips<4.4.0-1023.28
4.4.0-1023.28
ubuntu/linux-fips*
ubuntu/linux<4.15.0-65.74
4.15.0-65.74
ubuntu/linux-aws<4.15.0-1051.53
4.15.0-1051.53
ubuntu/linux-azure<5.0.0-1022.23~18.04.1
5.0.0-1022.23~18.04.1
ubuntu/linux-gcp<5.0.0-1020.20~18.04.1
5.0.0-1020.20~18.04.1
ubuntu/linux-gke-4.15<4.15.0-1045.48
4.15.0-1045.48
ubuntu/linux-gke-5.0<5.0.0-1020.20~18.04.1
5.0.0-1020.20~18.04.1
ubuntu/linux-hwe<5.0.0-31.33~18.04.1
5.0.0-31.33~18.04.1
ubuntu/linux-kvm<4.15.0-1047.47
4.15.0-1047.47
ubuntu/linux-oem<4.15.0-1057.66
4.15.0-1057.66
ubuntu/linux-oem-osp1<5.0.0-1024.27
5.0.0-1024.27
ubuntu/linux-oracle<4.15.0-1026.29
4.15.0-1026.29
ubuntu/linux-raspi2<4.15.0-1048.52
4.15.0-1048.52
ubuntu/linux-snapdragon<4.15.0-1065.72
4.15.0-1065.72
ubuntu/linux-azure-edge*
ubuntu/linux-gcp-edge*
ubuntu/linux-hwe-edge*
ubuntu/linux-aws-fips<4.15.0-2018.18
4.15.0-2018.18
ubuntu/linux-azure-fips<4.15.0-2006.7
4.15.0-2006.7
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux-azure-fde*
ubuntu/linux-gke*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-riscv*
ubuntu/linux-raspi-realtime*
ubuntu/linux-vmware*

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:3.10.0-1127.18.2.rt56.1116.el7
  2. Upgrade

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

    Fixed in 0:3.10.0-1127.18.2.el7
  3. Upgrade

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

    Fixed in 0:3.10.0-1062.36.1.el7
  4. Upgrade

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

    Fixed in 0:4.18.0-147.8.1.rt24.101.el8_1
  5. Upgrade

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

    Fixed in 0:4.18.0-147.8.1.el8_1
  6. Upgrade

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

    Fixed in 4.4.0-1056.60
  7. Upgrade

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

    Fixed in 4.15.0-1060.65~14.04.1
  8. Upgrade

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

    Fixed in 4.4.0-166.195~14.04.1
  9. Upgrade

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

    Fixed in 4.4.0-166.195
  10. Upgrade

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

    Fixed in 4.4.0-1096.107
  11. Upgrade

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

    Fixed in 4.15.0-1051.53~16.04.1
  12. Upgrade

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

    Fixed in 4.15.0-1060.65
  13. Upgrade

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

    Fixed in 4.15.0-1046.49
  14. Upgrade

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

    Fixed in 4.15.0-65.74~16.04.1
  15. Upgrade

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

    Fixed in 4.4.0-1060.67
  16. Upgrade

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

    Fixed in 4.15.0-1026.29~16.04.1
  17. Upgrade

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

    Fixed in 4.4.0-1124.133
  18. Upgrade

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

    Fixed in 4.4.0-1128.136
  19. Upgrade

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

    Fixed in 4.4.0-1023.28
  20. Upgrade

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

    Fixed in 4.15.0-65.74
  21. Upgrade

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

    Fixed in 4.15.0-1051.53
  22. Upgrade

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

    Fixed in 5.0.0-1022.23~18.04.1
  23. Upgrade

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

    Fixed in 5.0.0-1020.20~18.04.1
  24. Upgrade

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

    Fixed in 4.15.0-1045.48
  25. Upgrade

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

    Fixed in 5.0.0-1020.20~18.04.1
  26. Upgrade

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

    Fixed in 5.0.0-31.33~18.04.1
  27. Upgrade

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

    Fixed in 4.15.0-1047.47
  28. Upgrade

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

    Fixed in 4.15.0-1057.66
  29. Upgrade

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

    Fixed in 5.0.0-1024.27
  30. Upgrade

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

    Fixed in 4.15.0-1026.29
  31. Upgrade

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

    Fixed in 4.15.0-1048.52
  32. Upgrade

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

    Fixed in 4.15.0-1065.72
  33. Upgrade

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

    Fixed in 4.15.0-2018.18
  34. Upgrade

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

    Fixed in 4.15.0-2006.7
  35. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in 5.2.10

Event History

Aug 6, 2019
CVE Published
12:00 AM
Dec 3, 2019
CVE Published
via MITRE·03:41 PM
Data Sourced
via MITRE·03:41 PM
Description
Data Sourced
via OSV·04:15 PM
DescriptionSeverityAffected Software
Dec 13, 2019
Data Sourced
via Red Hat·08:29 PM
DescriptionSeverityAffected Software
Mar 2, 2020
Data Sourced
via Android·12:00 AM
SeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2019-19527?

CVE-2019-19527 has a medium severity due to the potential for exploitation via a malicious USB device.

2

How do I fix CVE-2019-19527?

To fix CVE-2019-19527, update to the latest kernel versions that are above 5.2.10 or apply the appropriate patches as provided by your Linux distribution.

3

What systems are affected by CVE-2019-19527?

CVE-2019-19527 affects various Linux kernel versions prior to 5.2.10, including specific Red Hat and Debian releases.

4

What type of vulnerability is CVE-2019-19527?

CVE-2019-19527 is classified as a use-after-free vulnerability in the Linux kernel's USB HID driver.

5

Can CVE-2019-19527 be exploited remotely?

Yes, CVE-2019-19527 can potentially be exploited when a user connects a malicious USB device to the affected system.

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