First published: Fri Apr 30 2021(Updated: )
A flaw was found in the Linux kernel's eBPF verification code. By default, accessing the eBPF verifier is only accessible to privileged users with CAP_SYS_ADMIN. This flaw allows a local user who can insert eBPF instructions, to use the eBPF verifier to abuse a spectre-like flaw and infer all system memory. The highest threat from this vulnerability is to confidentiality.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/kernel-rt | <0:4.18.0-348.rt7.130.el8 | 0:4.18.0-348.rt7.130.el8 |
redhat/kernel | <0:4.18.0-348.el8 | 0:4.18.0-348.el8 |
debian/linux | 5.10.223-1 5.10.226-1 6.1.123-1 6.1.128-1 6.12.12-1 6.12.16-1 | |
Linux kernel | <=5.12.1 | |
Fedora | =32 | |
Fedora | =33 | |
Fedora | =34 | |
Debian | =9.0 |
The default Red Hat Enterprise Linux kernel prevents unprivileged users from being able to use eBPF by the kernel.unprivileged_bpf_disabled sysctl. This would require a privileged user with CAP_SYS_ADMIN or root to be able to abuse this flaw reducing its attack space. For the Red Hat Enterprise Linux 7 and 8 kernel to confirm the current state, inspect the sysctl with the command: # cat /proc/sys/kernel/unprivileged_bpf_disabled The setting of 1 would mean that unprivileged users can not use eBPF, mitigating the flaw. A kernel update will be required to mitigate the flaw for the root or users with CAP_SYS_ADMIN capabilities.
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2021-31829 is considered to have a high severity due to its potential impact on system security.
To fix CVE-2021-31829, update your kernel to versions 0:4.18.0-348.rt7.130.el8, 0:4.18.0-348.el8 for Red Hat, or apply the corresponding updates for your Linux distribution.
CVE-2021-31829 affects various Linux distributions including Red Hat, Fedora versions 32, 33, 34, and Debian 9.0.
CVE-2021-31829 is a local privilege escalation vulnerability related to eBPF verification in the Linux kernel.
CVE-2021-31829 can be exploited by a local user with the ability to insert eBPF instructions to infer sensitive system information.