CVE-2021-4159: High severity Linux Linux kernel vulnerability

Published Dec 29, 2021
·
Updated

A vulnerability was found in Linux kernelS EBPF verifier when handling internal data structures. Internal memory locations could be returned to userspacec. A local attacker with the permissions to insert eBPF code to the kernel can use this to leak internal kernel memory details defeating some of the exploit mitigations in place for the kernel.

Other sources

A vulnerability was found in the Linux kernel's EBPF verifier when handling internal data structures. Internal memory locations could be returned to userspace. A local attacker with the permissions to insert eBPF code to the kernel can use this to leak internal kernel memory details defeating some of the exploit mitigations in place for the kernel.

— Launchpad

Affected Software

89 affected componentsFixes available
Linux Linux kernel<5.7
redhat Enterprise Linux=8.0
Debian Debian Linux=10.0
debian/linux<5.7.6-1
5.7.6-1
debian/linux<5.7.6-1
5.7.6-1
debian/linux<5.7.6-1
5.7.6-1
ubuntu/linux-azure<4.15.0-1158.173~14.04.1
4.15.0-1158.173~14.04.1
ubuntu/linux-aws-hwe<4.15.0-1147.159~16.04.1
4.15.0-1147.159~16.04.1
ubuntu/linux-azure<4.15.0-1159.174~16.04.1
4.15.0-1159.174~16.04.1
ubuntu/linux-gcp<4.15.0-1142.158~16.04.1
4.15.0-1142.158~16.04.1
ubuntu/linux-hwe<4.15.0-201.212~16.04.1
4.15.0-201.212~16.04.1
ubuntu/linux-oracle<4.15.0-1112.123~16.04.1
4.15.0-1112.123~16.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux<4.15.0-201.212
4.15.0-201.212
ubuntu/linux-aws<4.15.0-1147.159
4.15.0-1147.159
ubuntu/linux-aws-5.4<5.4.0-1086.93~18.04.1
5.4.0-1086.93~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1158.173
4.15.0-1158.173
ubuntu/linux-azure-5.4<5.4.0-1094.100~18.04.1
5.4.0-1094.100~18.04.1
ubuntu/linux-dell300x<4.15.0-1058.63
4.15.0-1058.63
ubuntu/linux-gcp-4.15<4.15.0-1142.158
4.15.0-1142.158
ubuntu/linux-gcp-5.4<5.4.0-1092.101~18.04.1
5.4.0-1092.101~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-128.144~18.04.1
5.4.0-128.144~18.04.1
ubuntu/linux-ibm-5.4<5.4.0-1034.38~18.04.1
5.4.0-1034.38~18.04.1
ubuntu/linux-kvm<4.15.0-1133.138
4.15.0-1133.138
ubuntu/linux-oracle<4.15.0-1112.123
4.15.0-1112.123
ubuntu/linux-oracle-5.4<5.4.0-1084.92~18.04.1
5.4.0-1084.92~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1071.81~18.04.1
5.4.0-1071.81~18.04.1
ubuntu/linux-raspi2<4.15.0-1125.133
4.15.0-1125.133
ubuntu/linux-snapdragon<4.15.0-1143.153
4.15.0-1143.153
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-gke-4.15*
ubuntu/linux-gke-5.4*
ubuntu/linux-gkeop-5.4*
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-2087.93
4.15.0-2087.93
ubuntu/linux-azure-fips<4.15.0-2067.73
4.15.0-2067.73
ubuntu/linux-fips<4.15.0-1104.115
4.15.0-1104.115
ubuntu/linux-gcp-fips<4.15.0-2052.57
4.15.0-2052.57
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-128.144
5.4.0-128.144
ubuntu/linux-aws<5.4.0-1086.93
5.4.0-1086.93
ubuntu/linux-azure<5.4.0-1094.100
5.4.0-1094.100
ubuntu/linux-bluefield<5.4.0-1047.52
5.4.0-1047.52
ubuntu/linux-gcp<5.4.0-1090.98
5.4.0-1090.98
ubuntu/linux-gke<5.4.0-1084.90
5.4.0-1084.90
ubuntu/linux-gkeop<5.4.0-1054.57
5.4.0-1054.57
ubuntu/linux-ibm<5.4.0-1034.38
5.4.0-1034.38
ubuntu/linux-iot<5.4.0-1005.7
5.4.0-1005.7
ubuntu/linux-kvm<5.4.0-1076.81
5.4.0-1076.81
ubuntu/linux-oracle<5.4.0-1084.92
5.4.0-1084.92
ubuntu/linux-raspi<5.4.0-1071.81
5.4.0-1071.81
ubuntu/linux-aws-5.8*
ubuntu/linux-azure-5.8*
ubuntu/linux-gcp-5.8*
ubuntu/linux-hwe-5.11*
ubuntu/linux-hwe-5.8*
ubuntu/linux-intel-5.13*
ubuntu/linux-oem-5.10*
ubuntu/linux-oem-5.13*
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-1086.93+fips1
5.4.0-1086.93+fips1
ubuntu/linux-azure-fips<5.4.0-1094.100+fips1
5.4.0-1094.100+fips1
ubuntu/linux-fips<5.4.0-1062.70
5.4.0-1062.70
ubuntu/linux-gcp-fips<5.4.0-1092.101+fips1
5.4.0-1092.101+fips1
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.19.260-15.7.6-1

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.7.6-1
  2. Upgrade

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

    Fixed in 4.15.0-1158.173~14.04.1
  3. Upgrade

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

    Fixed in 4.15.0-1147.159~16.04.1
  4. Upgrade

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

    Fixed in 4.15.0-1159.174~16.04.1
  5. Upgrade

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

    Fixed in 4.15.0-1142.158~16.04.1
  6. Upgrade

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

    Fixed in 4.15.0-201.212~16.04.1
  7. Upgrade

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

    Fixed in 4.15.0-1112.123~16.04.1
  8. Upgrade

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

    Fixed in 4.15.0-201.212
  9. Upgrade

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

    Fixed in 4.15.0-1147.159
  10. Upgrade

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

    Fixed in 5.4.0-1086.93~18.04.1
  11. Upgrade

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

    Fixed in 4.15.0-1158.173
  12. Upgrade

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

    Fixed in 5.4.0-1094.100~18.04.1
  13. Upgrade

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

    Fixed in 4.15.0-1058.63
  14. Upgrade

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

    Fixed in 4.15.0-1142.158
  15. Upgrade

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

    Fixed in 5.4.0-1092.101~18.04.1
  16. Upgrade

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

    Fixed in 5.4.0-128.144~18.04.1
  17. Upgrade

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

    Fixed in 5.4.0-1034.38~18.04.1
  18. Upgrade

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

    Fixed in 4.15.0-1133.138
  19. Upgrade

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

    Fixed in 4.15.0-1112.123
  20. Upgrade

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

    Fixed in 5.4.0-1084.92~18.04.1
  21. Upgrade

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

    Fixed in 5.4.0-1071.81~18.04.1
  22. Upgrade

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

    Fixed in 4.15.0-1125.133
  23. Upgrade

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

    Fixed in 4.15.0-1143.153
  24. Upgrade

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

    Fixed in 4.15.0-2087.93
  25. Upgrade

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

    Fixed in 4.15.0-2067.73
  26. Upgrade

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

    Fixed in 4.15.0-1104.115
  27. Upgrade

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

    Fixed in 4.15.0-2052.57
  28. Upgrade

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

    Fixed in 5.4.0-128.144
  29. Upgrade

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

    Fixed in 5.4.0-1086.93
  30. Upgrade

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

    Fixed in 5.4.0-1094.100
  31. Upgrade

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

    Fixed in 5.4.0-1047.52
  32. Upgrade

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

    Fixed in 5.4.0-1090.98
  33. Upgrade

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

    Fixed in 5.4.0-1084.90
  34. Upgrade

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

    Fixed in 5.4.0-1054.57
  35. Upgrade

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

    Fixed in 5.4.0-1034.38
  36. Upgrade

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

    Fixed in 5.4.0-1005.7
  37. Upgrade

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

    Fixed in 5.4.0-1076.81
  38. Upgrade

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

    Fixed in 5.4.0-1084.92
  39. Upgrade

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

    Fixed in 5.4.0-1071.81
  40. Upgrade

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

    Fixed in 5.4.0-1086.93+fips1
  41. Upgrade

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

    Fixed in 5.4.0-1094.100+fips1
  42. Upgrade

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

    Fixed in 5.4.0-1062.70
  43. Upgrade

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

    Fixed in 5.4.0-1092.101+fips1
  44. Upgrade

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

    Fixed in 4.19.260-1Fixed in 5.7.6-1

