CVE Catalog

CVE-2021-4001

MediumCVSS 4.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.19%

8th percentile - higher than 8% of all known CVEs

Summary

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.

Risk Assessment

A local user with elevated privileges can bypass the eBPF map freeze mechanism, potentially leading to kernel data integrity violations and possible privilege escalation.

Recommendation

Update the Linux kernel to version 5.16 rc2 or later, and in the meantime restrict granting cap_sys_admin and cap_bpf privileges to the necessary minimum.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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 data from NVD (NIST) · CISA KEV · EPSS