UBUNTU-CVE-2021-20194
Vulnerability Summary
Timeline
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.
CVSS Metrics
- v3.1•HIGH•Score: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected Systems
- ubuntu•linux
< 5.4.0-71.79
- ubuntu•linux-aws
< 5.4.0-1043.45
- ubuntu•linux-aws-5.0
all
- ubuntu•linux-aws-5.3
all
- ubuntu•linux-aws-5.4
< 5.4.0-1043.45~18.04.1
- ubuntu•linux-aws-fips
< 5.4.0-1069.73+fips2 | all
- ubuntu•linux-azure
all | < 5.4.0-1044.46
- ubuntu•linux-azure-5.3
all
- ubuntu•linux-azure-5.4
< 5.4.0-1044.46~18.04.1
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fips
< 5.4.0-1073.76+fips1 | all
- ubuntu•linux-bluefield
all
- ubuntu•linux-gcp
all | < 5.4.0-1041.44
- ubuntu•linux-gcp-5.3
all
- ubuntu•linux-gcp-5.4
< 5.4.0-1041.44~18.04.1
- ubuntu•linux-gcp-edge
all
- ubuntu•linux-gcp-fips
< 5.4.0-1067.71~20.04.1 | all
- ubuntu•linux-gke
< 5.4.0-1041.43
- ubuntu•linux-gke-4.15
all
- ubuntu•linux-gke-5.4
< 5.4.0-1040.42~18.04.1
- ubuntu•linux-gkeop
< 5.4.0-1013.14
- ubuntu•linux-gkeop-5.4
< 5.4.0-1013.14~18.04.1
- ubuntu•linux-hwe
all
- ubuntu•linux-hwe-5.4
< 5.4.0-71.79~18.04.1
- ubuntu•linux-hwe-5.8
< 5.8.0-45.51~20.04.1
- ubuntu•linux-hwe-edge
all | all
- ubuntu•linux-intel-iot-realtime
all
- ubuntu•linux-kvm
< 5.4.0-1037.38
- ubuntu•linux-nvidia
all
- ubuntu•linux-oem
all
- ubuntu•linux-oem-5.10
< 5.10.0-1017.18
- ubuntu•linux-oem-5.6
< 5.6.0-1053.57
- ubuntu•linux-oracle
< 5.4.0-1042.45
- ubuntu•linux-oracle-5.0
all
- ubuntu•linux-oracle-5.3
all
- ubuntu•linux-oracle-5.4
< 5.4.0-1042.45~18.04.1
- ubuntu•linux-raspi
< 5.4.0-1033.36
- ubuntu•linux-raspi-5.4
< 5.4.0-1033.36~18.04.1
- ubuntu•linux-raspi-realtime
all
- ubuntu•linux-raspi2
all
- ubuntu•linux-realtime
all
- ubuntu•linux-riscv
all
- ubuntu•linux-riscv-5.8
< 5.8.0-18.20~20.04.1
References (8)
- https://ubuntu.com/security/CVE-2021-20194
- https://bugzilla.redhat.com/show_bug.cgi?id=1912683
- https://patchwork.kernel.org/project/netdevbpf/patch/20210122164232.61770-1-loris.reiff@liblor.ch/#23921223
- https://ubuntu.com/security/notices/USN-4879-1
- https://ubuntu.com/security/notices/USN-4884-1
- https://ubuntu.com/security/notices/USN-4909-1
- https://ubuntu.com/security/notices/USN-4912-1
- https://www.cve.org/CVERecord?id=CVE-2021-20194