CVE-2021-22600: Double Free in net/packet/af_packet.c leading to priviledge escalation

Published Jan 26, 2022
·
Updated

A double free bug in packetsetring() in net/packet/afpacket.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

Other sources

In packetsetring of afpacket.c, there is a possible memory corruption due to a use after free. This could lead to local escalation of privilege with System execution privileges needed. User interaction is not needed for exploitation.

— OSV

Linux Kernel contains a flaw in the packet socket (AFPACKET) implementation which could lead to incorrectly freeing memory. A local user could exploit this for denial-of-service (DoS) or possibly for privilege escalation.

— CISA

Affected Software

129 affected componentsFixes available
Linux Linux kernel>=4.14.175<4.14.259
Linux Linux kernel>=4.19.114<4.19.222
Linux Linux kernel>=5.4.29<5.4.168
Linux Linux kernel>=5.5.14<5.10.88
Linux Linux kernel>=5.11<5.15.11
Debian Debian Linux=9.0
Debian Debian Linux=10.0
NetApp H410c Firmware
NetApp H410c
NetApp H300s Firmware
NetApp H300s
NetApp H500s Firmware
NetApp H500s
NetApp H700s Firmware
NetApp H700s
NetApp H410s Firmware
NetApp H410s
All of the following
NetApp 8300 Firmware
NetApp 8300
All of the following
NetApp 8700 Firmware
NetApp 8700
All of the following
NetApp A400 Firmware
NetApp A400
All of the following
NetApp C400 Firmware
NetApp C400
All of the following
NetApp H410c Firmware
NetApp H410c
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H410s Firmware
NetApp H410s
Google Android
Linux Kernel
ubuntu/linux-azure<4.15.0-1131.144~14.04.1
4.15.0-1131.144~14.04.1
ubuntu/linux-aws-hwe<4.15.0-1120.128~16.04.1
4.15.0-1120.128~16.04.1
ubuntu/linux-azure<4.15.0-1131.144~16.04.1
4.15.0-1131.144~16.04.1
ubuntu/linux-gcp<4.15.0-1116.130~16.04.1
4.15.0-1116.130~16.04.1
ubuntu/linux-hwe<4.15.0-169.177~16.04.1
4.15.0-169.177~16.04.1
ubuntu/linux-oracle<4.15.0-1087.95~16.04.1
4.15.0-1087.95~16.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux<4.15.0-169.177
4.15.0-169.177
ubuntu/linux-aws<4.15.0-1121.129
4.15.0-1121.129
ubuntu/linux-aws-5.4<5.4.0-1066.69~18.04.1
5.4.0-1066.69~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1131.144
4.15.0-1131.144
ubuntu/linux-azure-5.4<5.4.0-1070.73~18.04.1
5.4.0-1070.73~18.04.1
ubuntu/linux-dell300x<4.15.0-1035.40
4.15.0-1035.40
ubuntu/linux-gcp-4.15<4.15.0-1116.130
4.15.0-1116.130
ubuntu/linux-gcp-5.4<5.4.0-1065.69~18.04.1
5.4.0-1065.69~18.04.1
ubuntu/linux-gke-5.4<5.4.0-1061.64~18.04.1
5.4.0-1061.64~18.04.1
ubuntu/linux-gkeop-5.4<5.4.0-1034.35~18.04.1
5.4.0-1034.35~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-100.113~18.04.1
5.4.0-100.113~18.04.1
ubuntu/linux-ibm-5.4<5.4.0-1015.16~18.04.1
5.4.0-1015.16~18.04.1
ubuntu/linux-kvm<4.15.0-1107.109
4.15.0-1107.109
ubuntu/linux-oracle<4.15.0-1087.95
4.15.0-1087.95
ubuntu/linux-oracle-5.4<5.4.0-1064.68~18.04.1
5.4.0-1064.68~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1053.60~18.04.1
5.4.0-1053.60~18.04.1
ubuntu/linux-raspi2<4.15.0-1103.110
4.15.0-1103.110
ubuntu/linux-snapdragon<4.15.0-1120.129
4.15.0-1120.129
ubuntu/linux-aws-5.0*
ubuntu/linux-aws-5.3*
ubuntu/linux-azure*
ubuntu/linux-azure-5.3*
ubuntu/linux-azure-edge*
ubuntu/linux-gcp*
ubuntu/linux-gcp-5.3*
ubuntu/linux-gke-4.15*
ubuntu/linux-hwe*
ubuntu/linux-oem*
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
ubuntu/linux-aws-fips<4.15.0-2061.63
4.15.0-2061.63
ubuntu/linux-azure-fips<4.15.0-2043.47
4.15.0-2043.47
ubuntu/linux-fips<4.15.0-1078.87
4.15.0-1078.87
ubuntu/linux-gcp-fips<4.15.0-2026.28
4.15.0-2026.28
ubuntu/linux-fips*
ubuntu/linux<5.4.0-100.113
5.4.0-100.113
ubuntu/linux-aws<5.4.0-1066.69
5.4.0-1066.69
ubuntu/linux-aws-5.13<5.13.0-1014.15~20.04.1
5.13.0-1014.15~20.04.1
ubuntu/linux-azure<5.4.0-1070.73
5.4.0-1070.73
ubuntu/linux-azure-5.13<5.13.0-1014.16~20.04.1
5.13.0-1014.16~20.04.1
ubuntu/linux-bluefield<5.4.0-1028.31
5.4.0-1028.31
ubuntu/linux-gcp<5.4.0-1065.69
5.4.0-1065.69
ubuntu/linux-gcp-5.13<5.13.0-1015.18~20.04.1
5.13.0-1015.18~20.04.1
ubuntu/linux-gke<5.4.0-1061.64
5.4.0-1061.64
ubuntu/linux-gkeop<5.4.0-1034.35
5.4.0-1034.35
ubuntu/linux-hwe-5.13<5.13.0-30.33~20.04.1
5.13.0-30.33~20.04.1
ubuntu/linux-ibm<5.4.0-1015.16
5.4.0-1015.16
ubuntu/linux-kvm<5.4.0-1056.58
5.4.0-1056.58
ubuntu/linux-oem-5.14<5.14.0-1022.24
5.14.0-1022.24
ubuntu/linux-oracle<5.4.0-1064.68
5.4.0-1064.68
ubuntu/linux-oracle-5.13<5.13.0-1018.22~20.04.1
5.13.0-1018.22~20.04.1
ubuntu/linux-raspi<5.4.0-1053.60
5.4.0-1053.60
ubuntu/linux-aws-5.11*
ubuntu/linux-aws-5.8*
ubuntu/linux-azure-5.11*
ubuntu/linux-azure-5.8*
ubuntu/linux-gcp-5.11*
ubuntu/linux-gcp-5.8*
ubuntu/linux-hwe-5.11*
ubuntu/linux-hwe-5.8*
ubuntu/linux-intel-5.13*
ubuntu/linux-oem-5.10*
ubuntu/linux-oem-5.13*
ubuntu/linux-oem-5.6*
ubuntu/linux-oracle-5.11*
ubuntu/linux-oracle-5.8*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.11*
ubuntu/linux-riscv-5.8*
ubuntu/linux-aws-fips<5.4.0-1069.73+fips2
5.4.0-1069.73+fips2
ubuntu/linux-azure-fips<5.4.0-1073.76+fips1
5.4.0-1073.76+fips1
ubuntu/linux-fips<5.4.0-1043.49
5.4.0-1043.49
ubuntu/linux-gcp-fips<5.4.0-1067.71~20.04.1
5.4.0-1067.71~20.04.1
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-raspi-realtime*
android/:linux_kernel:>=:0<:2022-05-05
:2022-05-05
android/:linux_kernel:>=:0<:2022-03-05
:2022-03-05
debian/linux
4.19.232-15.10.92-15.15.15-1
debian/linux-4.19
4.19.232-1~deb9u1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 4.15.0-1131.144~14.04.1
  2. Upgrade

    Upgrade ubuntu/linux-aws-hwe to a version that resolves this vulnerability.

    Fixed in 4.15.0-1120.128~16.04.1
  3. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 4.15.0-1131.144~16.04.1
  4. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 4.15.0-1116.130~16.04.1
  5. Upgrade

    Upgrade ubuntu/linux-hwe to a version that resolves this vulnerability.

    Fixed in 4.15.0-169.177~16.04.1
  6. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 4.15.0-1087.95~16.04.1
  7. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 4.15.0-169.177
  8. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.15.0-1121.129
  9. Upgrade

    Upgrade ubuntu/linux-aws-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1066.69~18.04.1
  10. Upgrade

    Upgrade ubuntu/linux-azure-4.15 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1131.144
  11. Upgrade

    Upgrade ubuntu/linux-azure-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1070.73~18.04.1
  12. Upgrade

    Upgrade ubuntu/linux-dell300x to a version that resolves this vulnerability.

    Fixed in 4.15.0-1035.40
  13. Upgrade

    Upgrade ubuntu/linux-gcp-4.15 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1116.130
  14. Upgrade

    Upgrade ubuntu/linux-gcp-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1065.69~18.04.1
  15. Upgrade

    Upgrade ubuntu/linux-gke-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1061.64~18.04.1
  16. Upgrade

    Upgrade ubuntu/linux-gkeop-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1034.35~18.04.1
  17. Upgrade

    Upgrade ubuntu/linux-hwe-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-100.113~18.04.1
  18. Upgrade

    Upgrade ubuntu/linux-ibm-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1015.16~18.04.1
  19. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 4.15.0-1107.109
  20. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 4.15.0-1087.95
  21. Upgrade

    Upgrade ubuntu/linux-oracle-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1064.68~18.04.1
  22. Upgrade

    Upgrade ubuntu/linux-raspi-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1053.60~18.04.1
  23. Upgrade

    Upgrade ubuntu/linux-raspi2 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1103.110
  24. Upgrade

    Upgrade ubuntu/linux-snapdragon to a version that resolves this vulnerability.

    Fixed in 4.15.0-1120.129
  25. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2061.63
  26. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2043.47
  27. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-1078.87
  28. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2026.28
  29. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 5.4.0-100.113
  30. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 5.4.0-1066.69
  31. Upgrade

    Upgrade ubuntu/linux-aws-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1014.15~20.04.1
  32. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 5.4.0-1070.73
  33. Upgrade

    Upgrade ubuntu/linux-azure-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1014.16~20.04.1
  34. Upgrade

    Upgrade ubuntu/linux-bluefield to a version that resolves this vulnerability.

    Fixed in 5.4.0-1028.31
  35. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 5.4.0-1065.69
  36. Upgrade

    Upgrade ubuntu/linux-gcp-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1015.18~20.04.1
  37. Upgrade

    Upgrade ubuntu/linux-gke to a version that resolves this vulnerability.

    Fixed in 5.4.0-1061.64
  38. Upgrade

    Upgrade ubuntu/linux-gkeop to a version that resolves this vulnerability.

    Fixed in 5.4.0-1034.35
  39. Upgrade

    Upgrade ubuntu/linux-hwe-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-30.33~20.04.1
  40. Upgrade

    Upgrade ubuntu/linux-ibm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1015.16
  41. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1056.58
  42. Upgrade

    Upgrade ubuntu/linux-oem-5.14 to a version that resolves this vulnerability.

    Fixed in 5.14.0-1022.24
  43. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 5.4.0-1064.68
  44. Upgrade

    Upgrade ubuntu/linux-oracle-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1018.22~20.04.1
  45. Upgrade

    Upgrade ubuntu/linux-raspi to a version that resolves this vulnerability.

    Fixed in 5.4.0-1053.60
  46. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1069.73+fips2
  47. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1073.76+fips1
  48. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1043.49
  49. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1067.71~20.04.1
  50. Upgrade

    Upgrade android/:linux_kernel: to a version that resolves this vulnerability.

    Fixed in :2022-05-05
  51. Upgrade

    Upgrade android/:linux_kernel: to a version that resolves this vulnerability.

    Fixed in :2022-03-05
  52. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 4.19.232-1Fixed in 5.10.92-1Fixed in 5.15.15-1
  53. Upgrade

    Upgrade debian/linux-4.19 to a version that resolves this vulnerability.

    Fixed in 4.19.232-1~deb9u1
  54. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Patch ec6af094ea28f0f2dda1a6a33b14cd57e36a9755

