CVE-2021-20194
Linux Kernel BPF getsockopt Heap Overflow Vulnerability
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.
INFO
Published Date :
Feb. 23, 2021, 11:15 p.m.
Last Modified :
Feb. 12, 2023, 10:15 p.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.8
Affected Products
The following products are affected by CVE-2021-20194
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-20194
.
URL | Resource |
---|---|
https://bugzilla.redhat.com/show_bug.cgi?id=1912683 | Issue Tracking Patch Third Party Advisory |
https://security.netapp.com/advisory/ntap-20210326-0003/ | Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2021-20194
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-20194
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Feb. 12, 2023
Action Type Old Value New Value Changed Description A flaw buffer overflow in the Linux kernel BPF subsystem was found in the way user running BPF script calling getsockopt. A local user could use this flaw to crash the system or possibly escalate their privileges on the system. 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. Removed CVSS V3.1 Red Hat, Inc. AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H Removed Reference https://access.redhat.com/errata/RHSA-2021:4140 [No Types Assigned] Removed Reference https://access.redhat.com/errata/RHSA-2021:4356 [No Types Assigned] Removed Reference https://access.redhat.com/security/cve/CVE-2021-20194 [No Types Assigned] Added CWE Red Hat, Inc. CWE-20 -
CVE Modified by [email protected]
Feb. 02, 2023
Action Type Old Value New Value Changed 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. A flaw buffer overflow in the Linux kernel BPF subsystem was found in the way user running BPF script calling getsockopt. A local user could use this flaw to crash the system or possibly escalate their privileges on the system. Added CVSS V3.1 Red Hat, Inc. AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H Added Reference https://access.redhat.com/errata/RHSA-2021:4140 [No Types Assigned] Added Reference https://access.redhat.com/security/cve/CVE-2021-20194 [No Types Assigned] Added Reference https://access.redhat.com/errata/RHSA-2021:4356 [No Types Assigned] Removed CWE Red Hat, Inc. CWE-20 Removed CWE Reason CWE-20 / More specific CWE option available -
Reanalysis by [email protected]
Aug. 05, 2022
Action Type Old Value New Value Removed CWE NIST CWE-20 Added CWE NIST CWE-787 -
Modified Analysis by [email protected]
Mar. 31, 2021
Action Type Old Value New Value Changed Reference Type https://security.netapp.com/advisory/ntap-20210326-0003/ No Types Assigned https://security.netapp.com/advisory/ntap-20210326-0003/ Third Party Advisory Added CWE NIST CWE-20 -
CVE Modified by [email protected]
Mar. 26, 2021
Action Type Old Value New Value Added Reference https://security.netapp.com/advisory/ntap-20210326-0003/ [No Types Assigned] -
Initial Analysis by [email protected]
Feb. 27, 2021
Action Type Old Value New Value Added CVSS V2 NIST (AV:L/AC:L/Au:N/C:P/I:P/A:P) Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://bugzilla.redhat.com/show_bug.cgi?id=1912683 No Types Assigned https://bugzilla.redhat.com/show_bug.cgi?id=1912683 Issue Tracking, Patch, Third Party Advisory Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (excluding) 5.2 Added CPE Configuration OR *cpe:2.3:a:redhat:openshift_container_platform:4.4:*:*:*:*:*:*:* *cpe:2.3:a:redhat:openshift_container_platform:4.5:*:*:*:*:*:*:* *cpe:2.3:a:redhat:openshift_container_platform:4.6:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-20194
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2021-20194
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.04 }} 0.00%
score
0.05635
percentile