Skip to content
OpenAdvisories
Unscored Public exploit CVE-2021-42008 EUVD-2021-28998GHSA-qv6w-x298-fgf8

The decode_data function in drivers/net/hamradio/6pack.c in the Linux kernel before 5.13.13 has a slab out-of-bounds write. Input from a pr…

Published Oct 4, 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.4 Package: linux-hwe-5.8 Package: linux-hwe-edge Package: linux-ibm Package: linux-intel-iot-realtime Package: linux-kvm Package: linux-lts-xenial Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 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

The decode_data function in drivers/net/hamradio/6pack.c in the Linux kernel before 5.13.13 has a slab out-of-bounds write. Input from a process that has the CAP_NET_ADMIN capability can lead to root access.

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.6-1 —
Debian 13 linux 5.14.6-1 —
Debian 12 linux 5.14.6-1 —
Debian 9 linux 4.9.290-1 DLA-2843-1
Debian 9 linux-4.19 4.19.208-1~deb9u1 DLA-2785-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-89.100 USN-5116-1
Ubuntu 20.04 LTS linux-aws 5.4.0-1058.61 USN-5116-2
Ubuntu 20.04 LTS linux-aws-5.11 5.11.0-1020.21~20.04.2 USN-5113-1
Ubuntu 20.04 LTS linux-azure 5.4.0-1062.65 USN-5116-2
Ubuntu 20.04 LTS linux-azure-5.11 +1 5.11.0-1020.21~20.04.1 USN-5113-1
Ubuntu 20.04 LTS linux-bluefield 5.4.0-1020.23 USN-5116-1
Ubuntu 20.04 LTS linux-gcp +1 5.4.0-1056.60 USN-5116-2
Ubuntu 20.04 LTS linux-gcp-5.11 5.11.0-1021.23~20.04.1 USN-5113-1
Ubuntu 20.04 LTS linux-gke 5.4.0-1054.57 USN-5116-2
Ubuntu 20.04 LTS linux-gkeop 5.4.0-1025.26 USN-5116-2
Ubuntu 20.04 LTS linux-hwe-5.11 5.11.0-38.42~20.04.1 USN-5113-1
Ubuntu 20.04 LTS linux-ibm 5.4.0-1006.7 USN-5116-2
Ubuntu 20.04 LTS linux-kvm 5.4.0-1048.50 USN-5116-1
Ubuntu 20.04 LTS linux-oem-5.10 5.10.0-1050.52 USN-5115-1
Ubuntu 20.04 LTS linux-oem-5.13 5.13.0-1014.18 —
Ubuntu 20.04 LTS linux-raspi 5.4.0-1045.49 USN-5116-2
Ubuntu 20.04 LTS linux-riscv +8 No fix yet —
Ubuntu 20.04 LTS linux-riscv-5.11 5.11.0-1021.22~20.04.1 —
Ubuntu 18.04 LTS linux 4.15.0-161.169 USN-5114-1
Ubuntu 18.04 LTS linux-aws 4.15.0-1114.121 USN-5114-1
Ubuntu 18.04 LTS linux-aws-5.4 5.4.0-1058.61~18.04.3 USN-5116-2
Ubuntu 18.04 LTS linux-azure-4.15 4.15.0-1125.138 USN-5114-1
Ubuntu 18.04 LTS linux-azure-5.4 5.4.0-1062.65~18.04.1 USN-5116-2
Ubuntu 18.04 LTS linux-dell300x 4.15.0-1029.34 USN-5114-1
Ubuntu 18.04 LTS linux-gcp +13 No fix yet —
Ubuntu 18.04 LTS linux-gcp-4.15 4.15.0-1110.124 USN-5114-1
Ubuntu 18.04 LTS linux-gcp-5.4 +1 5.4.0-1056.60~18.04.1 USN-5116-2, USN-5116-1
Ubuntu 18.04 LTS linux-gke-5.4 5.4.0-1054.57~18.04.1 USN-5116-2
Ubuntu 18.04 LTS linux-gkeop-5.4 5.4.0-1025.26~18.04.1 USN-5116-2
Ubuntu 18.04 LTS linux-hwe-5.4 5.4.0-89.100~18.04.1 USN-5116-1
Ubuntu 18.04 LTS linux-kvm 4.15.0-1101.103 USN-5114-1
Ubuntu 18.04 LTS linux-oracle 4.15.0-1082.90 USN-5114-1
Ubuntu 18.04 LTS linux-raspi-5.4 5.4.0-1045.49~18.04.1 USN-5116-2
Ubuntu 18.04 LTS linux-raspi2 4.15.0-1097.103 USN-5114-1
Ubuntu 18.04 LTS linux-snapdragon 4.15.0-1114.123 USN-5114-1
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Show 8 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 16.04 LTS linux-fips 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-1035.41 —
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-2055.57 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-azure-fips 4.15.0-2037.41 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-fips 4.15.0-1071.80 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-gcp-fips 4.15.0-2020.22 —
Ubuntu Pro FIPS-updates 16.04 LTS linux-fips 4.4.0-1069.75 —
Ubuntu Pro 16.04 LTS linux 4.4.0-219.252 USN-5343-1, USN-5299-1
Ubuntu Pro 16.04 LTS linux-aws 4.4.0-1135.149 USN-5343-1, USN-5299-1
Ubuntu Pro 16.04 LTS linux-aws-hwe 4.15.0-1113.120~16.04.1 USN-5114-1
Ubuntu Pro 16.04 LTS linux-azure 4.15.0-1125.138~16.04.1 USN-5114-1
Ubuntu Pro 16.04 LTS linux-gcp 4.15.0-1110.124~16.04.1 USN-5114-1
Ubuntu Pro 16.04 LTS linux-hwe 4.15.0-161.169~16.04.1 USN-5114-1
Ubuntu Pro 16.04 LTS linux-kvm 4.4.0-1100.109 USN-5343-1, USN-5299-1
Ubuntu Pro 16.04 LTS linux-oracle 4.15.0-1082.90~16.04.1 USN-5114-1
Ubuntu Pro 14.04 LTS linux No fix yet —
Ubuntu Pro 14.04 LTS linux-aws 4.4.0-1099.104 USN-5343-1, USN-5299-1
Ubuntu Pro 14.04 LTS linux-azure 4.15.0-1125.138~14.04.1 USN-5114-1
Ubuntu Pro 14.04 LTS linux-lts-xenial 4.4.0-219.252~14.04.1 USN-5343-1, USN-5299-1
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 28 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 12 SP3 kernel-syms +2 4.4.180-94.150.1 SUSE-SU-2021:3935-1
SLES 12 SP3 kgraft-patch-SLE12-SP3_Update_41 1-4.3.1 SUSE-SU-2021:3935-1
SLES 12 SP2 kernel-syms +2 4.4.121-92.161.1 SUSE-SU-2021:3929-1
SLES 11 SP4 kernel-ec2 +8 3.0.101-108.132.1 SUSE-SU-2021:14849-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
SLES for SAP 12 SP3 kernel-syms +2 4.4.180-94.150.1 SUSE-SU-2021:3935-1
SLES for SAP 12 SP3 kgraft-patch-SLE12-SP3_Update_41 1-4.3.1 SUSE-SU-2021:3935-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_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_21 1-5.3.5 SUSE-SU-2021:3754-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_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_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_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_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 Crowbar 8 kernel-syms +2 4.4.180-94.150.1 SUSE-SU-2021:3935-1
SUSE OpenStack Cloud Crowbar 8 kgraft-patch-SLE12-SP3_Update_41 1-4.3.1 SUSE-SU-2021:3935-1
SUSE OpenStack Cloud 9 kernel-syms +2 4.12.14-95.83.2 SUSE-SU-2021:3972-1
SUSE OpenStack Cloud 8 kernel-syms +2 4.4.180-94.150.1 SUSE-SU-2021:3935-1
SUSE OpenStack Cloud 8 kgraft-patch-SLE12-SP3_Update_41 1-4.3.1 SUSE-SU-2021:3935-1
SUSE HPE Helion OpenStack 8 kernel-syms +2 4.4.180-94.150.1 SUSE-SU-2021:3935-1
SUSE HPE Helion OpenStack 8 kgraft-patch-SLE12-SP3_Update_41 1-4.3.1 SUSE-SU-2021:3935-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

Azure Linux

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

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 3 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 27

References