cve.bz

CVE-2020-8835 Out-of-bounds Read

7.8 highExploit referenceEPSS 6.1%Fix available

High (7.8). EPSS 6.1% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel 5.5.0 and newer, the bpf verifier (kernel/bpf/verifier.c) did not properly restrict the register bounds for 32-bit operations, leading to out-of-bounds reads and writes in kernel memory. The vulnerability also affects the Linux 5.4 stable series, starting with v5.4.7, as the introducing commit was backported to that branch. This vulnerability was fixed in 5.6.1, 5.5.14, and 5.4.29. (issue is aka ZDI-CAN-10780)

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
6.1% (unchanged from 6.0% a week ago; 6.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-125 Out-of-bounds Read
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-8835 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-8835?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-8835?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-8835 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux kernelfrom 5.6-stable before 5.6.1
Linux kernelfrom 5.5-stable before 5.5.14
Linux kernelfrom 5.4.7 before 5.4-stable*

Fixed in

ProductFixed in
Linux kernel5.4.29

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux5.5.13-2DEBIAN-CVE-2020-8835
Ubuntu18.04:LTSlinux-azure-5.35.3.0-1018.19~18.04.1UBUNTU-CVE-2020-8835 USN-4313-1
Ubuntu18.04:LTSlinux-gcp-5.3, linux-gke-5.35.3.0-1016.17~18.04.1UBUNTU-CVE-2020-8835 USN-4313-1
Ubuntu18.04:LTSlinux-gcp-edge, linux-hwe-edge, linux-azure-edgeno fix listedUBUNTU-CVE-2020-8835
Ubuntu18.04:LTSlinux-hwe5.3.0-45.37~18.04.1UBUNTU-CVE-2020-8835 USN-4313-1
Ubuntu18.04:LTSlinux-oracle-5.35.3.0-1013.14~18.04.1UBUNTU-CVE-2020-8835 USN-4313-1
Ubuntu18.04:LTSlinux-raspi2-5.35.3.0-1021.23~18.04.1UBUNTU-CVE-2020-8835 USN-4313-1
Ubuntu20.04:LTSlinux-raspi2no fix listedUBUNTU-CVE-2020-8835

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue does not affect the versions of the kernel package as shipped with Red Hat Enterprise Linux 5, 6, 7 and 8 and Red Hat Enterprise MRG 2.

Red Hat's mitigation

The Linux kernel versions as shipped with Red Hat Enterprise Linux 5, 6, 7, 8 and Red Hat Enterprise Linux MRG 2 are not affected because they did not backport the commit

581738a681b6 ("bpf: Provide better register bounds after jmp32 instructions")

which introduced this issue. Also by default unprivileged user are not allowed to access bpf(2) syscall.

Fedora kernel allows unprivileged users to access to bpf(2) syscall by default and is prone to this issue. To disable unprivileged access to bpf(2) sycall set following sysctl(8) variable:

# sysctl -w kernel.unprivileged_bpf_disabled=1

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5kernelNot affected
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernel-altNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise MRG 2kernel-rtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-8835.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON