CVE Vulnerabilities

CVE-2021-36980

Use After Free

Published: Jul 20, 2021 | Modified: May 05, 2025
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
7.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM

Open vSwitch (aka openvswitch) 2.11.0 through 2.15.0 has a use-after-free in decode_NXAST_RAW_ENCAP (called from ofpact_decode and ofpacts_decode) during the decoding of a RAW_ENCAP action.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

Name Vendor Start Version End Version
Openvswitch Openvswitch 2.11.0 (including) 2.15.0 (including)
Fast Datapath for Red Hat Enterprise Linux 7 RedHat openvswitch2.11-0:2.11.3-89.el7fdp *
Fast Datapath for Red Hat Enterprise Linux 7 RedHat openvswitch2.13-0:2.13.0-102.el7fdp *
Fast Datapath for Red Hat Enterprise Linux 8 RedHat openvswitch2.11-0:2.11.3-86.el8fdp *
Fast Datapath for Red Hat Enterprise Linux 8 RedHat openvswitch2.13-0:2.13.0-114.el8fdp *
Fast Datapath for Red Hat Enterprise Linux 8 RedHat openvswitch2.15-0:2.15.0-24.el8fdp *
Red Hat OpenShift Container Platform 4.9 RedHat openvswitch2.15-0:2.15.0-28.el8fdp *
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7 RedHat openvswitch2.11-0:2.11.3-89.el7fdp *
Openvswitch Ubuntu esm-infra/focal *
Openvswitch Ubuntu focal *
Openvswitch Ubuntu groovy *
Openvswitch Ubuntu hirsute *
Openvswitch Ubuntu trusty *
Openvswitch Ubuntu xenial *

Potential Mitigations

References