Skip to content
OpenAdvisories
Unscored CVE-2021-33200 EUVD-2021-19913GHSA-594v-c36q-5p83

kernel/bpf/verifier.c in the Linux kernel through 5.12.7 enforces incorrect limits for pointer arithmetic operations, aka CID-bb01a1bba579.…

Published May 27, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

kernel/bpf/verifier.c in the Linux kernel through 5.12.7 enforces incorrect limits for pointer arithmetic operations, aka CID-bb01a1bba579. This can be abused to perform out-of-bounds reads and writes in kernel memory, leading to local privilege escalation to root. 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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 5.10.40-1 —
Debian 13 linux 5.10.40-1 —
Debian 12 linux 5.10.40-1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS linux 5.4.0-77.86 USN-5000-1
Ubuntu 20.04 LTS linux-aws +1 5.4.0-1051.53 USN-5000-1
Ubuntu 20.04 LTS linux-aws-5.8 5.8.0-1038.40~20.04.1 USN-4999-1
Ubuntu 20.04 LTS linux-azure-5.8 5.8.0-1036.38~20.04.1 USN-4999-1
Ubuntu 20.04 LTS linux-gcp 5.4.0-1046.49 USN-5000-1
Ubuntu 20.04 LTS linux-gcp-5.8 5.8.0-1035.37~20.04.1 USN-4999-1
Ubuntu 20.04 LTS linux-gke 5.4.0-1046.48 USN-5000-1
Ubuntu 20.04 LTS linux-gkeop 5.4.0-1018.19 USN-5000-1
Ubuntu 20.04 LTS linux-hwe-5.8 5.8.0-59.66~20.04.1 USN-4999-1
Ubuntu 20.04 LTS linux-kvm 5.4.0-1041.42 USN-5000-2
Ubuntu 20.04 LTS linux-oem-5.10 5.10.0-1029.30 USN-4983-1
Ubuntu 20.04 LTS linux-oracle 5.4.0-1048.52 USN-5000-1
Ubuntu 20.04 LTS linux-oracle-5.8 5.8.0-1033.34~20.04.1 USN-4999-1
Ubuntu 20.04 LTS linux-raspi 5.4.0-1038.41 USN-5000-1
Ubuntu 20.04 LTS linux-riscv +1 No fix yet —
Ubuntu 18.04 LTS linux 4.15.0-151.157 USN-5018-1
Ubuntu 18.04 LTS linux-aws 4.15.0-1109.116 USN-5018-1
Ubuntu 18.04 LTS linux-aws-5.4 +1 5.4.0-1051.53~18.04.1 USN-5000-1
Ubuntu 18.04 LTS linux-azure-4.15 4.15.0-1121.134 USN-5018-1
Ubuntu 18.04 LTS linux-gcp +13 No fix yet —
Ubuntu 18.04 LTS linux-gcp-4.15 4.15.0-1106.120 USN-5018-1
Ubuntu 18.04 LTS linux-gcp-5.4 5.4.0-1046.49~18.04.1 USN-5000-1
Ubuntu 18.04 LTS linux-gke-5.4 5.4.0-1046.48~18.04.1 USN-5000-1
Ubuntu 18.04 LTS linux-gkeop-5.4 5.4.0-1018.19~18.04.1 USN-5000-1
Ubuntu 18.04 LTS linux-hwe-5.4 5.4.0-77.86~18.04.1 USN-5000-1
Ubuntu 18.04 LTS linux-kvm 4.15.0-1097.99 USN-5018-1
Ubuntu 18.04 LTS linux-oracle 4.15.0-1078.86 USN-5018-1
Ubuntu 18.04 LTS linux-oracle-5.4 5.4.0-1048.52~18.04.1 USN-5000-1
Ubuntu 18.04 LTS linux-raspi-5.4 5.4.0-1038.41~18.04.1 USN-5000-1
Ubuntu 18.04 LTS linux-raspi2 4.15.0-1092.98 USN-5018-1
Ubuntu 18.04 LTS linux-snapdragon 4.15.0-1109.118 USN-5018-1
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS linux-aws-hwe 4.15.0-1109.116~16.04.1 USN-5018-1
Ubuntu Pro 16.04 LTS linux-azure 4.15.0-1121.134~16.04.1 USN-5018-1
Ubuntu Pro 16.04 LTS linux-gcp 4.15.0-1106.120~16.04.1 USN-5018-1
Ubuntu Pro 16.04 LTS linux-hwe 4.15.0-151.157~16.04.1 USN-5018-1
Ubuntu Pro 16.04 LTS linux-oracle 4.15.0-1078.86~16.04.1 USN-5018-1
Ubuntu Pro 14.04 LTS linux-azure 4.15.0-1121.134~14.04.1 USN-5018-1
ReleasePackageFixed inAdvisory
RHEL 8 kernel-rt +12 4.18.0-348.rt7.130.el8 RHSA-2021:4140
RHEL 8 perf +26 4.18.0-348.el8 RHSA-2021:4356

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 kernel-tools-libs-devel 4.18.0-348.el8 ALSA-2021:4356
ReleasePackageFixed inAdvisory
SLES 15 SP3 kernel-64kb +5 5.3.18-59.5.2 SUSE-SU-2021:1977-1
SLES 15 SP3 kernel-azure +2 5.3.18-38.3.1 SUSE-SU-2021:1975-1
SLES 15 SP3 kernel-default-base 5.3.18-59.5.2.18.2.2 SUSE-SU-2021:1977-1
SLES 15 SP3 kernel-syms +1 5.3.18-59.5.1 SUSE-SU-2021:1977-1
SLES 15 SP2 kernel-azure +1 5.3.18-18.50.2 SUSE-SU-2021:1888-1
SLES 15 SP2 kernel-default-base 5.3.18-24.67.3.9.30.2 SUSE-SU-2021:1890-1
SLES 15 SP2 kernel-docs +1 5.3.18-24.67.3 SUSE-SU-2021:1890-1
SLES 15 SP2 kernel-preempt 5.3.18-24.67.4 SUSE-SU-2021:1890-1
SLES 15 SP2 kernel-source +1 5.3.18-24.67.2 SUSE-SU-2021:1890-1
SLES 15 SP2 kernel-syms 5.3.18-24.67.1 SUSE-SU-2021:1890-1
SLES 15 SP2 kernel-syms-azure 5.3.18-18.50.1 SUSE-SU-2021:1888-1
SLES 15 SP1 kernel-docs +5 4.12.14-197.92.1 SUSE-SU-2021:2427-1, SUSE-SU-2021:1912-1
SLES 15 kernel-docs +6 4.12.14-150.75.1 SUSE-SU-2021:2421-1
SLES 12 SP5 kernel-azure +2 4.12.14-16.59.1 SUSE-SU-2024:0975-1, SUSE-SU-2021:1887-1
SLES 12 SP5 kernel-docs 4.12.14-122.74.2 SUSE-SU-2024:0925-1, SUSE-SU-2021:1913-1
SLES 12 SP5 kernel-syms +3 4.12.14-122.74.1 SUSE-SU-2024:0925-1, SUSE-SU-2021:1913-1
Show 23 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP4 kernel-syms +2 4.12.14-95.77.1 SUSE-SU-2021:2422-1, SUSE-SU-2021:1891-1
SLES for SAP 15 SP1 kernel-docs +4 4.12.14-197.92.1 SUSE-SU-2021:2427-1, SUSE-SU-2021:1912-1
SLES for SAP 15 kernel-docs +5 4.12.14-150.75.1 SUSE-SU-2021:2421-1
SLES for SAP 12 SP5 kernel-azure +2 4.12.14-16.59.1 SUSE-SU-2024:0975-1, SUSE-SU-2021:1887-1
SLES for SAP 12 SP5 kernel-syms +2 4.12.14-122.74.1 SUSE-SU-2024:0925-1, SUSE-SU-2021:1913-1
SLES for SAP 12 SP4 kernel-syms +2 4.12.14-95.77.1 SUSE-SU-2021:2422-1, SUSE-SU-2021:1891-1
SLE Real Time 12 SP5 kernel-rt +3 4.12.14-10.46.1 SUSE-SU-2021:1899-1
SLE Micro 5.0 kernel-default 5.3.18-24.67.3 SUSE-SU-2021:1890-1
SLE Micro 5.0 kernel-default-base 5.3.18-24.67.3.9.30.2 SUSE-SU-2021:1890-1
SLE Micro 5.0 kernel-rt 5.3.18-8.13.1 SUSE-SU-2021:2208-1
SLE Live Patching 15 SP3 kernel-default 5.3.18-59.5.2 SUSE-SU-2021:1977-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_1 1-7.5.1 SUSE-SU-2021:1977-1
SLE Live Patching 15 SP2 kernel-default 5.3.18-24.67.3 SUSE-SU-2021:1890-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_13 2-2.1 SUSE-SU-2021:2027-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_14 1-5.3.2 SUSE-SU-2021:1890-1
SLE Live Patching 15 SP1 kernel-default 4.12.14-197.92.1 SUSE-SU-2021:2427-1, SUSE-SU-2021:1912-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_24 2-2.1 SUSE-SU-2021:2020-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_25 1-3.3.1 SUSE-SU-2021:1912-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_26 1-3.3.3 SUSE-SU-2021:2427-1
SLE Live Patching 15 kernel-default 4.12.14-150.75.1 SUSE-SU-2021:2421-1
SLE Live Patching 15 kernel-livepatch-SLE15_Update_24 2-2.1 SUSE-SU-2021:2057-1
SLE Live Patching 15 kernel-livepatch-SLE15_Update_25 1-1.3.1 SUSE-SU-2021:2421-1
SLE Live Patching 12 SP5 kernel-default 4.12.14-122.74.1 SUSE-SU-2024:0925-1, SUSE-SU-2021:1913-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_18 2-2.1 SUSE-SU-2021:2020-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_19 1-8.3.1 SUSE-SU-2021:1913-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_54 1-8.7.1 SUSE-SU-2024:0925-1
SLE Live Patching 12 SP4 kernel-default 4.12.14-95.77.1 SUSE-SU-2021:2422-1, SUSE-SU-2021:1891-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_20 2-2.1 SUSE-SU-2021:2020-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_21 +1 1-6.3.1 SUSE-SU-2021:2422-1, SUSE-SU-2021:1891-1
SLE HPC 15 SP1 kernel-docs +4 4.12.14-197.92.1 SUSE-SU-2021:2427-1, SUSE-SU-2021:1912-1
SLE HPC 15 kernel-docs +5 4.12.14-150.75.1 SUSE-SU-2021:2421-1
SUSE Real Time Module 15 SP3 kernel-rt +3 5.3.18-8.13.1 SUSE-SU-2021:2208-1
SUSE Real Time Module 15 SP2 kernel-rt +3 5.3.18-39.1 SUSE-SU-2021:1889-1
SUSE OpenStack Cloud Crowbar 9 kernel-syms +2 4.12.14-95.77.1 SUSE-SU-2021:2422-1, SUSE-SU-2021:1891-1
SUSE OpenStack Cloud 9 kernel-syms +2 4.12.14-95.77.1 SUSE-SU-2021:2422-1, SUSE-SU-2021:1891-1
SUSE Manager Server 4.0 kernel-docs +5 4.12.14-197.92.1 SUSE-SU-2021:2427-1, SUSE-SU-2021:1912-1
SUSE Manager Retail Branch Server 4.0 kernel-docs +4 4.12.14-197.92.1 SUSE-SU-2021:2427-1, SUSE-SU-2021:1912-1
SUSE Manager Proxy 4.0 kernel-docs +4 4.12.14-197.92.1 SUSE-SU-2021:2427-1, SUSE-SU-2021:1912-1
SUSE Enterprise Storage 6 kernel-docs +4 4.12.14-197.92.1 SUSE-SU-2021:2427-1, SUSE-SU-2021:1912-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.3 kernel-64kb +3 5.3.18-59.5.2 openSUSE-SU-2021:1977-1
openSUSE Leap 15.3 kernel-azure +2 5.3.18-38.3.1 openSUSE-SU-2021:1975-1
openSUSE Leap 15.3 kernel-debug +4 4.12.14-197.99.1 openSUSE-SU-2021:2427-1, openSUSE-SU-2021:1977-1
openSUSE Leap 15.3 kernel-default-base 5.3.18-59.5.2.18.2.2 openSUSE-SU-2021:1977-1
openSUSE Leap 15.3 kernel-syms +2 5.3.18-59.5.1 openSUSE-SU-2021:1977-1
openSUSE Leap 15.2 kernel-default-base 5.3.18-lp152.78.1.lp152.8.34.1 openSUSE-SU-2021:0843-1
openSUSE Leap 15.2 kernel-docs +8 5.3.18-lp152.78.1 openSUSE-SU-2021:0843-1
openSUSE Leap 15.2 kernel-rt +3 5.3.18-lp152.3.14.1 openSUSE-SU-2021:0947-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 kernel-livepatch-4.14.232-177.418 1.0-0.amzn2 ALAS2-2021-1675
Amazon Linux 2 perf +8 4.14.232-177.418.amzn2 ALAS2-2021-1675

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) kernel 5.10.78.1-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 perf +19 4.18.0-348.el8 ELSA-2021-4356

Advisories 35

References