Event History

Dec 29, 2021
Data Sourced
10:40 AM
DescriptionSeverityAffected Software
Aug 24, 2022
CVE Published
12:00 AM
Data Sourced
12:00 AM
Remedy
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·03:10 PM
Data Sourced
via MITRE·03:10 PM
DescriptionWeakness
Data Sourced
via OSV·04:15 PM
DescriptionSeverityAffected Software
Event
via OSV·04:15 PM
Oct 6, 2022
Data Sourced
03:30 PM
Weakness
Data Sourced
via NVD·03:30 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
03:30 PM
Affected Software
Sep 19, 2023
Data Sourced
via Red Hat·02:13 PM
DescriptionSeverityAffected Software
Nov 21, 2024
Updated
via NVD·06:37 AM
RemedyAffected Software
Nov 2, 2026
Updated
via NVD·07:17 PM
Affected Software
Nov 12, 2026
Updated
via OSV·05:21 PM
Affected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2021-4159?

CVE-2021-4159 is considered a high severity vulnerability due to its potential to leak internal kernel memory.

2

How do I fix CVE-2021-4159?

To fix CVE-2021-4159, update to a patched version of the Linux kernel that is 5.10.223-1 or later.

3

What versions of Linux are affected by CVE-2021-4159?

CVE-2021-4159 affects Linux kernel versions up to and including 5.7 as well as certain specific versions of Red Hat and Debian distributions.

4

Who is impacted by CVE-2021-4159?

Local attackers with permissions to insert eBPF code into the kernel are impacted by CVE-2021-4159.

5

What is eBPF in the context of CVE-2021-4159?

eBPF (extended Berkeley Packet Filter) is a technology in the Linux kernel that allows the execution of sandboxed programs in the kernel space.

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