CVE-2021-3600: Divide by Zero

Published Jun 23, 2021
·
Updated

A flaw was found in the Linux kernel’s eBPF verification code, where the eBPF 32-bit div/mod source register truncation could lead to out-of-bounds reads and writes. By default, accessing the eBPF verifier is only possible to privileged users with CAPSYSADMIN. This flaw allows a local user who can run eBPF instructions to crash the system or possibly escalate their privileges on the system. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.

Other sources

It was discovered that eBPF 32-bit div/mod source register truncation could lead to out-of-bounds reads and writes in the kernel. It was introduced by commit 68fda450a7df ("bpf: fix 32-bit divide by zero"). It was first introduced in 4.15-rc9, but backported and applied to v4.14.y, v4.9.y and v4.4.y. However, this specific attack will not work on v4.4.y and v4.9.y kernels as pointer arithmetic is prohibited on those kernels. This was introduced by commit f1174f77b50c ("bpf/verifier: rework value tracking"), in v4.14-rc1. The fix is commit e88b2c6e5a4d ("bpf: Fix 32 bit src register truncation on div/mod"), introduced in v5.11. It was backported and applied on v5.10.y and v5.4.y, but not v4.19.y and v4.14.y.

Reference: https://www.openwall.com/lists/oss-security/2021/06/23/1

— Red Hat

It was discovered that the eBPF implementation in the Linux kernel did not properly track bounds information for 32 bit registers when performing div and mod operations. A local attacker could use this to possibly execute arbitrary code.

— Launchpad

Affected Software

