CVE-2021-31440 json
This vulnerability allows local attackers to escalate privileges on affected installations of Linux Kernel 5.11.15.
published 2021-05-21 5 y ago modified 2026-06-17 4 mo ago also EUVD-2021-18340
- cvss
- 8.8
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 78%
- public exploits
- 0
- none known
Summary
This vulnerability allows local attackers to escalate privileges on affected installations of Linux Kernel 5.11.15. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability. The specific flaw exists within the handling of eBPF programs. The issue results from the lack of proper validation of user-supplied eBPF programs prior to executing them. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of the kernel. Was ZDI-CAN-13661.
Patch / fix
- linux linux_kernel 5.10.37, 5.11.21, 5.12.4
- linux Debian 14, Debian 13, Debian 12 5.10.38-1
debian advisories DEBIAN-CVE-2021-31440
- linux-aws-5.8 Ubuntu 20.04 LTS 5.8.0-1038.40~20.04.1
- linux-gcp-5.8 Ubuntu 20.04 LTS 5.8.0-1035.37~20.04.1
- linux-hwe-5.8 Ubuntu 20.04 LTS 5.8.0-59.66~20.04.1
- linux-oem-5.10 Ubuntu 20.04 LTS 5.10.0-1032.33
- linux-azure-5.8 Ubuntu 20.04 LTS 5.8.0-1036.38~20.04.1
- linux-riscv-5.8 Ubuntu 20.04 LTS 5.8.0-29.31~20.04.1
- linux-oracle-5.8 Ubuntu 20.04 LTS 5.8.0-1033.34~20.04.1
ubuntu advisories UBUNTU-CVE-2021-31440
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel RHEL 8 4.18.0-348.el8
- perf RHEL 8 4.18.0-348.el8
- bpftool RHEL 8 4.18.0-348.el8
- kernel-core RHEL 8 4.18.0-348.el8
- kernel-tools RHEL 8 4.18.0-348.el8
- python3-perf RHEL 8 4.18.0-348.el8
- kernel-modules RHEL 8 4.18.0-348.el8
- kernel-zfcpdump RHEL 8 4.18.0-348.el8
red hat advisories RHSA-2021:4356RHSA-2021:4140
- kernel-livepatch-SLE15-SP3_Update_0 SLE Live Patching 15 SP3 7-3.1
suse advisories SUSE-SU-2021:3360-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-31440 updated cvss 7.0
kernel: local escalation of privileges in handling of eBPF programs
-
Red Hat CodeReady Linux Builder (v. 8) kernel-debuginfo-common-x86_64 4.18.0-348.el8, kernel-debuginfo-common-aarch64 4.18.0-348.el8, kernel-debuginfo-common-ppc64le 4.18.0-348.el8 Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-348.el8, kernel 4.18.0-348.el8, bpftool 4.18.0-348.el8, kernel-core 4.18.0-348.el8, kernel-tools 4.18.0-348.el8, python3-perf 4.18.0-348.el8, +15 morefixed: vendor fix RHSA-2021:4356
-
Red Hat Enterprise Linux Real Time (v. 8) kernel-rt 4.18.0-348.rt7.130.el8, kernel-rt-core 4.18.0-348.rt7.130.el8, kernel-rt-modules 4.18.0-348.rt7.130.el8, kernel-rt-debug-core 4.18.0-348.rt7.130.el8, kernel-rt-debug-modules 4.18.0-348.rt7.130.el8, kernel-rt-modules-extra 4.18.0-348.rt7.130.el8, +2 more Red Hat Enterprise Linux Real Time for NFV (v. 8) kernel-rt 4.18.0-348.rt7.130.el8, kernel-rt-kvm 4.18.0-348.rt7.130.el8, kernel-rt-core 4.18.0-348.rt7.130.el8, kernel-rt-modules 4.18.0-348.rt7.130.el8, kernel-rt-debug-kvm 4.18.0-348.rt7.130.el8, kernel-rt-debug-core 4.18.0-348.rt7.130.el8, +4 morefixed: vendor fix RHSA-2021:4140
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, kernel-alt, python-perf, +9 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +82 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.75% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 8.8 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.9 | AV:L/AC:M/Au:N/C:C/I:C/A:C |
Affected products
- Linux Kernel
Classification
- Weakness
-
- CWE-682 Incorrect Calculation
- Technology feeds
References
-
git.kernel.org
/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=10bf4e83167cc68595b85fd73bb91e8f2c086e36
patch, vendor-advisory
-
zerodayinitiative.com
/advisories/ZDI-21-503/
third-party-advisory, vdb-entry
-
security.netapp.com
/advisory/ntap-20210706-0003/
third-party-advisory
Sources
- CVE List CVE-2021-31440
- NVD CVE-2021-31440
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.