CVE-2020-13974: Integer Overflow

Published Mar 22, 2020
·
Updated

A flaw integer overflow in the Linux kernel's virtual terminal keyboard driver was found in the way the user sends some specific keyboard code multiple times. A local user could use this flaw to crash the system or possibly escalate their privileges on the system.

Other sources

An issue was discovered in the Linux kernel 4.4 through 5.7.1. drivers/tty/vt/keyboard.c has an integer overflow if kascii is called several times in a row, aka CID-b86dab054059. NOTE: Members in the community argue that the integer overflow does not lead to a security issue in this case.

— Ubuntu

An issue was discovered in the Linux kernel 4.4 through 5.7.1. drivers/tty/vt/keyboard.c has an integer overflow if kascii is called several times in a row. NOTE: Members in the community argue that the integer overflow does not lead to a security issue in this case.

Reference: https://lkml.org/lkml/2020/3/22/482

Upstream patches: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=dad0bf9ce93fa40b667eccd3306783f4db4b932b https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b86dab054059b970111b5516ae548efaae5b3aae

— Red Hat

Affected Software

94 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
redhat/kernel<5.8
5.8
Linux Linux kernel<4.4.227
Linux Linux kernel>=4.5<4.9.227
Linux Linux kernel>=4.10<4.14.184
Linux Linux kernel>=4.15<4.19.128
Linux Linux kernel>=4.20<5.4.46
Linux Linux kernel>=5.5<5.6.18
Linux Linux kernel>=5.7<5.7.2
Debian Debian Linux=9.0
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=20.04
debian/linux
6.1.176-16.1.190-16.12.107-16.12.113-17.2.12-17.2.13-1
ubuntu/linux-aws<4.4.0-1075.79
4.4.0-1075.79
ubuntu/linux-azure<4.15.0-1093.103~14.04.1
4.15.0-1093.103~14.04.1
ubuntu/linux-lts-xenial<4.4.0-186.216~14.04.1
4.4.0-186.216~14.04.1
ubuntu/linux*
ubuntu/linux<4.4.0-186.216
4.4.0-186.216
ubuntu/linux-aws<4.4.0-1111.123
4.4.0-1111.123
ubuntu/linux-aws-hwe<4.15.0-1080.84~16.04.1
4.15.0-1080.84~16.04.1
ubuntu/linux-azure<4.15.0-1093.103~16.04.1
4.15.0-1093.103~16.04.1
ubuntu/linux-gcp<4.15.0-1081.92~16.04.1
4.15.0-1081.92~16.04.1
ubuntu/linux-hwe<4.15.0-115.116~16.04.1
4.15.0-115.116~16.04.1
ubuntu/linux-kvm<4.4.0-1077.84
4.4.0-1077.84
ubuntu/linux-oracle<4.15.0-1051.55~16.04.1
4.15.0-1051.55~16.04.1
ubuntu/linux-raspi2<4.4.0-1136.145
4.4.0-1136.145
ubuntu/linux-snapdragon<4.4.0-1140.148
4.4.0-1140.148
ubuntu/linux-hwe-edge*
ubuntu/linux-fips<4.4.0-1043.48
4.4.0-1043.48
ubuntu/linux-fips*
ubuntu/linux<4.15.0-115.116
4.15.0-115.116
ubuntu/linux-aws<4.15.0-1080.84
4.15.0-1080.84
ubuntu/linux-aws-5.3<5.3.0-1032.34~18.04.2
5.3.0-1032.34~18.04.2
ubuntu/linux-aws-5.4<5.4.0-1022.22~18.04.1
5.4.0-1022.22~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1093.103
4.15.0-1093.103
ubuntu/linux-azure-5.3<5.3.0-1034.35~18.04.1
5.3.0-1034.35~18.04.1
ubuntu/linux-azure-5.4<5.4.0-1023.23~18.04.1
5.4.0-1023.23~18.04.1
ubuntu/linux-gcp-4.15<4.15.0-1081.92
4.15.0-1081.92
ubuntu/linux-gcp-5.3<5.3.0-1032.34~18.04.1
5.3.0-1032.34~18.04.1
ubuntu/linux-gcp-5.4<5.4.0-1022.22~18.04.1
5.4.0-1022.22~18.04.1
ubuntu/linux-gke-4.15<4.15.0-1067.70
4.15.0-1067.70
ubuntu/linux-gke-5.0<5.0.0-1045.46
5.0.0-1045.46
ubuntu/linux-gke-5.3<5.3.0-1032.34~18.04.1
5.3.0-1032.34~18.04.1
ubuntu/linux-hwe<5.3.0-64.58~18.04.1
5.3.0-64.58~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-45.49~18.04.2
5.4.0-45.49~18.04.2
ubuntu/linux-kvm<4.15.0-1072.73
4.15.0-1072.73
ubuntu/linux-oem<4.15.0-1094.104
4.15.0-1094.104
ubuntu/linux-oem-osp1<5.0.0-1065.70
5.0.0-1065.70
ubuntu/linux-oracle<4.15.0-1051.55
4.15.0-1051.55
ubuntu/linux-oracle-5.3<5.3.0-1030.32~18.04.1
5.3.0-1030.32~18.04.1
ubuntu/linux-oracle-5.4<5.4.0-1022.22~18.04.1
5.4.0-1022.22~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1016.17~18.04.1
5.4.0-1016.17~18.04.1
ubuntu/linux-raspi2<4.15.0-1068.72
4.15.0-1068.72
ubuntu/linux-raspi2-5.3<5.3.0-1030.32~18.04.2
5.3.0-1030.32~18.04.2
ubuntu/linux-snapdragon<4.15.0-1084.92
4.15.0-1084.92
ubuntu/linux-aws-5.0*
ubuntu/linux-azure*
ubuntu/linux-azure-edge*
ubuntu/linux-gcp*
ubuntu/linux-gcp-edge*
ubuntu/linux-hwe-edge*
ubuntu/linux-oracle-5.0*
ubuntu/linux-aws-fips<4.15.0-2025.25
4.15.0-2025.25
ubuntu/linux-azure-fips<4.15.0-2007.8
4.15.0-2007.8
ubuntu/linux-fips<4.15.0-1039.44
4.15.0-1039.44
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-45.49
5.4.0-45.49
ubuntu/linux-aws<5.4.0-1022.22
5.4.0-1022.22
ubuntu/linux-azure<5.4.0-1023.23
5.4.0-1023.23
ubuntu/linux-gcp<5.4.0-1022.22
5.4.0-1022.22
ubuntu/linux-kvm<5.4.0-1021.21
5.4.0-1021.21
ubuntu/linux-oem-5.6<5.6.0-1018.18
5.6.0-1018.18
ubuntu/linux-oracle<5.4.0-1022.22
5.4.0-1022.22
ubuntu/linux-raspi<5.4.0-1016.17
5.4.0-1016.17
ubuntu/linux-riscv<5.4.0-31.35
5.4.0-31.35
ubuntu/linux-azure-fde*
ubuntu/linux-azure-fde-5.15<5.15.0-1114.123~20.04.1
5.15.0-1114.123~20.04.1
ubuntu/linux-gke*
ubuntu/linux-raspi2*
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-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-gcp-fips*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-riscv*
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 redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.8
  4. Upgrade

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

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1
  5. Upgrade

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

    Fixed in 4.4.0-1075.79
  6. Upgrade

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

    Fixed in 4.15.0-1093.103~14.04.1
  7. Upgrade

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

    Fixed in 4.4.0-186.216~14.04.1
  8. Upgrade

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

    Fixed in 4.4.0-186.216
  9. Upgrade

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

    Fixed in 4.4.0-1111.123
  10. Upgrade

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

    Fixed in 4.15.0-1080.84~16.04.1
  11. Upgrade

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

    Fixed in 4.15.0-1093.103~16.04.1
  12. Upgrade

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

    Fixed in 4.15.0-1081.92~16.04.1
  13. Upgrade

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

    Fixed in 4.15.0-115.116~16.04.1
  14. Upgrade

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

    Fixed in 4.4.0-1077.84
  15. Upgrade

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

    Fixed in 4.15.0-1051.55~16.04.1
  16. Upgrade

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

    Fixed in 4.4.0-1136.145
  17. Upgrade

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

    Fixed in 4.4.0-1140.148
  18. Upgrade

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

    Fixed in 4.4.0-1043.48
  19. Upgrade

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

    Fixed in 4.15.0-115.116
  20. Upgrade

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

    Fixed in 4.15.0-1080.84
  21. Upgrade

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

    Fixed in 5.3.0-1032.34~18.04.2
  22. Upgrade

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

    Fixed in 5.4.0-1022.22~18.04.1
  23. Upgrade

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

    Fixed in 4.15.0-1093.103
  24. Upgrade

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

    Fixed in 5.3.0-1034.35~18.04.1
  25. Upgrade

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

    Fixed in 5.4.0-1023.23~18.04.1
  26. Upgrade

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

    Fixed in 4.15.0-1081.92
  27. Upgrade

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

    Fixed in 5.3.0-1032.34~18.04.1
  28. Upgrade

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

    Fixed in 5.4.0-1022.22~18.04.1
  29. Upgrade

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

    Fixed in 4.15.0-1067.70
  30. Upgrade

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

    Fixed in 5.0.0-1045.46
  31. Upgrade

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

    Fixed in 5.3.0-1032.34~18.04.1
  32. Upgrade

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

    Fixed in 5.3.0-64.58~18.04.1
  33. Upgrade

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

    Fixed in 5.4.0-45.49~18.04.2
  34. Upgrade

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

    Fixed in 4.15.0-1072.73
  35. Upgrade

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

    Fixed in 4.15.0-1094.104
  36. Upgrade

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

    Fixed in 5.0.0-1065.70
  37. Upgrade

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

    Fixed in 4.15.0-1051.55
  38. Upgrade

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

    Fixed in 5.3.0-1030.32~18.04.1
  39. Upgrade

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

    Fixed in 5.4.0-1022.22~18.04.1
  40. Upgrade

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

    Fixed in 5.4.0-1016.17~18.04.1
  41. Upgrade

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

    Fixed in 4.15.0-1068.72
  42. Upgrade

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

    Fixed in 5.3.0-1030.32~18.04.2
  43. Upgrade

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

    Fixed in 4.15.0-1084.92
  44. Upgrade

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

    Fixed in 4.15.0-2025.25
  45. Upgrade

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

    Fixed in 4.15.0-2007.8
  46. Upgrade

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

    Fixed in 4.15.0-1039.44
  47. Upgrade

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

    Fixed in 5.4.0-45.49
  48. Upgrade

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

    Fixed in 5.4.0-1022.22
  49. Upgrade

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

    Fixed in 5.4.0-1023.23
  50. Upgrade

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

    Fixed in 5.4.0-1022.22
  51. Upgrade

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

    Fixed in 5.4.0-1021.21
  52. Upgrade

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

    Fixed in 5.6.0-1018.18
  53. Upgrade

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

    Fixed in 5.4.0-1022.22
  54. Upgrade

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

    Fixed in 5.4.0-1016.17
  55. Upgrade

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

    Fixed in 5.4.0-31.35
  56. 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
  57. Upgrade

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

    Fixed in 5.4.0-1069.73+fips2
  58. Upgrade

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

    Fixed in 5.4.0-1073.76+fips1
  59. Upgrade

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

    Fixed in 5.4.0-1067.71~20.04.1
  60. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch b86dab054059b970111b5516ae548efaae5b3aae

Event History

Mar 22, 2020
CVE Published
12:00 AM
Jun 9, 2020
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
CVE Published
via MITRE·04:06 AM
Data Sourced
via MITRE·04:06 AM
Description
Data Sourced
via OSV·05:15 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·05:15 AM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2020-13974?

CVE-2020-13974 has a high severity rating due to its potential to crash the system or escalate user privileges.

2

How do I fix CVE-2020-13974?

To fix CVE-2020-13974, upgrade to the latest version of the Linux kernel or the specific patched versions provided by your distribution.

3

Which systems are affected by CVE-2020-13974?

CVE-2020-13974 affects various versions of the Linux kernel, including those from Red Hat, Debian, and Ubuntu.

4

Who can exploit CVE-2020-13974?

CVE-2020-13974 can be exploited by local users who can send specific keyboard codes multiple times.

5

When was CVE-2020-13974 disclosed?

CVE-2020-13974 was disclosed in July 2020.

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