CVE-2021-3679: Medium severity Linux Linux kernel vulnerability

Published Jul 20, 2021
·
Updated

A lack of CPU resource in the Linux kernel tracing module functionality in versions prior to 5.14-rc3 was found in the way user uses trace ring buffer in a specific way. Only privileged local users (with CAPSYSADMIN capability) could use this flaw to starve the resources causing denial of service.

Other sources

A lack of CPU resources in the Linux kernel tracing module functionality was found in the way users use the trace ring buffer in specific way. Only privileged local users (with CAPSYSADMIN capability) could use this flaw to starve the resources causing denial of service.

Vulnerability in tracing module in kernel/trace/ringbuffer.c caused by a bug in rbpercpuempty() that uses a stale value and could cause tracingreadpipe() to be trapped in an event-polling loop infinitely.

The victim process (that is trapped) will always be in running state, drain a lot of power and cannot be killed by any UNIX signal (including SIGKILL). This vulnerability can be exploited merely using bash script, with sufficient privilege to control tracefs (like root or has CAPSYSADMIN capability).

Patch: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=67f0d6d9883c13174669f88adac4f0ee656cc16a

— Red Hat

Affected Software

105 affected componentsFixes available
redhat/kernel-rt<0:4.18.0-348.rt7.130.el8
0:4.18.0-348.rt7.130.el8
redhat/kernel<0:4.18.0-348.el8
0:4.18.0-348.el8
Linux Linux kernel<5.14
Linux Linux kernel=5.14
Linux Linux kernel=5.14-rc1
Linux Linux kernel=5.14-rc2
redhat Enterprise Linux=8.0
Debian Debian Linux=9.0
Debian Debian Linux=10.0
redhat/kernel<5.14
5.14
ubuntu/linux-aws<4.4.0-1099.104
4.4.0-1099.104
ubuntu/linux-azure<4.15.0-1124.137~14.04.1
4.15.0-1124.137~14.04.1
ubuntu/linux-lts-xenial<4.4.0-219.252~14.04.1
4.4.0-219.252~14.04.1
ubuntu/linux*
ubuntu/linux<4.4.0-219.252
4.4.0-219.252
ubuntu/linux-aws<4.4.0-1135.149
4.4.0-1135.149
ubuntu/linux-aws-hwe<4.15.0-1112.119~16.04.1
4.15.0-1112.119~16.04.1
ubuntu/linux-azure<4.15.0-1124.137~16.04.1
4.15.0-1124.137~16.04.1
ubuntu/linux-gcp<4.15.0-1109.123~16.04.1
4.15.0-1109.123~16.04.1
ubuntu/linux-hwe<4.15.0-159.167~16.04.1
4.15.0-159.167~16.04.1
ubuntu/linux-kvm<4.4.0-1100.109
4.4.0-1100.109
ubuntu/linux-oracle<4.15.0-1081.89~16.04.1
4.15.0-1081.89~16.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux-fips<4.4.0-1069.75
4.4.0-1069.75
ubuntu/linux-fips*
ubuntu/linux<4.15.0-159.167
4.15.0-159.167
ubuntu/linux-aws<4.15.0-1112.119
4.15.0-1112.119
ubuntu/linux-aws-5.4<5.4.0-1057.60~18.04.1
5.4.0-1057.60~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1124.137
4.15.0-1124.137
ubuntu/linux-azure-5.4<5.4.0-1059.62~18.04.1
5.4.0-1059.62~18.04.1
ubuntu/linux-dell300x<4.15.0-1028.33
4.15.0-1028.33
ubuntu/linux-gcp-4.15<4.15.0-1109.123
4.15.0-1109.123
ubuntu/linux-gcp-5.4<5.4.0-1053.57~18.04.1
5.4.0-1053.57~18.04.1
ubuntu/linux-gke-5.4<5.4.0-1053.56~18.04.1
5.4.0-1053.56~18.04.1
ubuntu/linux-gkeop-5.4<5.4.0-1024.25~18.04.1
5.4.0-1024.25~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-87.98~18.04.1
5.4.0-87.98~18.04.1
ubuntu/linux-kvm<4.15.0-1100.102
4.15.0-1100.102
ubuntu/linux-oracle<4.15.0-1081.89
4.15.0-1081.89
ubuntu/linux-oracle-5.4<5.4.0-1055.59~18.04.1
5.4.0-1055.59~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1044.48~18.04.1
5.4.0-1044.48~18.04.1
ubuntu/linux-raspi2<4.15.0-1096.102
4.15.0-1096.102
ubuntu/linux-snapdragon<4.15.0-1113.122
4.15.0-1113.122
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-2054.56
4.15.0-2054.56
ubuntu/linux-azure-fips<4.15.0-2036.40
4.15.0-2036.40
ubuntu/linux-fips<4.15.0-1070.79
4.15.0-1070.79
ubuntu/linux-gcp-fips<4.15.0-2019.21
4.15.0-2019.21
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-88.99
5.4.0-88.99
ubuntu/linux-aws<5.4.0-1057.60
5.4.0-1057.60
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-1059.62
5.4.0-1059.62
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-1019.22
5.4.0-1019.22
ubuntu/linux-gcp<5.4.0-1053.57
5.4.0-1053.57
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-1053.56
5.4.0-1053.56
ubuntu/linux-gkeop<5.4.0-1024.25
5.4.0-1024.25
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-1005.6
5.4.0-1005.6
ubuntu/linux-kvm<5.4.0-1047.49
5.4.0-1047.49
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-1055.59
5.4.0-1055.59
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-1044.48
5.4.0-1044.48
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-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-1034.40
5.4.0-1034.40
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*
debian/linux
4.9.290-14.19.208-15.10.46-55.14.6-1
debian/linux-4.19
4.19.208-1~deb9u1

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-348.rt7.130.el8
  2. Upgrade

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

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

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

    Fixed in 5.14
  4. Upgrade

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

    Fixed in 4.4.0-1099.104
  5. Upgrade

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

    Fixed in 4.15.0-1124.137~14.04.1
  6. Upgrade

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

    Fixed in 4.4.0-219.252~14.04.1
  7. Upgrade

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

    Fixed in 4.4.0-219.252
  8. Upgrade

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

    Fixed in 4.4.0-1135.149
  9. Upgrade

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

    Fixed in 4.15.0-1112.119~16.04.1
  10. Upgrade

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

    Fixed in 4.15.0-1124.137~16.04.1
  11. Upgrade

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

    Fixed in 4.15.0-1109.123~16.04.1
  12. Upgrade

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

    Fixed in 4.15.0-159.167~16.04.1
  13. Upgrade

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

    Fixed in 4.4.0-1100.109
  14. Upgrade

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

    Fixed in 4.15.0-1081.89~16.04.1
  15. Upgrade

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

    Fixed in 4.4.0-1069.75
  16. Upgrade

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

    Fixed in 4.15.0-159.167
  17. Upgrade

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

    Fixed in 4.15.0-1112.119
  18. Upgrade

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

    Fixed in 5.4.0-1057.60~18.04.1
  19. Upgrade

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

    Fixed in 4.15.0-1124.137
  20. Upgrade

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

    Fixed in 5.4.0-1059.62~18.04.1
  21. Upgrade

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

    Fixed in 4.15.0-1028.33
  22. Upgrade

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

    Fixed in 4.15.0-1109.123
  23. Upgrade

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

    Fixed in 5.4.0-1053.57~18.04.1
  24. Upgrade

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

    Fixed in 5.4.0-1053.56~18.04.1
  25. Upgrade

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

    Fixed in 5.4.0-1024.25~18.04.1
  26. Upgrade

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

    Fixed in 5.4.0-87.98~18.04.1
  27. Upgrade

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

    Fixed in 4.15.0-1100.102
  28. Upgrade

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

    Fixed in 4.15.0-1081.89
  29. Upgrade

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

    Fixed in 5.4.0-1055.59~18.04.1
  30. Upgrade

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

    Fixed in 5.4.0-1044.48~18.04.1
  31. Upgrade

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

    Fixed in 4.15.0-1096.102
  32. Upgrade

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

    Fixed in 4.15.0-1113.122
  33. Upgrade

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

    Fixed in 4.15.0-2054.56
  34. Upgrade

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

    Fixed in 4.15.0-2036.40
  35. Upgrade

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

    Fixed in 4.15.0-1070.79
  36. Upgrade

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

    Fixed in 4.15.0-2019.21
  37. Upgrade

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

    Fixed in 5.4.0-88.99
  38. Upgrade

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

    Fixed in 5.4.0-1057.60
  39. Upgrade

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

    Fixed in 5.11.0-1019.20~20.04.1
  40. Upgrade

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

    Fixed in 5.4.0-1059.62
  41. Upgrade

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

    Fixed in 5.11.0-1017.18~20.04.1
  42. Upgrade

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

    Fixed in 5.4.0-1019.22
  43. Upgrade

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

    Fixed in 5.4.0-1053.57
  44. Upgrade

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

    Fixed in 5.11.0-1020.22~20.04.1
  45. Upgrade

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

    Fixed in 5.4.0-1053.56
  46. Upgrade

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

    Fixed in 5.4.0-1024.25
  47. Upgrade

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

    Fixed in 5.11.0-37.41~20.04.2
  48. Upgrade

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

    Fixed in 5.4.0-1005.6
  49. Upgrade

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

    Fixed in 5.4.0-1047.49
  50. Upgrade

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

    Fixed in 5.10.0-1050.52
  51. Upgrade

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

    Fixed in 5.13.0-1014.18
  52. Upgrade

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

    Fixed in 5.4.0-1055.59
  53. Upgrade

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

    Fixed in 5.11.0-1019.20~20.04.1
  54. Upgrade

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

    Fixed in 5.4.0-1044.48
  55. Upgrade

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

    Fixed in 5.11.0-1020.21~20.04.1
  56. Upgrade

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

    Fixed in 5.4.0-1069.73+fips2
  57. Upgrade

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

    Fixed in 5.4.0-1073.76+fips1
  58. Upgrade

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

    Fixed in 5.4.0-1034.40
  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 debian/linux to a version that resolves this vulnerability.

    Fixed in 4.9.290-1Fixed in 4.19.208-1Fixed in 5.10.46-5Fixed in 5.14.6-1
  61. Upgrade

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

    Fixed in 4.19.208-1~deb9u1

