CVE-2021-20194
HIGHLinux Kernel >= 5.2 - Heap Overflow via BPF Getsockopt Hook
Title source: llmDescription
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.
References (2)
Core 2
Core References
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://bugzilla.redhat.com/show_bug.cgi?id=1912683
Third Party Advisory x_refsource_confirm
https://security.netapp.com/advisory/ntap-20210326-0003/
Scores
CVSS v3
7.8
EPSS
0.0005
EPSS Percentile
15.6%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Details
CWE
CWE-20
CWE-787
Status
published
Products (5)
linux/linux_kernel
5.2
redhat/enterprise_linux
8.0
redhat/openshift_container_platform
4.4
redhat/openshift_container_platform
4.5
redhat/openshift_container_platform
4.6
Published
Feb 23, 2021
Tracked Since
Feb 18, 2026