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

14 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
Google Android
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

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 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
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