CVE-2020-8835
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Summary
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)
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Linux kernel | Linux kernel | 5.6-stable < 5.6.1 | affected |
| Linux kernel | Linux kernel | 5.5-stable < 5.5.14 | affected |
| Linux kernel | Linux kernel | 5.4.7 < 5.4-stable* | affected |
Weaknesses
- n/a
Workarounds
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.
ADP Enrichment
CVE Program Container
Additional 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
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
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.