Vulnerability in Linux Kernel
CVE-2021-4001
A race condition was found in the Linux kernel's ebpf verifier between bpf_map_update_elem and bpf_map_freeze due to a missing lock in kernel/bpf/syscall.c. In this flaw, a local user with a special privilege (cap_sys_admin or cap_bpf) can modify the frozen mapped address space. This flaw affects kernel versions prior to 5.16 rc2.
Vulnerability class: TOCTOU (Time-of-Check to Time-of-Use)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.1 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N.
EPSS exploit prediction
EPSS 0.002, 10.0th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Linux Kernel — versions 5.16
- Kernel — versions kernel 5.16 rc2
Weakness classification (CWE)
References
- bugzilla.redhat.com/show_bug.cgi (Patch, Third Party Advisory, Issue Tracking)
- git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/ (Patch, Third Party Advisory)