CVE-2021-20268: Input Validation

Published Feb 2, 2021
·
Updated

A flaw was found in the Linux kernel. Improper Input Validation in the handling of eBPF programs may lead to privilege escalation.

References:

https://www.zerodayinitiative.com/advisories/ZDI-21-101/

Other sources

An out-of-bounds access flaw was found in the Linux kernel's implementation of the eBPF code verifier in the way a user running the eBPF script calls devmapinitmap or sockmapalloc. This flaw allows a local user to crash the system or possibly escalate their privileges. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.

— Launchpad

Affected Software

4 affected componentsFixes available
redhat/kernel<5.10.10
5.10.10
Linux Linux kernel<5.10.10
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1
android/:linux_kernel:>=:0<:2022-06-05
:2022-06-05

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 5.10.10
  2. 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.135-1Fixed in 6.12.22-1Fixed in 6.12.25-1
  3. Upgrade

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

    Fixed in :2022-06-05
  4. Configuration

    If loading BPF programs by unprivileged users is not needed, set kernel.unprivileged_bpf_disabled = 1, or disable it permanently in /etc/sysctl.d/.

    Linux kernel kernel.unprivileged_bpf_disabled = 1

Event History

Mar 9, 2021
CVE Published
via MITRE·05:16 PM
Data Sourced
via MITRE·05:16 PM
DescriptionWeakness
Jun 1, 2022
Advisory Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2021-20268?

CVE-2021-20268 has been classified with a high severity rating due to its potential for privilege escalation.

2

How do I fix CVE-2021-20268?

To remediate CVE-2021-20268, update the Linux kernel to versions 5.10.10 or newer for Red Hat or the specified patched versions for Debian.

3

Which Linux distributions are affected by CVE-2021-20268?

CVE-2021-20268 affects multiple Linux distributions including Red Hat and Debian versions prior to the specified patched releases.

4

What type of vulnerability is CVE-2021-20268?

CVE-2021-20268 is an improper input validation vulnerability in the handling of eBPF programs within the Linux kernel.

5

Can CVE-2021-20268 be exploited remotely?

Exploitation of CVE-2021-20268 typically requires local access to the system, suggesting it is not directly exploitable remotely.

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