# CVE-2021-20194: There is a vulnerability in the linux kernel versions higher than 5.2 (if kernel compiled with config params CONFIGBPFSYSCALL=y , CONFIGBPF…

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2021-02-23T22:33:24.000Z
- Modified: 2026-06-17T03:33:27.007Z
- Weaknesses: CWE-20, CWE-787
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- kernel: kernel 5.2 and higher.
- linux linux_kernel: from >5.2
- redhat openshift_container_platform: 4.4; 4.5; 4.6
- redhat enterprise_linux: 8.0

## Every score

- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <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)

## Sources

- CVE List: [CVE-2021-20194](https://www.cve.org/CVERecord?id=CVE-2021-20194), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-20194](https://nvd.nist.gov/vuln/detail/CVE-2021-20194), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-20194 · Whole record: https://cve.day/CVE-2021-20194.json · Rebuilt by cve.day 2026-11-25T22:58:00.025Z
