CVE-2021-29154: Command Injection

Published Apr 6, 2021
·
Updated

A flaw was found in the Linux kernels eBPF implementation. By default, accessing the eBPF verifier is only accessible to privileged users with CAPSYSADMIN. A local user with the ability to insert eBPF instructions can abuse a flaw in eBPF to corrupt memory. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.

Other sources

An issue has been discovered in the BPF JIT compiler in the Linux kernel that can be abused by priviledged local users (root or CAPSYSADMIN) to escalate privileges. This depends on permission to execute eBPF system call.

— Red Hat

BPF JIT compilers in the Linux kernel through 5.11.12 have incorrect computation of branch displacements, allowing them to execute arbitrary code within the kernel context. This affects arch/x86/net/bpfjitcomp.c and arch/x86/net/bpfjitcomp32.c.

— Ubuntu

Linux Kernel could allow a could allow a local authenticated attacker to gain elevated privileges on the system, caused by an issue with incorrect computation of branch displacements in BPF JIT compiler. By sending a specially-crafted request, an authenticated attacker could exploit this vulnerability to gain elevated privileges, and execute arbitrary code in the Kernel mode.

— IBM

Affected Software

129 affected componentsFixes available
redhat/kernel-rt<0:3.10.0-1160.41.1.rt56.1181.el7
0:3.10.0-1160.41.1.rt56.1181.el7
redhat/kernel<0:3.10.0-1160.41.1.el7
0:3.10.0-1160.41.1.el7
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
IBM DRM<=2.0.6
Linux Linux kernel>=3.0<4.4.266
Linux Linux kernel>=4.5<4.9.266
Linux Linux kernel>=4.10<4.14.230
Linux Linux kernel>=4.15<4.19.186
Linux Linux kernel>=4.20<5.4.111
Linux Linux kernel>=5.5<5.10.29
Linux Linux kernel>=5.11<5.11.13
Fedoraproject Fedora=33
Debian Debian Linux=9.0
NetApp Cloud Backup
NetApp Hci Management Node
NetApp Solidfire
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H300e Firmware
NetApp H300e
All of the following
NetApp H500e Firmware
NetApp H500e
All of the following
NetApp H700e Firmware
NetApp H700e
All of the following
NetApp H410s Firmware
NetApp H410s
NetApp H300s Firmware
NetApp H300s
NetApp H500s Firmware
NetApp H500s
NetApp H700s Firmware
NetApp H700s
NetApp H300e Firmware
NetApp H300e
NetApp H500e Firmware
NetApp H500e
NetApp H700e Firmware
NetApp H700e
NetApp H410s Firmware
NetApp H410s
debian/linux
6.1.176-16.1.190-16.12.107-16.12.113-17.2.12-17.2.13-1
android/:linux_kernel:>=:0<:2021-07-05
:2021-07-05
ubuntu/linux-aws<4.4.0-1091.95
4.4.0-1091.95
ubuntu/linux-azure<4.15.0-1113.126~14.04.1
4.15.0-1113.126~14.04.1
ubuntu/linux-lts-xenial<4.4.0-209.241~14.04.1
4.4.0-209.241~14.04.1
ubuntu/linux*
ubuntu/linux<4.4.0-209.241
4.4.0-209.241
ubuntu/linux-aws<4.4.0-1127.141
4.4.0-1127.141
ubuntu/linux-aws-hwe<4.15.0-1099.106~16.04.1
4.15.0-1099.106~16.04.1
ubuntu/linux-azure<4.15.0-1113.126~16.04.1
4.15.0-1113.126~16.04.1
ubuntu/linux-gcp<4.15.0-1098.111~16.04.1
4.15.0-1098.111~16.04.1
ubuntu/linux-hwe<4.15.0-142.146~16.04.1
4.15.0-142.146~16.04.1
ubuntu/linux-kvm<4.4.0-1092.101
4.4.0-1092.101
ubuntu/linux-oracle<4.15.0-1070.78~16.04.1
4.15.0-1070.78~16.04.1
ubuntu/linux-raspi2<4.4.0-1151.162
4.4.0-1151.162
ubuntu/linux-snapdragon<4.4.0-1155.165
4.4.0-1155.165
ubuntu/linux-hwe-edge*
ubuntu/linux-fips<4.4.0-1061.67
4.4.0-1061.67
ubuntu/linux-fips*
ubuntu/linux<4.15.0-142.146
4.15.0-142.146
ubuntu/linux-aws<4.15.0-1099.106
4.15.0-1099.106
ubuntu/linux-aws-5.4<5.4.0-1045.47~18.04.1
5.4.0-1045.47~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1113.126
4.15.0-1113.126
ubuntu/linux-azure-5.4<5.4.0-1046.48~18.04.1
5.4.0-1046.48~18.04.1
ubuntu/linux-dell300x<4.15.0-1017.21
4.15.0-1017.21
ubuntu/linux-gcp-4.15<4.15.0-1098.111
4.15.0-1098.111
ubuntu/linux-gcp-5.4<5.4.0-1042.45~18.04.1
5.4.0-1042.45~18.04.1
ubuntu/linux-gke-5.3<5.3.0-1042.45
5.3.0-1042.45
ubuntu/linux-gke-5.4<5.4.0-1042.44~18.04.1
5.4.0-1042.44~18.04.1
ubuntu/linux-gkeop-5.4<5.4.0-1014.15~18.04.1
5.4.0-1014.15~18.04.1
ubuntu/linux-hwe<5.3.0-73.69
5.3.0-73.69
ubuntu/linux-hwe-5.4<5.4.0-72.80~18.04.1
5.4.0-72.80~18.04.1
ubuntu/linux-kvm<4.15.0-1090.92
4.15.0-1090.92
ubuntu/linux-oracle<4.15.0-1070.78
4.15.0-1070.78
ubuntu/linux-oracle-5.4<5.4.0-1043.46~18.04.1
5.4.0-1043.46~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1034.37~18.04.1
5.4.0-1034.37~18.04.1
ubuntu/linux-raspi2<4.15.0-1084.89
4.15.0-1084.89
ubuntu/linux-raspi2-5.3<5.3.0-1039.41
5.3.0-1039.41
ubuntu/linux-snapdragon<4.15.0-1101.110
4.15.0-1101.110
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-aws-fips<4.15.0-2042.44
4.15.0-2042.44
ubuntu/linux-azure-fips<4.15.0-2025.28
4.15.0-2025.28
ubuntu/linux-fips<4.15.0-1058.66
4.15.0-1058.66
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-72.80
5.4.0-72.80
ubuntu/linux-aws<5.4.0-1045.47
5.4.0-1045.47
ubuntu/linux-azure<5.4.0-1046.48
5.4.0-1046.48
ubuntu/linux-gcp<5.4.0-1042.45
5.4.0-1042.45
ubuntu/linux-gke<5.4.0-1042.44
5.4.0-1042.44
ubuntu/linux-gkeop<5.4.0-1014.15
5.4.0-1014.15
ubuntu/linux-hwe-5.8<5.8.0-50.56~20.04.1
5.8.0-50.56~20.04.1
ubuntu/linux-kvm<5.4.0-1038.39
5.4.0-1038.39
ubuntu/linux-oem-5.10<5.10.0-1022.23
5.10.0-1022.23
ubuntu/linux-oem-5.6<5.6.0-1053.57
5.6.0-1053.57
ubuntu/linux-oracle<5.4.0-1043.46
5.4.0-1043.46
ubuntu/linux-raspi<5.4.0-1034.37
5.4.0-1034.37
ubuntu/linux-riscv-5.8<5.8.0-22.24~20.04.1
5.8.0-22.24~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*
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.41.1.rt56.1181.el7
  2. Upgrade

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

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

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

    Fixed in 0:4.18.0-372.9.1.rt7.166.el8
  4. Upgrade

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

    Fixed in 0:4.18.0-372.9.1.el8
  5. 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
  6. Upgrade

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

    Fixed in :2021-07-05
  7. Upgrade

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

    Fixed in 4.4.0-1091.95
  8. Upgrade

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

    Fixed in 4.15.0-1113.126~14.04.1
  9. Upgrade

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

    Fixed in 4.4.0-209.241~14.04.1
  10. Upgrade

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

    Fixed in 4.4.0-209.241
  11. Upgrade

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

    Fixed in 4.4.0-1127.141
  12. Upgrade

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

    Fixed in 4.15.0-1099.106~16.04.1
  13. Upgrade

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

    Fixed in 4.15.0-1113.126~16.04.1
  14. Upgrade

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

    Fixed in 4.15.0-1098.111~16.04.1
  15. Upgrade

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

    Fixed in 4.15.0-142.146~16.04.1
  16. Upgrade

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

    Fixed in 4.4.0-1092.101
  17. Upgrade

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

    Fixed in 4.15.0-1070.78~16.04.1
  18. Upgrade

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

    Fixed in 4.4.0-1151.162
  19. Upgrade

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

    Fixed in 4.4.0-1155.165
  20. Upgrade

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

    Fixed in 4.4.0-1061.67
  21. Upgrade

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

    Fixed in 4.15.0-142.146
  22. Upgrade

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

    Fixed in 4.15.0-1099.106
  23. Upgrade

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

    Fixed in 5.4.0-1045.47~18.04.1
  24. Upgrade

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

    Fixed in 4.15.0-1113.126
  25. Upgrade

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

    Fixed in 5.4.0-1046.48~18.04.1
  26. Upgrade

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

    Fixed in 4.15.0-1017.21
  27. Upgrade

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

    Fixed in 4.15.0-1098.111
  28. Upgrade

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

    Fixed in 5.4.0-1042.45~18.04.1
  29. Upgrade

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

    Fixed in 5.3.0-1042.45
  30. Upgrade

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

    Fixed in 5.4.0-1042.44~18.04.1
  31. Upgrade

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

    Fixed in 5.4.0-1014.15~18.04.1
  32. Upgrade

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

    Fixed in 5.3.0-73.69
  33. Upgrade

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

    Fixed in 5.4.0-72.80~18.04.1
  34. Upgrade

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

    Fixed in 4.15.0-1090.92
  35. Upgrade

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

    Fixed in 4.15.0-1070.78
  36. Upgrade

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

    Fixed in 5.4.0-1043.46~18.04.1
  37. Upgrade

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

    Fixed in 5.4.0-1034.37~18.04.1
  38. Upgrade

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

    Fixed in 4.15.0-1084.89
  39. Upgrade

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

    Fixed in 5.3.0-1039.41
  40. Upgrade

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

    Fixed in 4.15.0-1101.110
  41. Upgrade

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

    Fixed in 4.15.0-2042.44
  42. Upgrade

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

    Fixed in 4.15.0-2025.28
  43. Upgrade

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

    Fixed in 4.15.0-1058.66
  44. Upgrade

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

    Fixed in 5.4.0-72.80
  45. Upgrade

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

    Fixed in 5.4.0-1045.47
  46. Upgrade

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

    Fixed in 5.4.0-1046.48
  47. Upgrade

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

    Fixed in 5.4.0-1042.45
  48. Upgrade

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

    Fixed in 5.4.0-1042.44
  49. Upgrade

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

    Fixed in 5.4.0-1014.15
  50. Upgrade

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

    Fixed in 5.8.0-50.56~20.04.1
  51. Upgrade

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

    Fixed in 5.4.0-1038.39
  52. Upgrade

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

    Fixed in 5.10.0-1022.23
  53. Upgrade

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

    Fixed in 5.6.0-1053.57
  54. Upgrade

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

    Fixed in 5.4.0-1043.46
  55. Upgrade

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

    Fixed in 5.4.0-1034.37
  56. Upgrade

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

    Fixed in 5.8.0-22.24~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. Configuration

    Disable the BPF JIT immediately by setting net.core.bpf_jit_enable=0, and persist the setting for subsequent boots in /etc/sysctl.d/44-bpf-jit-disable.

    Linux kernel BPF JIT net.core.bpf_jit_enable = 0

