Vulnerability in Linux Kernel
CVE-2021-31440
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.0 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.018, 78.5th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- WhatsWrongAndWhy/CVE-2021-31440 (last pushed 2026-07-21)
Also mentioned in 16 other repositories (adavarski/HomeLab-k8s-DevSecOps-playground, adavarski/HomeLab-Proxmox-k8s-DevSecOps-playground, Al1ex/LinuxEelvation, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- www.zerodayinitiative.com/advisories/ZDI-21-503/ (VDB Entry, Third Party Advisory)
- git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/ (Patch, Vendor Advisory)
- security.netapp.com/advisory/ntap-20210706-0003/ (Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.