Event History

Jan 26, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
Data Sourced
via OSV·02:15 PM
DescriptionSeverityAffected Software
Mar 1, 2022
Advisory Published
via OSV·12:00 AM
Apr 11, 2022
Kev Listed
via CISA·12:00 AM
Data Sourced
via CISA·12:00 AM
DescriptionAffected Software
Data Sourced
via CISA·12:00 AM
Weakness
Updated
via CISA·12:00 AM
Affected Software
Jun 2, 2023
Data Sourced
via Android·12:00 AM
SeverityWeaknessAffected Software
Jun 26, 2023
Data Sourced
06:59 PM
Weakness
Data Sourced
via NVD·06:59 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
06:59 PM
Affected Software
Event
06:59 PM
Feb 7, 2024
Updated
via Android·12:00 AM
Affected Software
Mar 11, 2024
Updated
via Android·12:00 AM
Affected Software
Mar 18, 2024
Updated
via Android·12:00 AM
Affected Software
Apr 29, 2024
Updated
via Android·12:00 AM
Affected Software
Aug 26, 2024
Updated
via Android·12:00 AM
Affected Software
Nov 21, 2024
Updated
via NVD·05:50 AM
RemedyAffected Software
Feb 24, 2025
Updated
via NVD·03:41 PM
Affected Software
Jun 22, 2025
Exploit Published
via GitHub·07:28 PM
Oct 21, 2025
Updated
via NVD·07:18 PM
Affected Software
Oct 22, 2025
Updated
via NVD·12:17 AM
Affected Software
Oct 24, 2025
Updated
via NVD·01:54 PM
Affected Software
Sep 30, 2026
Updated
via Android·12:00 AM
Affected Software
Nov 12, 2026
Updated
via OSV·05:22 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2021-22600?

CVE-2021-22600 has a high severity rating as it allows local users to escalate privileges or cause denial of service.

2

How do I fix CVE-2021-22600?

To fix CVE-2021-22600, upgrade your kernel to a version later than those specifically affected or rebuild after commit ec6af094ea28f0f2dda1a6a33b14cd57e36a9755.

3

Which systems are affected by CVE-2021-22600?

CVE-2021-22600 affects various Linux Kernel versions ranging from 4.14.175 to 4.14.259, 4.19.114 to 4.19.222, 5.4.29 to 5.4.168, 5.5.14 to 5.10.88, and 5.11 to 5.15.11, as well as Debian 9 and 10.

4

What type of vulnerability is CVE-2021-22600?

CVE-2021-22600 is categorized as a double free vulnerability in the kernel's packet_set_ring() function.

5

Can CVE-2021-22600 be exploited remotely?

CVE-2021-22600 cannot be exploited remotely; it requires local user access for exploitation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203