---
title: "CVE-2021-31440"
canonical_url: "https://pkgseek.com/security/CVE-2021-31440"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# 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.

CVE-2021-31440 is rated HIGH (7.0), with 20 indexed affected package builds across 2 distributions.

- **Severity / Score**: HIGH (7.0)
- **Affected builds**: 20
- **Affected distros**: 2
- **Distros with fixed_in**: Oracle Linux

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Oracle Linux | 8 | bpftool | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Oracle Linux | 8 | kernel | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Oracle Linux | 8 | kernel-abi-stablelists | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Oracle Linux | 8 | kernel-core | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Oracle Linux | 8 | kernel-cross-headers | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Oracle Linux | 8 | kernel-debug | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Oracle Linux | 8 | kernel-debug-core | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Oracle Linux | 8 | kernel-debug-devel | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Oracle Linux | 8 | kernel-debug-modules | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Oracle Linux | 8 | kernel-debug-modules-extra | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Oracle Linux | 8 | kernel-devel | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Oracle Linux | 8 | kernel-doc | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Oracle Linux | 8 | kernel-headers | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Oracle Linux | 8 | kernel-modules | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Oracle Linux | 8 | kernel-modules-extra | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Oracle Linux | 8 | kernel-tools | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Oracle Linux | 8 | kernel-tools-libs | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Oracle Linux | 8 | perf | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Oracle Linux | 8 | python3-perf | 4.18.0-305.25.1.el8_4 | 4.18.0-348.el8 |
| Ubuntu | focal | linux-riscv-headers-5.4.0-24 | 5.4.0-24.28 | — |