Event History

Apr 6, 2021
Data Sourced
04:40 PM
DescriptionSeverityAffected Software
Apr 8, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
12:00 AM
RemedyWeakness
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via MITRE·12:00 AM
Description
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·03:30 PM
DescriptionSeverityAffected Software
Jul 1, 2021
Advisory Published
via OSV·12:00 AM
Oct 11, 2021
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Jun 16, 2022
Data Sourced
via Red Hat·11:22 AM
DescriptionSeverityAffected Software
Nov 7, 2023
Data Sourced
via NVD·03:32 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
03:32 AM
Affected Software
Mar 25, 2024
Updated
via NVD·01:15 AM
Affected Software
Nov 21, 2024
Updated
via NVD·06:00 AM
RemedyAffected Software
Jun 17, 2026
Updated
via NVD·03:47 AM
Affected Software
Oct 12, 2026
Updated
via Ubuntu·12:00 AM
Description
Nov 11, 2026
Updated
via OSV·09:36 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-29154?

CVE-2021-29154 is rated as a critical severity vulnerability due to its potential to allow local users to corrupt memory.

2

How do I fix CVE-2021-29154?

To fix CVE-2021-29154, update your Linux kernel to the specified remedial versions such as 0:3.10.0-1160.41.1.el7 or higher.

3

Which software is affected by CVE-2021-29154?

CVE-2021-29154 affects various Linux kernel versions and implementations, including Red Hat and Debian distributions.

4

Who can exploit CVE-2021-29154?

CVE-2021-29154 can be exploited by local users who are able to insert eBPF instructions into the system.

5

What impact does CVE-2021-29154 have on systems?

The impact of CVE-2021-29154 can lead to potential memory corruption, which could be exploited to gain unauthorized access to system resources.

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