CVE-2021-20194
Reported by redhat · Published February 23, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux-qemu-6.12 | Chainguard | 6.12.71-r0 |
| linux-qemu-6.18 | Chainguard | 6.18.10-r0 |
| linux-gcp-5.4 | Ubuntu:18.04:LTS | 5.4.0-1041.44~18.04.1 |
| linux-aws | Ubuntu:20.04:LTS | 5.4.0-1043.45 |
| linux-aws-5.4 | Ubuntu:18.04:LTS | 5.4.0-1043.45~18.04.1 |
| linux-gke | Ubuntu:20.04:LTS | 5.4.0-1041.43 |
| linux-azure-5.4 | Ubuntu:18.04:LTS | 5.4.0-1044.46~18.04.1 |
| linux-oracle | Ubuntu:20.04:LTS | 5.4.0-1042.45 |
| linux-gke-5.4 | Ubuntu:18.04:LTS | 5.4.0-1040.42~18.04.1 |
| linux-hwe-5.8 | Ubuntu:20.04:LTS | 5.8.0-45.51~20.04.1 |
| linux-raspi-5.4 | Ubuntu:18.04:LTS | 5.4.0-1033.36~18.04.1 |
| linux-oem-5.6 | Ubuntu:20.04:LTS | 5.6.0-1053.57 |
5 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | kernel | kernel 5.2 and higher. |
| n/a | kernel | 5.2 |
Timeline
- Feb 23, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 28, 2025 PoC Published
- Jan 14, 2026 CVE Updated
- Mar 7, 2026 Distribution Patch (14 in total, the first dated here)
- Mar 7, 2026 Security Advisory (15 in total, the first dated here)
- Aug 27, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-20194
vulnetix vdb fixes CVE-2021-20194
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-20194/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart