Skip to content
OpenAdvisories
Medium · 6.6 Known exploited Public exploit CVE-2021-22600 EUVD-2021-9736GHSA-6rrc-7vqp-364c

Double Free in net/packet/af_packet.c leading to priviledge escalation

Published Jan 26, 2022 · Updated Oct 21, 2025 · Assigned by Google

Vendor: Linux kernel Product: kernel Package: kernel Package: linux Package: linux Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 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.13 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.13 Package: linux-gcp-5.3 Package: linux-gcp-5.4 Package: linux-gcp-5.8 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-ibm-5.4 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.13 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

A double free bug in packet_set_ring() in net/packet/af_packet.c can be exploited by a local user through crafted syscalls to escalate privileges or deny service. We recommend upgrading kernel past the effected versions or rebuilding past ec6af094ea28f0f2dda1a6a33b14cd57e36a9755

Affected products

VendorProductAffectedFixed
Linux Kernel Kernel unspecified – < 5.4.168, unspecified – < 5.10.88, unspecified – < 5.15.11, unspecified – < 5.16-rc6 5.4.168

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.15.15-1 —
Debian 13 linux 5.15.15-1 —
Debian 12 linux 5.15.15-1 —
Debian 10 linux 4.19.232-1 DSA-5096-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-100.113 USN-5294-1
Ubuntu 20.04 LTS linux-aws 5.4.0-1066.69 USN-5294-2
Ubuntu 20.04 LTS linux-aws-5.13 5.13.0-1014.15~20.04.1 USN-5295-2
Ubuntu 20.04 LTS linux-azure 5.4.0-1070.73 USN-5294-2
Ubuntu 20.04 LTS linux-azure-5.13 5.13.0-1014.16~20.04.1 —
Ubuntu 20.04 LTS linux-azure-fde 5.4.0-1070.73+cvm1.1 USN-5294-2
Ubuntu 20.04 LTS linux-bluefield 5.4.0-1028.31 USN-5294-2
Ubuntu 20.04 LTS linux-gcp 5.4.0-1065.69 USN-5294-2
Ubuntu 20.04 LTS linux-gcp-5.13 5.13.0-1015.18~20.04.1 —
Ubuntu 20.04 LTS linux-gke 5.4.0-1061.64 USN-5266-1
Ubuntu 20.04 LTS linux-gkeop 5.4.0-1034.35 USN-5294-2
Ubuntu 20.04 LTS linux-hwe-5.13 5.13.0-30.33~20.04.1 USN-5295-1
Ubuntu 20.04 LTS linux-ibm 5.4.0-1015.16 USN-5294-2
Ubuntu 20.04 LTS linux-kvm 5.4.0-1056.58 USN-5294-2
Ubuntu 20.04 LTS linux-oem-5.14 5.14.0-1022.24 USN-5278-1
Ubuntu 20.04 LTS linux-oracle 5.4.0-1064.68 USN-5294-2
Ubuntu 20.04 LTS linux-oracle-5.13 5.13.0-1018.22~20.04.1 USN-5295-2
Ubuntu 20.04 LTS linux-raspi 5.4.0-1053.60 USN-5294-2
Ubuntu 20.04 LTS linux-riscv +17 No fix yet —
Ubuntu 18.04 LTS linux 4.15.0-169.177 USN-5298-1
Ubuntu 18.04 LTS linux-aws 4.15.0-1121.129 USN-5298-1
Ubuntu 18.04 LTS linux-aws-5.4 5.4.0-1066.69~18.04.1 USN-5294-2
Ubuntu 18.04 LTS linux-azure-4.15 4.15.0-1131.144 USN-5298-1
Ubuntu 18.04 LTS linux-azure-5.4 5.4.0-1070.73~18.04.1 USN-5294-2
Ubuntu 18.04 LTS linux-dell300x 4.15.0-1035.40 USN-5298-1
Ubuntu 18.04 LTS linux-gcp +11 No fix yet —
Ubuntu 18.04 LTS linux-gcp-4.15 4.15.0-1116.130 USN-5298-1
Ubuntu 18.04 LTS linux-gcp-5.4 5.4.0-1065.69~18.04.1 USN-5294-2
Ubuntu 18.04 LTS linux-gke-5.4 5.4.0-1061.64~18.04.1 USN-5266-1
Ubuntu 18.04 LTS linux-gkeop-5.4 5.4.0-1034.35~18.04.1 USN-5294-2
Ubuntu 18.04 LTS linux-hwe-5.4 5.4.0-100.113~18.04.1 USN-5294-2
Ubuntu 18.04 LTS linux-ibm-5.4 5.4.0-1015.16~18.04.1 USN-5294-2
Ubuntu 18.04 LTS linux-kvm 4.15.0-1107.109 USN-5298-1
Ubuntu 18.04 LTS linux-oracle 4.15.0-1087.95 USN-5298-1
Ubuntu 18.04 LTS linux-oracle-5.4 5.4.0-1064.68~18.04.1 USN-5294-2
Ubuntu 18.04 LTS linux-raspi-5.4 5.4.0-1053.60~18.04.1 USN-5294-2
Ubuntu 18.04 LTS linux-raspi2 4.15.0-1103.110 USN-5298-1
Ubuntu 18.04 LTS linux-snapdragon 4.15.0-1120.129 USN-5298-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 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-1043.49 —
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-2061.63 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-azure-fips 4.15.0-2043.47 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-fips 4.15.0-1078.87 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-gcp-fips 4.15.0-2026.28 —
Ubuntu Pro 16.04 LTS linux-aws-hwe 4.15.0-1120.128~16.04.1 USN-5298-1
Ubuntu Pro 16.04 LTS linux-azure 4.15.0-1131.144~16.04.1 USN-5298-1
Ubuntu Pro 16.04 LTS linux-gcp 4.15.0-1116.130~16.04.1 USN-5298-1
Ubuntu Pro 16.04 LTS linux-hwe 4.15.0-169.177~16.04.1 USN-5298-1
Ubuntu Pro 16.04 LTS linux-oracle 4.15.0-1087.95~16.04.1 USN-5298-1
Ubuntu Pro 14.04 LTS linux-azure 4.15.0-1131.144~14.04.1 USN-5298-1
ReleasePackageFixed inAdvisory
SLES 15 SP3 kernel-64kb +7 5.3.18-150300.59.49.1 SUSE-SU-2022:0370-1
SLES 15 SP3 kernel-azure +1 5.3.18-150300.38.40.4 SUSE-SU-2022:0363-1
SLES 15 SP3 kernel-default-base 5.3.18-150300.59.49.1.150300.18.31.1 SUSE-SU-2022:0370-1
SLES 15 SP3 kernel-syms-azure 5.3.18-150300.38.40.1 SUSE-SU-2022:0363-1
SLES 15 SP2 kernel-default-base 5.3.18-24.102.1.9.48.1 SUSE-SU-2022:0365-1
SLES 15 SP2 kernel-docs +5 5.3.18-24.102.1 SUSE-SU-2022:0365-1
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP2 kernel-default-base 5.3.18-24.102.1.9.48.1 SUSE-SU-2022:0365-1
SLES for SAP 15 SP2 kernel-docs +5 5.3.18-24.102.1 SUSE-SU-2022:0365-1
SLE Real Time 15 SP2 kernel-default-base 5.3.18-24.102.1.9.48.1 SUSE-SU-2022:0365-1
SLE Real Time 15 SP2 kernel-docs +4 5.3.18-24.102.1 SUSE-SU-2022:0365-1
SLE Micro 5.1 kernel-default 5.3.18-150300.59.49.1 SUSE-SU-2022:0370-1
SLE Micro 5.1 kernel-default-base 5.3.18-150300.59.49.1.150300.18.31.1 SUSE-SU-2022:0370-1
SLE Micro 5.1 kernel-rt 5.3.18-150300.76.1 SUSE-SU-2022:0543-1
SLE Micro 5.0 kernel-default 5.3.18-24.102.1 SUSE-SU-2022:0365-1
SLE Micro 5.0 kernel-default-base 5.3.18-24.102.1.9.48.1 SUSE-SU-2022:0365-1
SLE Micro 5.0 kernel-rt 5.3.18-73.1 SUSE-SU-2022:0544-1
SLE Live Patching 15 SP3 kernel-default 5.3.18-150300.59.49.1 SUSE-SU-2022:0370-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_0 12-3.1 SUSE-SU-2022:0619-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_1 +2 10-150300.2.1 SUSE-SU-2022:0660-1, SUSE-SU-2022:0619-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_10 +1 4-150300.2.1 SUSE-SU-2022:0660-1, SUSE-SU-2022:0619-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_12 +1 3-150300.2.1 SUSE-SU-2022:0619-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_14 1-150300.7.3.1 SUSE-SU-2022:0370-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_4 9-150300.2.1 SUSE-SU-2022:0660-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_5 8-150300.2.1 SUSE-SU-2022:0619-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_6 +1 6-150300.2.1 SUSE-SU-2022:0660-1, SUSE-SU-2022:0619-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_9 5-150300.2.1 SUSE-SU-2022:0619-1
SLE Live Patching 15 SP2 kernel-default 5.3.18-24.102.1 SUSE-SU-2022:0365-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_11 15-2.2 SUSE-SU-2022:0619-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_12 +1 12-2.1 SUSE-SU-2022:0619-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_14 +2 10-2.1 SUSE-SU-2022:0619-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_17 9-2.1 SUSE-SU-2022:0619-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_18 8-2.1 SUSE-SU-2022:0619-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_19 +1 6-2.1 SUSE-SU-2022:0619-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_21 5-2.1 SUSE-SU-2022:0619-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_22 4-2.1 SUSE-SU-2022:0619-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_23 3-2.1 SUSE-SU-2022:0619-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_24 1-5.3.1 SUSE-SU-2022:0365-1
SLE HPC 15 SP2 kernel-default-base 5.3.18-24.102.1.9.48.1 SUSE-SU-2022:0365-1
SLE HPC 15 SP2 kernel-docs +5 5.3.18-24.102.1 SUSE-SU-2022:0365-1
SUSE Real Time Module 15 SP3 kernel-rt +3 5.3.18-150300.76.1 SUSE-SU-2022:0543-1
SUSE Real Time Module 15 SP2 kernel-rt +3 5.3.18-73.1 SUSE-SU-2022:0544-1
SUSE Manager Server 4.1 kernel-default-base 5.3.18-24.102.1.9.48.1 SUSE-SU-2022:0365-1
SUSE Manager Server 4.1 kernel-docs +5 5.3.18-24.102.1 SUSE-SU-2022:0365-1
SUSE Manager Retail Branch Server 4.1 kernel-default-base 5.3.18-24.102.1.9.48.1 SUSE-SU-2022:0365-1
SUSE Manager Retail Branch Server 4.1 kernel-docs +4 5.3.18-24.102.1 SUSE-SU-2022:0365-1
SUSE Manager Proxy 4.1 kernel-default-base 5.3.18-24.102.1.9.48.1 SUSE-SU-2022:0365-1
SUSE Manager Proxy 4.1 kernel-docs +4 5.3.18-24.102.1 SUSE-SU-2022:0365-1
SUSE Enterprise Storage 7 kernel-default-base 5.3.18-24.102.1.9.48.1 SUSE-SU-2022:0365-1
SUSE Enterprise Storage 7 kernel-docs +5 5.3.18-24.102.1 SUSE-SU-2022:0365-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.3 dtb-aarch64 +11 5.3.18-150300.59.49.1 openSUSE-SU-2022:0370-1
openSUSE Leap 15.3 kernel-azure +1 5.3.18-150300.38.40.4 openSUSE-SU-2022:0363-1
openSUSE Leap 15.3 kernel-default-base 5.3.18-150300.59.49.1.150300.18.31.1 openSUSE-SU-2022:0370-1
openSUSE Leap 15.3 kernel-syms-azure 5.3.18-150300.38.40.1 openSUSE-SU-2022:0363-1

Azure Linux

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

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 kernel-uek +4 5.4.17-2136.306.1.3.el8uek ELSA-2022-9273
Oracle Linux 7 kernel-uek-container +1 5.4.17-2136.306.1.3.el8 ELSA-2022-9274
Oracle Linux 7 perf +3 5.4.17-2136.306.1.3.el7uek ELSA-2022-9273

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 2 repositories

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

Advisories 20

References