CVE-2021-34866 Memory corruption in Kernel

High 8.8 Published Updated

Local attackers can escalate privileges and execute arbitrary code in the kernel context due to a type confusion flaw in eBPF program handling.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-34866?

CVE-2021-34866 is a high-severity memory corruption vulnerability in Linux kernel, published on 25 Jan 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-843

Which versions are affected by CVE-2021-34866?

It affects 9 products.

Products include Linux kernel, Netapp H300e Firmware, Netapp H300s Firmware, Netapp H410c Firmware, Netapp H410s Firmware, Netapp H500e Firmware and 3 more.

How do I fix CVE-2021-34866?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-34866 being exploited?

There is no known exploitation of CVE-2021-34866 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as A-217307370, DEBIAN-CVE-2021-34866, GHSA-mrjq-f7fw-fmg2, PUB-A-217307370, UBUNTU-CVE-2021-34866.

Is CVE-2021-34866 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free