93 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
redhat/kernel<5.11
5.11
Linux Linux kernel>=4.14.115<4.14.308
Linux Linux kernel>=4.15<4.19.206
Linux Linux kernel>=4.20<5.4.98
Linux Linux kernel>=5.5<5.10.16
Linux Linux kernel=5.11-rc1
Linux Linux kernel=5.11-rc2
Linux Linux kernel=5.11-rc3
Linux Linux kernel=5.11-rc4
Linux Linux kernel=5.11-rc5
Linux Linux kernel=5.11-rc6
Linux Linux kernel=5.11-rc7
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Fedoraproject Fedora=34
redhat Enterprise Linux=8.0
debian/linux
5.10.223-15.10.234-16.1.129-16.1.133-16.12.21-16.12.22-1
ubuntu/linux-azure<4.15.0-1118.131~14.04.1
4.15.0-1118.131~14.04.1
ubuntu/linux-aws-hwe<4.15.0-1106.113~16.04.1
4.15.0-1106.113~16.04.1
ubuntu/linux-azure<4.15.0-1118.131~16.04.1
4.15.0-1118.131~16.04.1
ubuntu/linux-gcp<4.15.0-1103.116~16.04.1
4.15.0-1103.116~16.04.1
ubuntu/linux-hwe<4.15.0-147.151~16.04.1
4.15.0-147.151~16.04.1
ubuntu/linux-oracle<4.15.0-1075.83~16.04.1
4.15.0-1075.83~16.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux-fips*
ubuntu/linux-fips*
ubuntu/linux<4.15.0-147.151
4.15.0-147.151
ubuntu/linux-aws<4.15.0-1106.113
4.15.0-1106.113
ubuntu/linux-aws-5.4<5.4.0-1041.43~18.04.1
5.4.0-1041.43~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1118.131
4.15.0-1118.131
ubuntu/linux-azure-5.4<5.4.0-1043.45~18.04.1
5.4.0-1043.45~18.04.1
ubuntu/linux-dell300x<4.15.0-1022.26
4.15.0-1022.26
ubuntu/linux-gcp-4.15<4.15.0-1103.116
4.15.0-1103.116
ubuntu/linux-gcp-5.4<5.4.0-1040.43~18.04.1
5.4.0-1040.43~18.04.1
ubuntu/linux-gke-5.3<5.3.0-1041.44
5.3.0-1041.44
ubuntu/linux-gke-5.4<5.4.0-1039.41~18.04.1
5.4.0-1039.41~18.04.1
ubuntu/linux-gkeop-5.4<5.4.0-1012.13~18.04.1
5.4.0-1012.13~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-70.78~18.04.1
5.4.0-70.78~18.04.1
ubuntu/linux-kvm<4.15.0-1094.96
4.15.0-1094.96
ubuntu/linux-oracle<4.15.0-1075.83
4.15.0-1075.83
ubuntu/linux-oracle-5.4<5.4.0-1041.44~18.04.1
5.4.0-1041.44~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1032.35~18.04.1
5.4.0-1032.35~18.04.1
ubuntu/linux-raspi2<4.15.0-1089.94
4.15.0-1089.94
ubuntu/linux-raspi2-5.3<5.3.0-1038.40
5.3.0-1038.40
ubuntu/linux-snapdragon<4.15.0-1106.115
4.15.0-1106.115
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-2048.50
4.15.0-2048.50
ubuntu/linux-azure-fips<4.15.0-2030.33
4.15.0-2030.33
ubuntu/linux-fips<4.15.0-1063.71
4.15.0-1063.71
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-70.78
5.4.0-70.78
ubuntu/linux-aws<5.4.0-1041.43
5.4.0-1041.43
ubuntu/linux-azure<5.4.0-1043.45
5.4.0-1043.45
ubuntu/linux-gcp<5.4.0-1040.43
5.4.0-1040.43
ubuntu/linux-gke<5.4.0-1039.41
5.4.0-1039.41
ubuntu/linux-gkeop<5.4.0-1012.13
5.4.0-1012.13
ubuntu/linux-hwe-5.8<5.8.0-48.54~20.04.1
5.8.0-48.54~20.04.1
ubuntu/linux-kvm<5.4.0-1036.37
5.4.0-1036.37
ubuntu/linux-oem-5.10<5.10.0-1017.18
5.10.0-1017.18
ubuntu/linux-oracle<5.4.0-1041.44
5.4.0-1041.44
ubuntu/linux-raspi<5.4.0-1032.35
5.4.0-1032.35
ubuntu/linux-riscv-5.8<5.8.0-20.22~20.04.1
5.8.0-20.22~20.04.1
ubuntu/linux-oem-5.6*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
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-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-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.11
  4. Upgrade

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

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.133-1Fixed in 6.12.21-1Fixed in 6.12.22-1
  5. Upgrade

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

    Fixed in 4.15.0-1118.131~14.04.1
  6. Upgrade

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

    Fixed in 4.15.0-1106.113~16.04.1
  7. Upgrade

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

    Fixed in 4.15.0-1118.131~16.04.1
  8. Upgrade

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

    Fixed in 4.15.0-1103.116~16.04.1
  9. Upgrade

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

    Fixed in 4.15.0-147.151~16.04.1
  10. Upgrade

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

    Fixed in 4.15.0-1075.83~16.04.1
  11. Upgrade

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

    Fixed in 4.15.0-147.151
  12. Upgrade

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

    Fixed in 4.15.0-1106.113
  13. Upgrade

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

    Fixed in 5.4.0-1041.43~18.04.1
  14. Upgrade

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

    Fixed in 4.15.0-1118.131
  15. Upgrade

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

    Fixed in 5.4.0-1043.45~18.04.1
  16. Upgrade

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

    Fixed in 4.15.0-1022.26
  17. Upgrade

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

    Fixed in 4.15.0-1103.116
  18. Upgrade

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

    Fixed in 5.4.0-1040.43~18.04.1
  19. Upgrade

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

    Fixed in 5.3.0-1041.44
  20. Upgrade

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

    Fixed in 5.4.0-1039.41~18.04.1
  21. Upgrade

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

    Fixed in 5.4.0-1012.13~18.04.1
  22. Upgrade

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

    Fixed in 5.4.0-70.78~18.04.1
  23. Upgrade

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

    Fixed in 4.15.0-1094.96
  24. Upgrade

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

    Fixed in 4.15.0-1075.83
  25. Upgrade

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

    Fixed in 5.4.0-1041.44~18.04.1
  26. Upgrade

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

    Fixed in 5.4.0-1032.35~18.04.1
  27. Upgrade

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

    Fixed in 4.15.0-1089.94
  28. Upgrade

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

    Fixed in 5.3.0-1038.40
  29. Upgrade

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

    Fixed in 4.15.0-1106.115
  30. Upgrade

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

    Fixed in 4.15.0-2048.50
  31. Upgrade

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

    Fixed in 4.15.0-2030.33
  32. Upgrade

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

    Fixed in 4.15.0-1063.71
  33. Upgrade

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

    Fixed in 5.4.0-70.78
  34. Upgrade

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

    Fixed in 5.4.0-1041.43
  35. Upgrade

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

    Fixed in 5.4.0-1043.45
  36. Upgrade

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

    Fixed in 5.4.0-1040.43
  37. Upgrade

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

    Fixed in 5.4.0-1039.41
  38. Upgrade

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

    Fixed in 5.4.0-1012.13
  39. Upgrade

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

    Fixed in 5.8.0-48.54~20.04.1
  40. Upgrade

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

    Fixed in 5.4.0-1036.37
  41. Upgrade

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

    Fixed in 5.10.0-1017.18
  42. Upgrade

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

    Fixed in 5.4.0-1041.44
  43. Upgrade

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

    Fixed in 5.4.0-1032.35
  44. Upgrade

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

    Fixed in 5.8.0-20.22~20.04.1
  45. Upgrade

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

    Fixed in 5.4.0-1069.73+fips2
  46. Upgrade

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

    Fixed in 5.4.0-1073.76+fips1
  47. Upgrade

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

    Fixed in 5.4.0-1067.71~20.04.1
  48. Upgrade

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

    Patch e88b2c6e5a4d
  49. Configuration

    Set kernel.unprivileged_bpf_disabled to 1 to prevent unprivileged users from using eBPF.

    Linux kernel kernel.unprivileged_bpf_disabled = 1

