PT-2021-7382 · Linux+5 · Linux Kernel+5
W1Tcher.Bupt
·
Published
2021-11-09
·
Updated
2023-10-04
·
CVE-2021-4001
CVSS v2.0
4.7
Medium
| Vector | AV:L/AC:M/Au:N/C:N/I:C/A:N |
Name of the Vulnerable Software and Affected Versions
Linux kernel versions prior to 5.16 rc2
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. This issue allows a local user with special privileges, such as cap sys admin or cap bpf, to modify the frozen mapped address space, potentially compromising data integrity.Recommendations
For Linux kernel versions prior to 5.16 rc2, update to version 5.16 rc2 or later to resolve the issue. As a temporary workaround, consider restricting the use of
bpf map update elem and bpf map freeze functions until a patch is available. Additionally, limiting privileges to prevent local users from obtaining cap sys admin or cap bpf capabilities can help minimize the risk of exploitation.Fix
Time Of Check To Time Of Use
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Astra Linux
Linuxmint
Linux Kernel
Suse
Ubuntu