4.1medium
A race condition was found in the Linux kernel's ebpf verifier between bpfmapupdateelem and bpfmapfreeze due to a missing lock in kernel/bp…
- Severity
- 4.1medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| kernel | kernel 5.16 rc2 | CVE List |
| linux linux_kernel | up to 5.15, 5.16 | NVD |
All scores
| NVD | 4.1medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N |
| NVD | 4.7medium CVSS:2.0 | AV:L/AC:M/Au:N/C:N/I:C/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Se ha encontrado una condición de carrera en el verificador ebpf del kernel de Linux entre las funciones bpf_map_update_elem y bpf_map_freeze debido a la falta de un bloqueo en el archivo kernel/bpf/syscall.c. En este fallo, un usuario local con un privilegio especial (cap_sys_admin o cap_bpf) puede modificar el espacio de direcciones mapeado congelado. Este fallo afecta a las versiones del kernel anteriores a 5.16 rc2
References
| https://bugzilla.redhat.com/show_bug.cgi?id=2025645 | issue-tracking, patch, third-party-advisory | |
| https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=353050be4c19e102178ccc05988101887c25ae53 | patch, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-4001 changed 2026-10-08 | CVE Terms of Use |
| NVD | CVE-2021-4001 changed 2026-10-08 | Public domain |