CVE-2021-3444: Linux kernel bpf verifier incorrect mod32 truncation

Published Mar 23, 2021
·
Updated

Last updated 11 April 2025

Other sources

The bpf verifier in the Linux kernel did not properly handle mod32 destination register truncation when the source register was known to be 0. A local attacker with the ability to load bpf programs could use this gain out-of-bounds reads in kernel memory leading to information disclosure (kernel memory), and possibly out-of-bounds writes that could potentially lead to code execution.

Reference: https://www.openwall.com/lists/oss-security/2021/03/23/2

Upstream patch: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9b00f1b78809

— Red Hat

The bpf verifier in the Linux kernel did not properly handle mod32 destination register truncation when the source register was known to be 0. A local attacker with the ability to load bpf programs could use this gain out-of-bounds reads in kernel memory leading to information disclosure (kernel memory), and possibly out-of-bounds writes that could potentially lead to code execution. This issue was addressed in the upstream kernel in commit 9b00f1b78809 ("bpf: Fix truncation handling for mod32 dst reg wrt zero") and in Linux stable kernels 5.11.2, 5.10.19, and 5.4.101.

— Launchpad

Affected Software

59 affected componentsFixes available
Linux Linux kernel<5.4.101
Linux Linux kernel>=5.5.0<5.10.19
Linux Linux kernel>=5.11<5.11.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
5.10.223-15.10.234-16.1.129-16.1.133-16.12.21-16.12.22-1
android/:linux_kernel:>=:0<:2021-07-05
:2021-07-05
ubuntu/linux-hwe-edge*
ubuntu/linux-aws-5.4<5.4.0-1041.43~18.04.1
5.4.0-1041.43~18.04.1
ubuntu/linux-azure-5.4<5.4.0-1043.45~18.04.1
5.4.0-1043.45~18.04.1
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.3.0-72.68
5.3.0-72.68
ubuntu/linux-hwe-5.4<5.4.0-70.78~18.04.1
5.4.0-70.78~18.04.1
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-5.3<5.3.0-1038.40
5.3.0-1038.40
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-edge*
ubuntu/linux-oem*
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
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-1019.20
5.10.0-1019.20
ubuntu/linux-oem-5.6<5.6.0-1052.56
5.6.0-1052.56
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-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 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
  2. Upgrade

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

    Fixed in 5.4.0-1041.43~18.04.1
  3. Upgrade

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

    Fixed in 5.4.0-1043.45~18.04.1
  4. Upgrade

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

    Fixed in 5.4.0-1040.43~18.04.1
  5. Upgrade

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

    Fixed in 5.3.0-1041.44
  6. Upgrade

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

    Fixed in 5.4.0-1039.41~18.04.1
  7. Upgrade

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

    Fixed in 5.4.0-1012.13~18.04.1
  8. Upgrade

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

    Fixed in 5.3.0-72.68
  9. Upgrade

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

    Fixed in 5.4.0-70.78~18.04.1
  10. Upgrade

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

    Fixed in 5.4.0-1041.44~18.04.1
  11. Upgrade

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

    Fixed in 5.4.0-1032.35~18.04.1
  12. Upgrade

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

    Fixed in 5.3.0-1038.40
  13. Upgrade

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

    Fixed in 5.4.0-70.78
  14. Upgrade

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

    Fixed in 5.4.0-1041.43
  15. Upgrade

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

    Fixed in 5.4.0-1043.45
  16. Upgrade

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

    Fixed in 5.4.0-1040.43
  17. Upgrade

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

    Fixed in 5.4.0-1039.41
  18. Upgrade

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

    Fixed in 5.4.0-1012.13
  19. Upgrade

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

    Fixed in 5.8.0-48.54~20.04.1
  20. Upgrade

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

    Fixed in 5.4.0-1036.37
  21. Upgrade

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

    Fixed in 5.10.0-1019.20
  22. Upgrade

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

    Fixed in 5.6.0-1052.56
  23. Upgrade

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

    Fixed in 5.4.0-1041.44
  24. Upgrade

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

    Fixed in 5.4.0-1032.35
  25. Upgrade

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

    Fixed in 5.8.0-20.22~20.04.1
  26. Upgrade

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

    Fixed in 5.4.0-1069.73+fips2
  27. Upgrade

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

    Fixed in 5.4.0-1073.76+fips1
  28. Upgrade

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

    Fixed in 5.4.0-1067.71~20.04.1
  29. Upgrade

    Upgrade android/:linux_kernel: to a version that resolves this vulnerability.

    Fixed in :2021-07-05
  30. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Patch 9b00f1b78809

Event History

Mar 23, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via MITRE·12:00 AM
RemedyDescriptionSeverityWeakness
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
Data Sourced
via OSV·05:00 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·05:45 PM
Mar 24, 2021
Data Sourced
via Red Hat·05:43 PM
DescriptionSeverityAffected Software
Jul 1, 2021
Advisory Published
via OSV·12:00 AM
Dec 2, 2021
Data Sourced
07:37 PM
Weakness
Data Sourced
via NVD·07:37 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
07:37 PM
Affected 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

Frequently Asked Questions

1

What is the severity of CVE-2021-3444?

CVE-2021-3444 is considered to have a high severity due to its potential for exploitation leading to out-of-bounds reads in kernel memory.

2

How do I fix CVE-2021-3444?

To fix CVE-2021-3444, you should upgrade to the patched versions of the Linux kernel as specified by your distribution.

3

Which Linux kernel versions are affected by CVE-2021-3444?

CVE-2021-3444 affects kernel versions prior to 5.10.19, and also between 5.11 and 5.11.2.

4

Can an attacker exploit CVE-2021-3444 remotely?

CVE-2021-3444 requires a local attacker with the ability to load BPF programs, therefore it is not a remote exploit.

5

What are the possible impacts of CVE-2021-3444 if exploited?

The exploitation of CVE-2021-3444 can lead to unauthorized access to kernel memory, which may expose sensitive information or lead to further system compromises.

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