CVSS 3.1
7.1 highCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HHigh (7.1). EPSS 1.2% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HExplain CVE-2021-4204 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-4204?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-4204?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-4204 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| linux:linux_kernel | before 5.8.0 |
| linux:linux_kernel | 5.8.0 |
| debian:debian_linux | 11.0 |
| redhat:enterprise_linux | 9.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | linux | 5.17.3-1 | DEBIAN-CVE-2021-4204 |
| Ubuntu | 16.04:LTS | linux-hwe-edge | no fix listed | UBUNTU-CVE-2021-4204 |
| Ubuntu | 18.04:LTS | linux-gcp, linux-hwe, linux-oem and 10 more | no fix listed | UBUNTU-CVE-2021-4204 |
| Ubuntu | 20.04:LTS | linux-aws-5.11, linux-azure-5.11, linux-oracle-5.11 | 5.11.0-1025.27~20.04.1 | UBUNTU-CVE-2021-4204 USN-5219-1 |
| Ubuntu | 20.04:LTS | linux-aws-5.13 | 5.13.0-1011.12~20.04.1 | UBUNTU-CVE-2021-4204 |
| Ubuntu | 20.04:LTS | linux-azure-5.13 | 5.13.0-1012.14~20.04.1 | UBUNTU-CVE-2021-4204 |
| Ubuntu | 20.04:LTS | linux-gcp-5.11 | 5.11.0-1026.29~20.04.1 | UBUNTU-CVE-2021-4204 USN-5219-1 |
| Ubuntu | 20.04:LTS | linux-gcp-5.13 | 5.13.0-1012.15~20.04.1 | UBUNTU-CVE-2021-4204 |
| Ubuntu | 20.04:LTS | linux-hwe-5.11 | 5.11.0-46.51~20.04.1 | UBUNTU-CVE-2021-4204 USN-5219-1 |
| Ubuntu | 20.04:LTS | linux-hwe-5.13 | 5.13.0-25.26~20.04.1 | UBUNTU-CVE-2021-4204 |
| Ubuntu | 20.04:LTS | linux-oem-5.10 | 5.10.0-1055.58 | UBUNTU-CVE-2021-4204 USN-5219-1 |
| Ubuntu | 20.04:LTS | linux-oem-5.13 | 5.13.0-1026.32 | UBUNTU-CVE-2021-4204 USN-5218-1 |
| Ubuntu | 20.04:LTS | linux-oem-5.14 | 5.14.0-1018.19 | UBUNTU-CVE-2021-4204 USN-5217-1 |
| 4 more for Ubuntu in the JSON and on Ubuntu's page. | ||||
| Red Hat | enterprise_linux:8::baseos | perf, kernel, bpftool and 30 more | 0:4.18.0-553.el8_10 | RHSA-2024:3138 |
| Red Hat | enterprise_linux:8::crb | perf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more | 0:4.18.0-553.el8_10 | RHSA-2024:3138 |
| Red Hat | enterprise_linux:8::nfv | kernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more | 0:4.18.0-553.rt7.342.el8_10 | RHSA-2024:2950 |
| Red Hat | enterprise_linux:8::realtime | kernel-rt, kernel-rt-core, kernel-rt-debug and 10 more | 0:4.18.0-553.rt7.342.el8_10 | RHSA-2024:2950 |
| Red Hat | rhel_eus:8.6::baseos | perf, kernel, bpftool and 30 more | 0:4.18.0-372.91.1.el8_6 | RHSA-2024:0724 |
| Red Hat | rhel_eus:8.6::crb | perf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more | 0:4.18.0-372.91.1.el8_6 | RHSA-2024:0724 |
| Red Hat | rhel_eus:8.8::baseos | perf, kernel, bpftool and 30 more | 0:4.18.0-477.81.1.el8_8 | RHSA-2024:10262 |
| Red Hat | rhel_eus:8.8::crb | perf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more | 0:4.18.0-477.81.1.el8_8 | RHSA-2024:10262 |
| Red Hat | rhev_hypervisor:4.4::el8 | perf, kernel-devel, perf-debuginfo and 6 more | 0:4.18.0-372.91.1.el8_6 | RHSA-2024:0724 |
| SUSE | Linux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Module for Legacy 15 SP4 and 1 more | kernel-default | 5.14.21-150400.24.11.1 | SUSE-SU-2022:2520-1 |
| SUSE | Linux Enterprise High Availability Extension 15 SP5, Linux Enterprise Live Patching 15 SP5, Linux Enterprise Micro 5.5 and 2 more | kernel-default | 5.14.21-150500.55.80.2 | SUSE-SU-2024:3483-1 |
| SUSE | Linux Enterprise Live Patching 15 SP4 | kernel-livepatch-SLE15-SP4_Update_1 | 1-150400.9.5.3 | SUSE-SU-2022:2520-1 |
| SUSE | Linux Enterprise Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5_Update_19 | 1-150500.11.3.2 | SUSE-SU-2024:3483-1 |
| SUSE | Linux Enterprise Micro 5.5, Linux Enterprise Module for Basesystem 15 SP5 | kernel-default-base | 5.14.21-150500.55.80.2.150500.6.35.6 | SUSE-SU-2024:3483-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP4 | kernel-64kb, kernel-source, kernel-default and 1 more | 5.14.21-150400.24.11.1 | SUSE-SU-2022:2520-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP4 | kernel-default-base | 5.14.21-150400.24.11.1.150400.24.3.6 | SUSE-SU-2022:2520-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP5 | kernel-64kb, kernel-source, kernel-default and 1 more | 5.14.21-150500.55.80.2 | SUSE-SU-2024:3483-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP4 | kernel-docs, kernel-syms, kernel-source and 1 more | 5.14.21-150400.24.11.1 | SUSE-SU-2022:2520-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP5 | kernel-docs, kernel-source | 5.14.21-150500.55.80.2 | SUSE-SU-2024:3483-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP5 | kernel-syms, kernel-obs-build | 5.14.21-150500.55.80.1 | SUSE-SU-2024:3483-1 |
| SUSE | Linux Enterprise Module for Public Cloud 15 SP4 | kernel-azure, kernel-syms-azure, kernel-source-azure | 5.14.21-150400.14.7.1 | SUSE-SU-2022:2615-1 |
| openSUSE | Leap 15.4 | dtb-aarch64, kernel-64kb, kernel-docs and 8 more | 5.14.21-150400.24.11.1 | SUSE-SU-2022:2520-1 |
| openSUSE | Leap 15.4 | kernel-azure, kernel-syms-azure, kernel-source-azure | 5.14.21-150400.14.7.1 | SUSE-SU-2022:2615-1 |
| openSUSE | Leap 15.4 | kernel-default-base | 5.14.21-150400.24.11.1.150400.24.3.6 | SUSE-SU-2022:2520-1 |
| openSUSE | Leap 15.5 | dtb-aarch64, kernel-syms, kernel-obs-qa and 1 more | 5.14.21-150500.55.80.1 | SUSE-SU-2024:3483-1 |
| openSUSE | Leap 15.5 | kernel-64kb, kernel-docs, kernel-debug and 4 more | 5.14.21-150500.55.80.2 | SUSE-SU-2024:3483-1 |
| openSUSE | Leap 15.5, Leap Micro 5.5 | kernel-default-base | 5.14.21-150500.55.80.2.150500.6.35.6 | SUSE-SU-2024:3483-1 |
| openSUSE | Leap Micro 5.5 | kernel-default | 5.14.21-150500.55.80.2 | SUSE-SU-2024:3483-1 |
| AlmaLinux | 8 | kernel-rt, kernel-rt-kvm, kernel-rt-core and 9 more | 4.18.0-553.rt7.342.el8_10 | ALSA-2024:2950 |
| AlmaLinux | 8 | perf, kernel, bpftool and 22 more | 4.18.0-553.el8_10 | ALSA-2024:3138 |
| Rocky Linux | 8 | kernel | 0:4.18.0-553.123.1.el8_10.cloud.0.1 | RXSA-2024:3138 |
| Rocky Linux | 8 | kernel | 0:4.18.0-553.el8_10 | RLSA-2024:3138 |
| Rocky Linux | 8 | kernel-rt | 0:4.18.0-553.rt7.342.el8_10 | RLSA-2024:2950 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.
Red Hat rates this Moderate.
The default Red Hat Enterprise Linux kernel prevents unprivileged users from being able to use eBPF by the kernel.unprivileged_bpf_disabled sysctl. This would require a privileged user with CAP_SYS_ADMIN or root to be able to abuse this flaw reducing its attack space.
As successful exploitation of this bug has pre-requisites that are in general considered bad practises, this bug is rated as Moderate.
For the Red Hat Enterprise Linux 7 the eBPF for unprivileged users is always disabled.
For the Red Hat Enterprise Linux 8 to confirm the current state, inspect the sysctl with the command:
# cat /proc/sys/kernel/unprivileged_bpf_disabled
The setting of 1 would mean that unprivileged users can not use eBPF, mitigating the flaw.
A kernel update will be required to mitigate the flaw for the root or users with CAP_SYS_ADMIN capabilities.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | kernel-rt-0:4.18.0-553.rt7.342.el8_10 | Fixed 2024-05-22 | RHSA-2024:2950 |
| Red Hat Enterprise Linux 8 | kernel-0:4.18.0-553.el8_10 | Fixed 2024-05-22 | RHSA-2024:3138 |
| Red Hat Enterprise Linux 8.6 Extended Update Support | kernel-0:4.18.0-372.91.1.el8_6 | Fixed 2024-02-07 | RHSA-2024:0724 |
| Red Hat Enterprise Linux 8.8 Extended Update Support | kernel-0:4.18.0-477.81.1.el8_8 | Fixed 2024-11-26 | RHSA-2024:10262 |
| Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 | kernel-0:4.18.0-372.91.1.el8_6 | Fixed 2024-02-07 | RHSA-2024:0724 |
| Red Hat Enterprise Linux 6 | kernel | Not affected | |
| Red Hat Enterprise Linux 7 | kernel | Affected | |
| Red Hat Enterprise Linux 7 | kernel-rt | Affected | |
| Red Hat Enterprise Linux 9 | kernel | Affected | |
| Red Hat Enterprise Linux 9 | kernel-rt | Will not fix |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-4204.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12), CWE-20 (51).