CVE-2020-8835Linux kernel bpf verifier vulnerability
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)
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | linux-oem-5.6 | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | linux-raspi2 | Will not fix introduced by upstream commit 581738a681b6, which was mistakenly backported to upstream stable 5.4 kernel (b4de258dede528f88f401259aab3147fb6da1ddf). Ubuntu's… | UBUNTU-CVE-2020-8835 | |
| Ubuntu 18.04 | linux-aws-5.0 | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | linux-azure | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | linux-azure-5.3 | Fixed | 5.3.0-1018.19~18.04.1 | UBUNTU-CVE-2020-8835 |
| Ubuntu 18.04 | linux-azure-edge | Will not fix introduced by upstream commit 581738a681b6, which was mistakenly backported to upstream stable 5.4 kernel (b4de258dede528f88f401259aab3147fb6da1ddf). Ubuntu's… | UBUNTU-CVE-2020-8835 | |
| Ubuntu 18.04 | linux-gcp | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | linux-gcp-5.3 | Fixed | 5.3.0-1016.17~18.04.1 | UBUNTU-CVE-2020-8835 |
| Ubuntu 18.04 | linux-gcp-edge | Will not fix introduced by upstream commit 581738a681b6, which was mistakenly backported to upstream stable 5.4 kernel (b4de258dede528f88f401259aab3147fb6da1ddf). Ubuntu's… | UBUNTU-CVE-2020-8835 | |
| Ubuntu 18.04 | linux-gke-4.15 | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | linux-gke-5.0 | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | linux-gke-5.3 | Fixed | 5.3.0-1016.17~18.04.1 | UBUNTU-CVE-2020-8835 |
| Ubuntu 18.04 | linux-hwe | Fixed | 5.3.0-45.37~18.04.1 | UBUNTU-CVE-2020-8835 |
| Ubuntu 18.04 | linux-hwe-edge | Will not fix introduced by upstream commit 581738a681b6, which was mistakenly backported to upstream stable 5.4 kernel (b4de258dede528f88f401259aab3147fb6da1ddf). Ubuntu's… | UBUNTU-CVE-2020-8835 | |
| Ubuntu 18.04 | linux-oem | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | linux-oem-osp1 | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | linux-oracle-5.0 | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | linux-oracle-5.3 | Fixed | 5.3.0-1013.14~18.04.1 | UBUNTU-CVE-2020-8835 |
| Ubuntu 18.04 | linux-raspi2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | linux-raspi2-5.3 | Fixed | 5.3.0-1021.23~18.04.1 | UBUNTU-CVE-2020-8835 |
| Ubuntu 16.04 | linux | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-aws | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-aws-hwe | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-azure | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-azure-edge | Will not fix introduced by upstream commit 581738a681b6, which was mistakenly backported to upstream stable 5.4 kernel (b4de258dede528f88f401259aab3147fb6da1ddf). Ubuntu's… | ||
| Ubuntu 16.04 | linux-gcp | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-hwe | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-hwe-edge | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-kvm | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-oem | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-oracle | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-raspi2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-snapdragon | Not affected vulnerable_code_not_present | ||
| Debian 14 | linux | Fixed | 5.5.13-2 | DEBIAN-CVE-2020-8835 |
| Debian 13 | linux | Fixed | 5.5.13-2 | DEBIAN-CVE-2020-8835 |
| Debian 12 | linux | Fixed | 5.5.13-2 | DEBIAN-CVE-2020-8835 |
| Red Hat Enterprise Linux 8 | bpftool | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-abi-stablelists | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-abi-whitelists | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-core | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-cross-headers | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-debug | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-debug-core | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-debug-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-debug-modules | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-debug-modules-extra | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-debug-modules-internal | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-headers | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-ipaclones-internal | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-modules | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-modules-extra | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-modules-internal | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-rt-core | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-rt-debug | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-rt-debug-core | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-rt-debug-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-rt-debug-kvm | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-rt-debug-modules | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-rt-debug-modules-extra | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-rt-debug-modules-internal | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-rt-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-rt-kvm | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-rt-modules | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-rt-modules-extra | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-rt-modules-internal | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-rt-selftests-internal | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-selftests-internal | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-tools-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-tools-libs-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-zfcpdump | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-zfcpdump-core | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-zfcpdump-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-zfcpdump-modules | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-zfcpdump-modules-extra | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-zfcpdump-modules-internal | Not affected | ||
| Red Hat Enterprise Linux 8 | perf | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-perf | Not affected | ||
| Red Hat Enterprise Linux 7 | bpftool | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-abi-whitelists | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-alt | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-bootwrapper | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-debug | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-debug-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-doc | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-headers | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-kdump | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-kdump-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-rt-debug | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-rt-debug-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-rt-debug-kvm | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-rt-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-rt-doc | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-rt-kvm | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-rt-trace | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-rt-trace-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-rt-trace-kvm | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-tools | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-tools-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-tools-libs-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | perf | Not affected | ||
| Red Hat Enterprise Linux 7 | python-perf | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-abi-whitelists | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-bootwrapper | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-debug | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-debug-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-doc | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-firmware | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-headers | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-kdump | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-kdump-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | perf | Not affected | ||
| Red Hat Enterprise Linux 6 | python-perf | Not affected | ||
| Red Hat Enterprise Linux 5 | kernel | Not affected |
What the vendor says
As published in the CVE record by canonical, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Linux kernel: affected: 5.6-stable to before 5.6.1, 5.5-stable to before 5.5.14, 5.4.7 to before 5.4-stable*; fixed in
5.6.1,5.5.14,5.4.29
Solution: Revert commit 581738a681b6 ("bpf: Provide better register bounds after jmp32 instructions").
Workaround: Mitigation for this vulnerability is available by setting the kernel.unprivileged_bpf_disabled sysctl to 1: $ sudo sysctl kernel.unprivileged_bpf_disabled=1 $ echo kernel.unprivileged_bpf_disabled=1 | sudo tee /etc/sysctl.d/90-CVE-2020-8835.conf This issue is also mitigated on systems that use secure boot with the kernel lockdown feature which blocks BPF program loading.
Vendor advisories:
- https://usn.ubuntu.com/4313-1/ (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://usn.ubuntu.com/4313-1/
- https://www.thezdi.com/blog/2020/3/19/pwn2own-2020-day-one-results
- https://lore.kernel.org/bpf/20200330160324.15259-1-daniel%40iogearbox.net/T/
- https://www.openwall.com/lists/oss-security/2020/03/30/3
- https://usn.ubuntu.com/usn/usn-4313-1
- https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=f2d67fec0b43edce8c416101cdc52e71145b5fef
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f2d67fec0b43edce8c416101cdc52e71145b5fef
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F7OONYGMSYBEFHLHZJK3GOI5Z553G4LD/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YXBWSHZ6DJIZVXKXGZPK6QPFCY7VKZEG/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TF4PQZBEPNXDSK5DOBMW54OCLP25FTCD/
- https://security.netapp.com/advisory/ntap-20200430-0004/
- http://www.openwall.com/lists/oss-security/2021/07/20/1
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.