Skip to content
OpenAdvisories
Unscored CVE-2021-41864 EUVD-2021-28864GHSA-c376-w83c-8gx5

prealloc_elems_and_freelist in kernel/bpf/stackmap.c in the Linux kernel before 5.14.12 allows unprivileged users to trigger an eBPF multip…

Published Oct 1, 2021 · Updated Aug 4, 2024 · Assigned by mitre

Package: kernel Package: linux Package: linux Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.3 Package: linux-aws-5.4 Package: linux-aws-5.8 Package: linux-aws-fips Package: linux-aws-hwe Package: linux-azure Package: linux-azure-4.15 Package: linux-azure-5.11 Package: linux-azure-5.3 Package: linux-azure-5.4 Package: linux-azure-5.8 Package: linux-azure-edge Package: linux-azure-fips Package: linux-bluefield Package: linux-dell300x Package: linux-fips Package: linux-gcp Package: linux-gcp-4.15 Package: linux-gcp-5.11 Package: linux-gcp-5.3 Package: linux-gcp-5.4 Package: linux-gcp-5.8 Package: linux-gcp-edge Package: linux-gcp-fips Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.4 Package: linux-hwe-5.8 Package: linux-hwe-edge Package: linux-ibm Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-kvm Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.6 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.3 Package: linux-oracle-5.4 Package: linux-oracle-5.8 Package: linux-raspi Package: linux-raspi-5.4 Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.8 Package: linux-snapdragon Package: linux-vmware Ecosystem: Azure Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