Event History

Jun 22, 2021
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Description
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Jun 23, 2021
Data Sourced
12:00 AM
Weakness
Apr 17, 2022
Data Sourced
via Red Hat·09:30 PM
DescriptionSeverityAffected Software
Jan 8, 2024
CVE Published
via MITRE·06:16 PM
Data Sourced
via MITRE·06:16 PM
DescriptionSeverity
Jan 11, 2024
Data Sourced
via NVD·06:40 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·06:40 PM
Severity
Aug 22, 2024
Updated
via NVD·08:29 PM
Affected Software
Sep 4, 2024
Updated
via NVD·04:35 PM
SeverityWeaknessAffected Software
Nov 21, 2024
Updated
via NVD·06:21 AM
RemedyAffected Software
Jun 17, 2026
Updated
via NVD·04:05 AM
Affected Software
Nov 12, 2026
Updated
via OSV·05:22 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2021-3600?

CVE-2021-3600 has a medium severity rating due to its potential for local privilege escalation.

2

How do I fix CVE-2021-3600?

To fix CVE-2021-3600, upgrade to the kernel versions specified in the remediation details or install the provided patches.

3

What software is affected by CVE-2021-3600?

CVE-2021-3600 affects various versions of the Linux kernel, specifically those prior to the fixed versions stated in the remediation.

4

Is CVE-2021-3600 exploitable remotely?

No, CVE-2021-3600 is only exploitable locally by users with specific privileges.

5

What types of vulnerabilities are related to CVE-2021-3600?

CVE-2021-3600 is related to local privilege escalation through out-of-bounds read and write vulnerabilities.

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