CVE-2021-4001

kernel: race condition when the EBPF map is frozen

Published Jan 21, 2022 CVSS 3.1 · 4.1 Medium EPSS < 1% KEV · Not listed
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.

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-33908 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.
Ubuntu USN Ubuntu USN USN-5207-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-5265-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-5278-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-6417-1 Linux kernel vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Oct 8, 2026, 9:03 PM
Reserved
Nov 22, 2021, 12:00 AM
Status
Modified
Published
Jan 21, 2022, 7:15 PM
Modified
Oct 8, 2026, 9:17 PM
Severity
Moderate
Public date
Nov 15, 2021, 12:00 AM