CVE & CISA-KEV Catalog

CVE-2021-31440

HIGHEPSS 77th pctl
7.0
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
linuxDebian
Fixed in:5.10.38-1CVE-2021-31440
Fixed in:5.10.38-1CVE-2021-31440
Fixed in:5.10.38-1CVE-2021-31440
linux-aws-5.8Ubuntu
Fixed in:5.8.0-1038.40~20.04.1USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-azure-5.8Ubuntu
Fixed in:5.8.0-1036.38~20.04.1USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-gcp-5.8Ubuntu
Fixed in:5.8.0-1035.37~20.04.1USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-hwe-5.8Ubuntu
Fixed in:5.8.0-59.66~20.04.1USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-5.10.0-1033-oemUbuntu
Fixed in:5.10.0-1033.34USN-5001-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-5.8.0-1033-oracleUbuntu
Fixed in:5.8.0-1033.34~20.04.1USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-5.8.0-1035-gcpUbuntu
Fixed in:5.8.0-1035.37~20.04.1USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-5.8.0-1036-azureUbuntu
Fixed in:5.8.0-1036.38~20.04.1USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-5.8.0-1038-awsUbuntu
Fixed in:5.8.0-1038.40~20.04.1USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-5.8.0-59-genericUbuntu
Fixed in:5.8.0-59.66~20.04.1USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-5.8.0-59-generic-64kUbuntu
Fixed in:5.8.0-59.66~20.04.1USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-5.8.0-59-generic-lpaeUbuntu
Fixed in:5.8.0-59.66~20.04.1USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-5.8.0-59-lowlatencyUbuntu
Fixed in:5.8.0-59.66~20.04.1USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-awsUbuntu
Fixed in:5.8.0.1038.40~20.04.11USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-azureUbuntu
Fixed in:5.8.0.1036.38~20.04.8USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-gcpUbuntu
Fixed in:5.8.0.1035.37~20.04.9USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-generic-64k-hwe-20.04Ubuntu
Fixed in:5.8.0.59.66~20.04.42USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-generic-hwe-20.04Ubuntu
Fixed in:5.8.0.59.66~20.04.42USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-generic-lpae-hwe-20.04Ubuntu
Fixed in:5.8.0.59.66~20.04.42USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-lowlatency-hwe-20.04Ubuntu
Fixed in:5.8.0.59.66~20.04.42USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-oem-20.04Ubuntu
Fixed in:5.10.0.1033.34USN-5001-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-oem-20.04bUbuntu
Fixed in:5.10.0.1033.34USN-5001-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-oracleUbuntu
Fixed in:5.8.0.1033.34~20.04.9USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-image-virtual-hwe-20.04Ubuntu
Fixed in:5.8.0.59.66~20.04.42USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-oem-5.10Ubuntu
Fixed in:5.10.0-1033.34USN-5001-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

linux-oracle-5.8Ubuntu
Fixed in:5.8.0-1033.34~20.04.1USN-4999-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

1.75%probability of exploitation in 30 days
77thpercentile

Elevated risk: more likely to be exploited than 77% of all known CVEs.

References

Related Vulnerabilities

Other CWE-682 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2022-30780High7.557%-Fix
CVE-2020-14422Medium5.913%-Fix
CVE-2016-7433Medium5.39.8%-Fix
CVE-2018-8319Critical9.87.5%--
CVE-2023-35641High8.87.2%-Fix
CVE-2020-0022High8.86.1%-Fix

Common questions

How do I fix CVE-2021-31440?

Published advisories record a fix for 27 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2021-31440 being actively exploited?

Not that we know of. CVE-2021-31440 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 1.8% is the estimated probability that it will be exploited in the next 30 days. That is higher than 77% of all scored CVEs.

How severe is CVE-2021-31440?

CVE-2021-31440 has a CVSS v3 base score of 7.0, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2021-31440 affect?

Published advisories record a fix for linux (Debian), linux-aws-5.8 (Ubuntu), linux-azure-5.8 (Ubuntu), linux-gcp-5.8 (Ubuntu), and 23 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2021-31440
CVE-2021-31440 severity badge

Markdown

[![CVE-2021-31440](https://tridentstack.com/cve/badge/CVE-2021-31440.svg)](https://tridentstack.com/cve/CVE-2021-31440)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-31440"><img src="https://tridentstack.com/cve/badge/CVE-2021-31440.svg" alt="CVE-2021-31440"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.