prealloc_elems_and_freelist in kernel/bpf/stackmap.c in the Linux kernel before 5.14.12 allows unprivileged users to trigger an eBPF multiplication integer overflow with a resultant out-of-bounds write.

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.14.12-1 —
Debian 13 linux 5.14.12-1 —
Debian 12 linux 5.14.12-1 —
Debian 10 linux 4.19.232-1 DSA-5096-1
Debian 9 linux 4.9.290-1 DLA-2843-1
Debian 9 linux-4.19 4.19.232-1~deb9u1 DLA-2941-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS linux-raspi-realtime No fix yet —
Ubuntu 22.04 LTS linux-realtime +1 No fix yet —
Ubuntu 20.04 LTS linux 5.4.0-92.103 USN-5210-1
Ubuntu 20.04 LTS linux-aws 5.4.0-1061.64 USN-5210-1
Ubuntu 20.04 LTS linux-aws-5.11 +2 5.11.0-1023.24~20.04.1 USN-5208-1
Ubuntu 20.04 LTS linux-azure 5.4.0-1065.68 USN-5210-1
Ubuntu 20.04 LTS linux-bluefield 5.4.0-1023.26 USN-5210-1
Ubuntu 20.04 LTS linux-gcp +1 5.4.0-1059.63 USN-5210-1
Ubuntu 20.04 LTS linux-gcp-5.11 5.11.0-1024.26~20.04.1 USN-5208-1
Ubuntu 20.04 LTS linux-gke 5.4.0-1057.60 USN-5210-1
Ubuntu 20.04 LTS linux-gkeop 5.4.0-1029.30 USN-5210-1
Ubuntu 20.04 LTS linux-hwe-5.11 5.11.0-44.48~20.04.2 USN-5208-1
Ubuntu 20.04 LTS linux-hwe-5.13 5.13.0-23.23~20.04.2 —
Ubuntu 20.04 LTS linux-ibm 5.4.0-1010.11 USN-5210-1
Ubuntu 20.04 LTS linux-kvm 5.4.0-1051.53 USN-5210-1
Ubuntu 20.04 LTS linux-oem-5.10 5.10.0-1051.53 USN-5139-1
Ubuntu 20.04 LTS linux-oem-5.13 5.13.0-1026.32 USN-5218-1
Ubuntu 20.04 LTS linux-oem-5.14 5.14.0-1007.7 USN-5140-1
Ubuntu 20.04 LTS linux-raspi 5.4.0-1048.53 USN-5210-1
Ubuntu 20.04 LTS linux-riscv +9 No fix yet —
Ubuntu 20.04 LTS linux-riscv-5.11 5.11.0-1024.25~20.04.1 —
Ubuntu 18.04 LTS linux 4.15.0-166.174 USN-5209-1
Ubuntu 18.04 LTS linux-aws 4.15.0-1118.125 USN-5209-1
Ubuntu 18.04 LTS linux-aws-5.4 5.4.0-1061.64~18.04.1 USN-5210-1
Ubuntu 18.04 LTS linux-azure-4.15 4.15.0-1129.142 USN-5209-1
Ubuntu 18.04 LTS linux-azure-5.4 5.4.0-1065.68~18.04.1 USN-5210-1
Ubuntu 18.04 LTS linux-dell300x 4.15.0-1033.38 USN-5209-1
Ubuntu 18.04 LTS linux-gcp +13 No fix yet —
Ubuntu 18.04 LTS linux-gcp-4.15 4.15.0-1114.128 USN-5209-1
Ubuntu 18.04 LTS linux-gcp-5.4 +1 5.4.0-1059.63~18.04.1 USN-5210-1
Ubuntu 18.04 LTS linux-gke-5.4 5.4.0-1057.60~18.04.1 USN-5210-1
Ubuntu 18.04 LTS linux-gkeop-5.4 5.4.0-1029.30~18.04.2 USN-5210-1
Ubuntu 18.04 LTS linux-hwe-5.4 5.4.0-92.103~18.04.2 USN-5210-1
Ubuntu 18.04 LTS linux-kvm 4.15.0-1105.107 USN-5209-1
Ubuntu 18.04 LTS linux-oracle 4.15.0-1085.93 USN-5209-1
Ubuntu 18.04 LTS linux-raspi-5.4 5.4.0-1048.53~18.04.1 USN-5210-1
Ubuntu 18.04 LTS linux-raspi2 4.15.0-1101.108 USN-5209-1
Ubuntu 18.04 LTS linux-snapdragon 4.15.0-1118.127 USN-5209-1
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro FIPS 20.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS 18.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS-updates 20.04 LTS linux-aws-fips 5.4.0-1069.73+fips2 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-azure-fips 5.4.0-1073.76+fips1 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-fips 5.4.0-1038.44 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-gcp-fips 5.4.0-1067.71~20.04.1 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-aws-fips 4.15.0-2059.61 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-azure-fips 4.15.0-2041.45 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-fips 4.15.0-1075.84 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-gcp-fips 4.15.0-2024.26 —
Ubuntu Pro 16.04 LTS linux-aws-hwe 4.15.0-1118.125~16.04.1 USN-5209-1
Ubuntu Pro 16.04 LTS linux-azure 4.15.0-1129.142~16.04.1 USN-5209-1
Ubuntu Pro 16.04 LTS linux-gcp 4.15.0-1114.128~16.04.1 USN-5209-1
Ubuntu Pro 16.04 LTS linux-hwe 4.15.0-166.174~16.04.1 USN-5209-1
Ubuntu Pro 16.04 LTS linux-oracle 4.15.0-1085.93~16.04.1 USN-5209-1
Ubuntu Pro 14.04 LTS linux-azure 4.15.0-1129.142~14.04.1 USN-5209-1
ReleasePackageFixed inAdvisory
RHEL 8 kernel-rt +12 4.18.0-372.9.1.rt7.166.el8 RHSA-2022:1975
RHEL 8 perf +26 4.18.0-372.9.1.el8 RHSA-2022:1988

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 perf +19 4.18.0-372.9.1.el8 ALSA-2022:1988

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 kernel 4.18.0-372.9.1.el8 RLSA-2022:1988
Rocky Linux 8 kernel-rt 4.18.0-372.9.1.rt7.166.el8 RLSA-2022:1975
ReleasePackageFixed inAdvisory
SLES 15 SP3 kernel-64kb +7 5.3.18-59.34.1 SUSE-SU-2021:3675-1
SLES 15 SP3 kernel-azure +1 5.3.18-38.28.2 SUSE-SU-2021:3641-1
SLES 15 SP3 kernel-default-base 5.3.18-59.34.1.18.21.1 SUSE-SU-2021:3675-1
SLES 15 SP3 kernel-syms-azure 5.3.18-38.28.1 SUSE-SU-2021:3641-1
SLES 15 SP2 kernel-azure +1 5.3.18-18.72.2 SUSE-SU-2021:3640-1
SLES 15 SP2 kernel-default-base 5.3.18-24.93.1.9.42.5 SUSE-SU-2021:3754-1
SLES 15 SP2 kernel-docs +5 5.3.18-24.93.1 SUSE-SU-2021:3754-1
SLES 15 SP2 kernel-syms-azure 5.3.18-18.72.1 SUSE-SU-2021:3640-1
SLES 15 SP1 kernel-docs +4 4.12.14-197.102.2 SUSE-SU-2021:3876-1
SLES 15 SP1 kernel-obs-build 4.12.14-197.102.1 SUSE-SU-2021:3876-1
SLES 15 kernel-docs +1 4.12.14-150.78.2 SUSE-SU-2021:3969-1
SLES 15 kernel-syms +4 4.12.14-150.78.1 SUSE-SU-2021:3969-1
SLES 12 SP5 kernel-docs +4 4.12.14-122.98.1 SUSE-SU-2021:3748-1
Show 21 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP4 kernel-syms +2 4.12.14-95.83.2 SUSE-SU-2021:3972-1
SLES for SAP 15 SP1 kernel-docs +3 4.12.14-197.102.2 SUSE-SU-2021:3876-1
SLES for SAP 15 SP1 kernel-obs-build 4.12.14-197.102.1 SUSE-SU-2021:3876-1
SLES for SAP 15 kernel-docs +1 4.12.14-150.78.2 SUSE-SU-2021:3969-1
SLES for SAP 15 kernel-syms +3 4.12.14-150.78.1 SUSE-SU-2021:3969-1
SLES for SAP 12 SP5 kernel-syms +2 4.12.14-122.98.1 SUSE-SU-2021:3748-1
SLES for SAP 12 SP4 kernel-syms +2 4.12.14-95.83.2 SUSE-SU-2021:3972-1
SLE Real Time 12 SP5 kernel-rt +3 4.12.14-10.65.1 SUSE-SU-2021:3723-1
SLE Micro 5.1 kernel-default 5.3.18-59.34.1 SUSE-SU-2021:3675-1
SLE Micro 5.1 kernel-default-base 5.3.18-59.34.1.18.21.1 SUSE-SU-2021:3675-1
SLE Micro 5.1 kernel-rt 5.3.18-60.1 SUSE-SU-2021:3642-1
SLE Micro 5.0 kernel-default 5.3.18-24.93.1 SUSE-SU-2021:3754-1
SLE Micro 5.0 kernel-default-base 5.3.18-24.93.1.9.42.5 SUSE-SU-2021:3754-1
SLE Micro 5.0 kernel-rt 5.3.18-57.1 SUSE-SU-2021:3658-1
SLE Live Patching 15 SP3 kernel-default 5.3.18-59.34.1 SUSE-SU-2021:3675-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_0 8-3.2 SUSE-SU-2021:3738-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_1 +2 6-2.2 SUSE-SU-2021:3742-1, SUSE-SU-2021:3718-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_4 5-2.2 SUSE-SU-2021:3742-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_5 4-2.2 SUSE-SU-2021:3742-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_6 +1 2-2.2 SUSE-SU-2021:3743-1, SUSE-SU-2021:3718-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_9 1-7.3.1 SUSE-SU-2021:3675-1
SLE Live Patching 15 SP2 kernel-default 5.3.18-24.93.1 SUSE-SU-2021:3754-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_10 12-2.2 SUSE-SU-2021:3737-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_11 11-2.2 SUSE-SU-2021:3710-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_12 +1 8-2.2 SUSE-SU-2021:3710-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_14 +2 6-2.2 SUSE-SU-2021:3712-1, SUSE-SU-2021:3710-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_17 5-2.2 SUSE-SU-2021:3712-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_18 4-2.2 SUSE-SU-2021:3712-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_19 2-2.2 SUSE-SU-2021:3712-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_20 2-2.3 SUSE-SU-2021:3743-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_21 1-5.3.5 SUSE-SU-2021:3754-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_7 14-2.2 SUSE-SU-2021:3710-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_8 +1 13-2.2 SUSE-SU-2021:3710-1
SLE Live Patching 15 SP1 kernel-default 4.12.14-197.102.2 SUSE-SU-2021:3876-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_18 14-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_19 +2 13-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_22 12-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_23 11-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_24 8-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_25 7-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_26 5-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_27 1-3.3.1 SUSE-SU-2021:3876-1
SLE Live Patching 15 kernel-default 4.12.14-150.78.1 SUSE-SU-2021:3969-1
SLE Live Patching 15 kernel-livepatch-SLE15_Update_21 14-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 15 kernel-livepatch-SLE15_Update_22 12-2.2 SUSE-SU-2021:3735-1
SLE Live Patching 15 kernel-livepatch-SLE15_Update_23 11-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 15 kernel-livepatch-SLE15_Update_24 8-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 15 kernel-livepatch-SLE15_Update_25 5-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 15 kernel-livepatch-SLE15_Update_26 1-1.3.1 SUSE-SU-2021:3969-1
SLE Live Patching 12 SP5 kernel-default 4.12.14-122.98.1 SUSE-SU-2021:3748-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_12 15-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_13 +1 13-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_15 12-2.2 SUSE-SU-2021:3735-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_16 11-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_17 9-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_18 8-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_19 +1 6-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_21 5-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_22 4-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_23 +1 2-2.2 SUSE-SU-2021:3692-1, SUSE-SU-2021:3684-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_25 1-8.7.1 SUSE-SU-2021:3748-1
SLE Live Patching 12 SP4 kernel-default 4.12.14-95.83.2 SUSE-SU-2021:3972-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_17 13-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_18 12-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_19 11-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_20 8-2.2 SUSE-SU-2021:3735-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_21 7-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_22 5-2.2 SUSE-SU-2021:3684-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_23 1-6.3.1 SUSE-SU-2021:3972-1
SLE HPC 15 SP1 kernel-docs +3 4.12.14-197.102.2 SUSE-SU-2021:3876-1
SLE HPC 15 SP1 kernel-obs-build 4.12.14-197.102.1 SUSE-SU-2021:3876-1
SLE HPC 15 kernel-docs +1 4.12.14-150.78.2 SUSE-SU-2021:3969-1
SLE HPC 15 kernel-syms +3 4.12.14-150.78.1 SUSE-SU-2021:3969-1
SUSE Real Time Module 15 SP3 kernel-rt +3 5.3.18-60.1 SUSE-SU-2021:3642-1
SUSE Real Time Module 15 SP2 kernel-rt +3 5.3.18-57.1 SUSE-SU-2021:3658-1
SUSE OpenStack Cloud Crowbar 9 kernel-syms +2 4.12.14-95.83.2 SUSE-SU-2021:3972-1
SUSE OpenStack Cloud 9 kernel-syms +2 4.12.14-95.83.2 SUSE-SU-2021:3972-1
SUSE Enterprise Storage 6 kernel-docs +3 4.12.14-197.102.2 SUSE-SU-2021:3876-1
SUSE Enterprise Storage 6 kernel-obs-build 4.12.14-197.102.1 SUSE-SU-2021:3876-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.3 dtb-aarch64 +7 5.3.18-59.34.1 openSUSE-SU-2021:3675-1
openSUSE Leap 15.3 kernel-azure +1 5.3.18-38.28.2 openSUSE-SU-2021:3641-1
openSUSE Leap 15.3 kernel-debug +4 4.12.14-197.102.2 openSUSE-SU-2021:3876-1, openSUSE-SU-2021:3675-1
openSUSE Leap 15.3 kernel-default-base 5.3.18-59.34.1.18.21.1 openSUSE-SU-2021:3675-1
openSUSE Leap 15.3 kernel-syms-azure 5.3.18-38.28.1 openSUSE-SU-2021:3641-1
openSUSE Leap 15.2 kernel-default-base 5.3.18-lp152.102.1.lp152.8.49.1 openSUSE-SU-2021:1477-1
openSUSE Leap 15.2 kernel-docs +8 5.3.18-lp152.102.1 openSUSE-SU-2021:1477-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 kernel-livepatch-4.14.252-195.481 1.0-0.amzn2 ALAS2-2021-1719
Amazon Linux 2 perf +8 4.14.252-195.481.amzn2 ALAS2-2021-1719

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-372.9.1.el8 ELSA-2022-1988
Oracle Linux 7 kernel-uek +4 5.4.17-2136.302.6.1.el8uek ELSA-2021-9621
Oracle Linux 7 kernel-uek-container +1 5.4.17-2136.302.6.1.el8 ELSA-2021-9623
Oracle Linux 7 perf +3 5.4.17-2136.302.6.1.el7uek ELSA-2021-9621

Advisories 46

References