CVE-2021-4001

MEDIUM CVSS 3.1: 4.1 EPSS 0.20%
Updated Oct 09, 2026
Linux
Parameter Value
CVSS 4.1 (MEDIUM)
Affected Versions before 5.15
Type CWE-367 (Time-of-check Time-of-use (TOCTOU))
Vendor Linux
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
High
Difficult to exploit
Privileges Required
High
Admin privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
High
Complete data modification
Availability
None
No disruption

CVSS Vector v3.1

Vulnerable Products 2

Configuration From (including) Up to (excluding)
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
— <= 5.15
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:5.16:rc1:*:*:*:*:*:*
— —