CVE-2021-20194

kernel: heap overflow in __cgroup_bpf_run_filter_getsockopt()

Published Feb 23, 2021 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-7641 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.
Ubuntu USN Ubuntu USN USN-4879-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-4884-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-4909-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-4912-1 Linux kernel (OEM) vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 3, 2024, 5:30 PM
Reserved
Dec 17, 2020, 12:00 AM
Status
Modified
Published
Feb 23, 2021, 11:15 PM
Modified
Jun 17, 2026, 3:33 AM
Severity
Moderate
Public date
Jan 22, 2021, 10:00 AM