cve.bz

CVE-2021-34866 Type Confusion

7.8 highEPSS 1.0%

High (7.8). EPSS 1.0% estimated probability of exploitation activity in the next 30 days.

On this page
This vulnerability allows local attackers to escalate privileges on affected installations of Linux Kernel 5.14-rc3. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability. The specific flaw exists within the handling of eBPF programs. The issue results from the lack of proper validation of user-supplied eBPF programs, which can result in a type confusion condition. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of the kernel. Was ZDI-CAN-14689.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 63rd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-843 Access of Resource Using Incompatible Type (Type Confusion)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-34866 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-34866?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-34866?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-34866 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.

Badge for a README or a site

CVE-2021-34866

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-34866](https://cve.bz/cve/badge/CVE-2021-34866.svg)](https://cve.bz/cve/CVE-2021-34866)

HTML:

<a href="https://cve.bz/cve/CVE-2021-34866"><img src="https://cve.bz/cve/badge/CVE-2021-34866.svg" alt="CVE-2021-34866"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelfrom 5.8 before 5.10.62
linux:linux_kernelfrom 5.11 before 5.13.14

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux5.14.6-1DEBIAN-CVE-2021-34866
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2021-34866
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 10 moreno fix listedUBUNTU-CVE-2021-34866
Ubuntu20.04:LTSlinux-aws-5.115.11.0-1020.21~20.04.2UBUNTU-CVE-2021-34866
Ubuntu20.04:LTSlinux-azure-5.11, linux-oracle-5.115.11.0-1020.21~20.04.1UBUNTU-CVE-2021-34866
Ubuntu20.04:LTSlinux-gcp-5.115.11.0-1021.23~20.04.1UBUNTU-CVE-2021-34866
Ubuntu20.04:LTSlinux-hwe-5.115.11.0-38.42~20.04.1UBUNTU-CVE-2021-34866
Ubuntu20.04:LTSlinux-oem-5.105.10.0-1050.52UBUNTU-CVE-2021-34866
Ubuntu20.04:LTSlinux-oem-5.135.13.0-1017.21UBUNTU-CVE-2021-34866
Ubuntu20.04:LTSlinux-riscv, linux-raspi2, linux-aws-5.8 and 7 moreno fix listedUBUNTU-CVE-2021-34866
Ubuntu20.04:LTSlinux-riscv-5.115.11.0-1021.22~20.04.1UBUNTU-CVE-2021-34866
Red Hatrhel_eus:8.6::baseosperf, kernel, bpftool and 30 more0:4.18.0-372.91.1.el8_6RHSA-2024:0724
Red Hatrhel_eus:8.6::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-372.91.1.el8_6RHSA-2024:0724
Red Hatrhev_hypervisor:4.4::el8perf, kernel-devel, perf-debuginfo and 6 more0:4.18.0-372.91.1.el8_6RHSA-2024:0724
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 1 morekernel-default5.3.18-59.34.1SUSE-SU-2021:3675-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_08-3.2SUSE-SU-2021:3738-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_1, kernel-livepatch-SLE15-SP3_Update_26-2.2SUSE-SU-2021:3742-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_36-2.2SUSE-SU-2021:3718-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_45-2.2SUSE-SU-2021:3742-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_54-2.2SUSE-SU-2021:3742-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_62-2.2SUSE-SU-2021:3718-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_91-7.3.1SUSE-SU-2021:3675-1
SUSELinux Enterprise Micro 5.1kernel-rt5.3.18-60.1SUSE-SU-2021:3642-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3kernel-default-base5.3.18-59.34.1.18.21.1SUSE-SU-2021:3675-1
SUSELinux Enterprise Module for Basesystem 15 SP3kernel-64kb, kernel-source, kernel-default and 2 more5.3.18-59.34.1SUSE-SU-2021:3675-1
SUSELinux Enterprise Module for Development Tools 15 SP3kernel-docs, kernel-syms, kernel-source and 2 more5.3.18-59.34.1SUSE-SU-2021:3675-1
4 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3dtb-aarch64, kernel-64kb, kernel-docs and 9 more5.3.18-59.34.1openSUSE-SU-2021:3675-1
openSUSELeap 15.3kernel-azure, kernel-source-azure5.3.18-38.28.2openSUSE-SU-2021:3641-1
openSUSELeap 15.3kernel-default-base5.3.18-59.34.1.18.21.1openSUSE-SU-2021:3675-1
openSUSELeap 15.3kernel-syms-azure5.3.18-38.28.1openSUSE-SU-2021:3641-1

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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

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.

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8.6 Extended Update Supportkernel-0:4.18.0-372.91.1.el8_6Fixed 2024-02-07RHSA-2024:0724
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8kernel-0:4.18.0-372.91.1.el8_6Fixed 2024-02-07RHSA-2024:0724
Red Hat Enterprise Linux 5kernelNot affected
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelOut of support scope
Red Hat Enterprise Linux 7kernel-rtOut of support scope
Red Hat Enterprise Linux 8kernelAffected
Red Hat Enterprise Linux 8kernel-rtAffected
Red Hat Enterprise Linux 9kernelWill 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-34866.

References

Check your stackJSON