CVE-2021-36980 Use after free in n/a

Medium 5.5 Published Updated

A use-after-free vulnerability in Open vSwitch allows attackers to potentially execute arbitrary code or cause a denial of service via crafted RAW_ENCAP actions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-36980?

CVE-2021-36980 is a medium-severity use after free vulnerability in n/a, published on 20 Jul 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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: CWE-416

Which versions are affected by CVE-2021-36980?

It affects 1 product.

Linux distribution packages (40)
openvswitch2.11 Red Hat:enterprise_linux:7::fastdatapathAll versions0:2.11.3-89.el7fdp
openvswitch2.11-debuginfo Red Hat:enterprise_linux:7::fastdatapathAll versions0:2.11.3-89.el7fdp
openvswitch2.11-devel Red Hat:enterprise_linux:7::fastdatapathAll versions0:2.11.3-89.el7fdp
openvswitch2.11-test Red Hat:enterprise_linux:7::fastdatapathAll versions0:2.11.3-89.el7fdp
openvswitch2.13 Red Hat:enterprise_linux:7::fastdatapathAll versions0:2.13.0-102.el7fdp
openvswitch2.13-debuginfo Red Hat:enterprise_linux:7::fastdatapathAll versions0:2.13.0-102.el7fdp
openvswitch2.13-devel Red Hat:enterprise_linux:7::fastdatapathAll versions0:2.13.0-102.el7fdp
openvswitch2.13-ipsec Red Hat:enterprise_linux:7::fastdatapathAll versions0:2.13.0-102.el7fdp
openvswitch2.13-test Red Hat:enterprise_linux:7::fastdatapathAll versions0:2.13.0-102.el7fdp
python-openvswitch2.11 Red Hat:enterprise_linux:7::fastdatapathAll versions0:2.11.3-89.el7fdp
python3-openvswitch2.13 Red Hat:enterprise_linux:7::fastdatapathAll versions0:2.13.0-102.el7fdp
openvswitch2.11 Red Hat:enterprise_linux:7::hypervisorAll versions0:2.11.3-89.el7fdp
openvswitch2.11-debuginfo Red Hat:enterprise_linux:7::hypervisorAll versions0:2.11.3-89.el7fdp
openvswitch2.11-devel Red Hat:enterprise_linux:7::hypervisorAll versions0:2.11.3-89.el7fdp
python-openvswitch2.11 Red Hat:enterprise_linux:7::hypervisorAll versions0:2.11.3-89.el7fdp
network-scripts-openvswitch2.11 Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.11.3-86.el8fdp
network-scripts-openvswitch2.13 Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.13.0-114.el8fdp
network-scripts-openvswitch2.15 Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.15.0-24.el8fdp
openvswitch2.11 Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.11.3-86.el8fdp
openvswitch2.11-debuginfo Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.11.3-86.el8fdp
openvswitch2.11-debugsource Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.11.3-86.el8fdp
openvswitch2.11-devel Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.11.3-86.el8fdp
openvswitch2.11-test Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.11.3-86.el8fdp
openvswitch2.13 Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.13.0-114.el8fdp
openvswitch2.13-debuginfo Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.13.0-114.el8fdp
openvswitch2.13-debugsource Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.13.0-114.el8fdp
openvswitch2.13-devel Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.13.0-114.el8fdp
openvswitch2.13-ipsec Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.13.0-114.el8fdp
openvswitch2.13-test Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.13.0-114.el8fdp
openvswitch2.15 Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.15.0-24.el8fdp
openvswitch2.15-debuginfo Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.15.0-24.el8fdp
openvswitch2.15-debugsource Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.15.0-24.el8fdp
openvswitch2.15-devel Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.15.0-24.el8fdp
openvswitch2.15-ipsec Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.15.0-24.el8fdp
openvswitch2.15-test Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.15.0-24.el8fdp
python3-openvswitch2.11 Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.11.3-86.el8fdp
python3-openvswitch2.11-debuginfo Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.11.3-86.el8fdp
python3-openvswitch2.13 Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.13.0-114.el8fdp
python3-openvswitch2.13-debuginfo Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.13.0-114.el8fdp
python3-openvswitch2.15 Red Hat:enterprise_linux:8::fastdatapathAll versions0:2.15.0-24.el8fdp

Products include Openvswitch Openvswitch.

How do I fix CVE-2021-36980?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2021-36980 being exploited?

There is no known exploitation of CVE-2021-36980 in the wild and no public exploit code.

Sources

Also known as AZL-6781, DEBIAN-CVE-2021-36980, GHSA-ww48-mfpv-wc3r, OESA-2021-1304, RHBA-2021:1163, RHBA-2021:1166 and 11 more.

Is CVE-2021-36980 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free