CVE-2019-19537: Race Condition

Published Aug 12, 2019
·
Updated

A flaw was found in the Linux kernel where there is a race condition bug that can be caused by a malicious USB device in the USB character device driver layer. An attacker who is able to hot plug at least two devices of this class can cause a a use-after-free situation.

This affects the generic character device layer devices and not a specific device driver.

References:

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

Upstream Patch: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=303911cfc5b95d33687d9046133ff184cf5043ff

Other sources

A flaw was found in the Linux kernel, where there is a race condition bug that can be caused by a malicious USB device in the USB character device driver layer. An attacker who can hotplug at least two devices of this class can cause a use-after-free situation.

In the Linux kernel before 5.2.10, there is a race condition bug that can be caused by a malicious USB device in the USB character device driver layer, aka CID-303911cfc5b9. This affects drivers/usb/core/file.c.

Affected Software

51 affected componentsFixes available
redhat/kernel-rt<0:3.10.0-1160.rt56.1131.el7
0:3.10.0-1160.rt56.1131.el7
redhat/kernel<0:3.10.0-1160.el7
0:3.10.0-1160.el7
redhat/kernel-rt<0:4.18.0-240.rt7.54.el8
0:4.18.0-240.rt7.54.el8
redhat/kernel<0:4.18.0-240.el8
0:4.18.0-240.el8
Linux Linux kernel<5.2.10
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-1160.rt56.1131.el7
  2. Upgrade

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

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

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

    Fixed in 0:4.18.0-240.rt7.54.el8
  4. Upgrade

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

    Fixed in 0:4.18.0-240.el8
  5. Upgrade

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

    Fixed in 4.4.0-1056.60
  6. Upgrade

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

    Fixed in 4.15.0-1060.65~14.04.1
  7. Upgrade

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

    Fixed in 4.4.0-166.195~14.04.1
  8. Upgrade

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

    Fixed in 4.4.0-166.195
  9. Upgrade

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

    Fixed in 4.4.0-1096.107
  10. Upgrade

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

    Fixed in 4.15.0-1051.53~16.04.1
  11. Upgrade

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

    Fixed in 4.15.0-1060.65
  12. Upgrade

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

    Fixed in 4.15.0-1046.49
  13. Upgrade

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

    Fixed in 4.15.0-65.74~16.04.1
  14. Upgrade

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

    Fixed in 4.4.0-1060.67
  15. Upgrade

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

    Fixed in 4.15.0-1026.29~16.04.1
  16. Upgrade

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

    Fixed in 4.4.0-1124.133
  17. Upgrade

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

    Fixed in 4.4.0-1128.136
  18. Upgrade

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

    Fixed in 4.4.0-1023.28
  19. Upgrade

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

    Fixed in 4.15.0-65.74
  20. Upgrade

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

    Fixed in 4.15.0-1051.53
  21. Upgrade

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

    Fixed in 5.0.0-1022.23~18.04.1
  22. Upgrade

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

    Fixed in 5.0.0-1020.20~18.04.1
  23. Upgrade

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

    Fixed in 4.15.0-1045.48
  24. Upgrade

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

    Fixed in 5.0.0-1020.20~18.04.1
  25. Upgrade

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

    Fixed in 5.0.0-31.33~18.04.1
  26. Upgrade

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

    Fixed in 4.15.0-1047.47
  27. Upgrade

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

    Fixed in 4.15.0-1057.66
  28. Upgrade

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

    Fixed in 5.0.0-1024.27
  29. Upgrade

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

    Fixed in 4.15.0-1026.29
  30. Upgrade

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

    Fixed in 4.15.0-1048.52
  31. Upgrade

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

    Fixed in 4.15.0-1065.72
  32. Upgrade

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

    Fixed in 4.15.0-2018.18
  33. Upgrade

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

    Fixed in 4.15.0-2006.7
  34. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in 5.2.10
  35. Configuration

    For each USB port able to be attacked, replace X with the port number and run `echo disabled >> /sys/bus/usb/devices/usbX/power/wakeup` followed by `echo suspend | sudo tee /sys/bus/usb/devices/usbX/power/level`. Reapply this after each reboot because the change does not persist.

    USB ports power/wakeup and power/level = disabled and suspend

Event History

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

Parent advisories

This vulnerability appears in the following advisories.

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