Bug 1965458 (CVE-2021-33200) - CVE-2021-33200 kernel: out-of-bounds reads and writes due to enforcing incorrect limits for pointer arithmetic operations by BPF verifier
Summary: CVE-2021-33200 kernel: out-of-bounds reads and writes due to enforcing incorr...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-33200
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact: Ziqian SUN (Zamir)
URL:
Whiteboard:
Depends On: 1974415 1965460 1972495 1972496 1973008 1973009
Blocks: 1965459
TreeView+ depends on / blocked
 
Reported: 2021-05-27 18:14 UTC by Guilherme de Almeida Suckevicz
Modified: 2021-11-09 21:26 UTC (History)
48 users (show)

Fixed In Version: kernel 5.13 rc4
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in kernel/bpf/verifier.c in BPF in the Linux kernel. An incorrect limit is enforced for pointer arithmetic operations which can be abused to perform out-of-bounds reads and writes in kernel memory, leading to local privilege escalation. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Clone Of:
Environment:
Last Closed: 2021-11-09 21:26:01 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:4140 0 None None None 2021-11-09 17:23:37 UTC
Red Hat Product Errata RHSA-2021:4356 0 None None None 2021-11-09 18:27:14 UTC

Description Guilherme de Almeida Suckevicz 2021-05-27 18:14:37 UTC
A flaw was found in kernel/bpf/verifier.c in BPF in the Linux kernel. An incorrect limit is enforced for pointer arithmetic operations which can be abused to perform out-of-bounds reads and writes in kernel memory, leading to local privilege escalation. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

In particular, there is a corner case where the off reg causes a masking direction change, which then results in an incorrect final aux->alu_limit.

Reference:
https://www.openwall.com/lists/oss-security/2021/05/27/1

Comment 1 Guilherme de Almeida Suckevicz 2021-05-27 18:15:41 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1965460]

Comment 15 errata-xmlrpc 2021-11-09 17:23:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:4140 https://access.redhat.com/errata/RHSA-2021:4140

Comment 16 errata-xmlrpc 2021-11-09 18:27:12 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:4356 https://access.redhat.com/errata/RHSA-2021:4356

Comment 17 Product Security DevOps Team 2021-11-09 21:25:56 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-33200


Note You need to log in before you can comment on or make changes to this bug.