Vulnerability · Published Feb 23, 2021 · Assigned by redhat

CVE-2021-20194

High 7.8

In plain English

A high-severity improper input validation in kernel. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.8High
Exploit odds (30 days)0.4%top 65.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

There is a vulnerability in the linux kernel versions higher than 5.2 (if kernel compiled with config params CONFIG_BPF_SYSCALL=y , CONFIG_BPF=y , CONFIG_CGROUPS=y , CONFIG_CGROUP_BPF=y , CONFIG_HARDENED_USERCOPY not set, and BPF hook to getsockopt is registered). As result of BPF execution, the local user can trigger bug in __cgroup_bpf_run_filter_getsockopt() function that can lead to heap overflow (because of non-hardened usercopy). The impact of attack could be deny of service or possibly privileges escalation.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8kernel-tools-libs-devel4.18.0-348.el8ALSA-2021:4356
Debian:12linux5.10.19-1DEBIAN-CVE-2021-20194
Debian:13linux5.10.19-1DEBIAN-CVE-2021-20194
Debian:14linux5.10.19-1DEBIAN-CVE-2021-20194
Ubuntu:22.04:LTSlinux-intel-iot-realtimeno fix listedUBUNTU-CVE-2021-20194
Ubuntu:24.04:LTSlinux-raspi-realtimeno fix listedUBUNTU-CVE-2021-20194
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2021-20194

Affected products (as reported)

VendorProductVersions
n/a kernel kernel 5.2 and higher.

Weakness: CWE-20

References