Event History

Jul 20, 2021
Exploit Published
via GitHub·07:42 AM
CVE Published
09:00 AM
Data Sourced
09:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 5, 2021
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
CVE Published
via MITRE·07:54 PM
Data Sourced
via MITRE·07:54 PM
DescriptionWeakness
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software
Nov 9, 2021
Data Sourced
via Red Hat·09:53 PM
DescriptionSeverityAffected Software
Oct 27, 2022
Data Sourced
via NVD·12:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
12:29 PM
Affected Software
Nov 21, 2024
Updated
via NVD·06:22 AM
RemedyAffected Software
Nov 11, 2026
Updated
via OSV·09:37 AM
Affected Software
Nov 12, 2026
Updated
via OSV·05:22 PM
Affected 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-2021-3679?

CVE-2021-3679 is classified as a high severity vulnerability that can lead to a denial of service.

2

How do I fix CVE-2021-3679?

To fix CVE-2021-3679, upgrade to kernel versions 5.14 or later, or the specific patched versions indicated for your distribution.

3

Who is affected by CVE-2021-3679?

CVE-2021-3679 affects privileged local users with CAP_SYS_ADMIN capability on Linux kernel versions prior to 5.14-rc3.

4

What kind of attack does CVE-2021-3679 facilitate?

CVE-2021-3679 facilitates denial of service attacks by allowing users to exhaust CPU resources in the tracing module.

5

Is CVE-2021-3679 specific to any Linux distributions?

CVE-2021-3679 impacts various distributions including Red Hat and Debian that have kernel versions prior to 5.14.

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