CVE-2021-22555: Linux Kernel Heap Out-of-Bounds Write Vulnerability

Published Jul 4, 2021
·
Updated

A flaw was discovered in processing setsockopt IPTSOSETREPLACE (or IP6TSOSETREPLACE) for 32 bit processes on 64 bit systems. This flaw will allow local user to gain privileges or cause a DoS through user name space. This action is usually restricted to root-privileged users but can also be leveraged if the kernel is compiled with CONFIGUSERNS and CONFIGNETNS and the user is granted elevated privileges.

Other sources

A heap out-of-bounds write affecting Linux since v2.6.19-rc1 was discovered in net/netfilter/xtables.c. This allows an attacker to gain privileges or cause a DoS (via heap memory corruption) through user name space

In xtcompattargetfromuser of xtables.c, there is a possible out of bounds write due to an incorrect bounds check. 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 heap out-of-bounds write vulnerability that could allow an attacker to gain privileges or cause a DoS (via heap memory corruption) through user name space.

— CISA

Linux Kernel could allow a local authenticated attacker to gain elevated privileges on the system, caused by a heap out-of-bounds write flaw in net/netfilter/xtables.c. By sending a specially-crafted request through user name space, an authenticated attacker could exploit this vulnerability to gain elevated privileges or cause a denial of service condition.

— IBM

Affected Software

156 affected componentsFixes available
redhat/kernel-rt<0:3.10.0-1160.41.1.rt56.1181.el7
0:3.10.0-1160.41.1.rt56.1181.el7
redhat/kernel<0:3.10.0-1160.41.1.el7
0:3.10.0-1160.41.1.el7
redhat/kernel<0:3.10.0-327.100.1.el7
0:3.10.0-327.100.1.el7
redhat/kernel<0:3.10.0-514.92.1.el7
0:3.10.0-514.92.1.el7
redhat/kernel<0:3.10.0-693.94.1.el7
0:3.10.0-693.94.1.el7
redhat/kernel<0:3.10.0-957.84.1.el7
0:3.10.0-957.84.1.el7
redhat/kernel<0:3.10.0-1062.56.1.el7
0:3.10.0-1062.56.1.el7
redhat/kernel-rt<0:4.18.0-305.12.1.rt7.84.el8_4
0:4.18.0-305.12.1.rt7.84.el8_4
redhat/kernel<0:4.18.0-305.12.1.el8_4
0:4.18.0-305.12.1.el8_4
redhat/kernel<0:4.18.0-147.52.1.el8_1
0:4.18.0-147.52.1.el8_1
redhat/kernel-rt<0:4.18.0-193.64.1.rt13.115.el8_2
0:4.18.0-193.64.1.rt13.115.el8_2
redhat/kernel<0:4.18.0-193.64.1.el8_2
0:4.18.0-193.64.1.el8_2
redhat/redhat-virtualization-host<0:4.3.18-20210903.0.el7_9
0:4.3.18-20210903.0.el7_9
redhat/redhat-virtualization-host<0:4.4.7-20210804.0.el8_4
0:4.4.7-20210804.0.el8_4
IBM DRM<=2.0.6
Linux Linux kernel>=2.6.19<4.4.267
Linux Linux kernel>=4.5<4.9.267
Linux Linux kernel>=4.10<4.14.231
Linux Linux kernel>=4.15<4.19.188
Linux Linux kernel>=4.20<5.4.113
Linux Linux kernel>=5.5<5.10.31
Linux Linux kernel>=5.11<5.12
Brocade Fabric Operating System
NetApp Fas 8300 Firmware
NetApp Fas 8300
NetApp Fas 8700 Firmware
NetApp Fas 8700
NetApp Aff A400 Firmware
NetApp Aff A400
NetApp Aff A250 Firmware
NetApp Aff A250
NetApp Aff 500f Firmware
NetApp Aff 500f
NetApp H610c Firmware
NetApp H610c
NetApp H610s Firmware
NetApp H610s
NetApp H615c Firmware
NetApp H615c
NetApp Hci Management Node
NetApp Solidfire
redhat/kernel<5.12
5.12
All of the following
NetApp C400 Firmware
NetApp C400
All of the following
NetApp C250 Firmware
NetApp C250
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
Broadcom Fabric Operating System
All of the following
NetApp Fas 8300 Firmware
NetApp Fas 8300
All of the following
NetApp Fas 8700 Firmware
NetApp Fas 8700
All of the following
NetApp Aff A400 Firmware
NetApp Aff A400
All of the following
NetApp Aff A250 Firmware
NetApp Aff A250
All of the following
NetApp Aff 500f Firmware
NetApp Aff 500f
All of the following
NetApp H610c Firmware
NetApp H610c
All of the following
NetApp H610s Firmware
NetApp H610s
All of the following
NetApp H615c Firmware
NetApp H615c
NetApp Cloud Backup
NetApp Solidfire Baseboard Management Controller
Linux Kernel
android/:linux_kernel:>=:0<:2021-10-05
:2021-10-05
ubuntu/linux<3.13.0-187.238
3.13.0-187.238
ubuntu/linux-aws<4.4.0-1095.100
4.4.0-1095.100
ubuntu/linux-azure<4.15.0-1115.128~14.04.1
4.15.0-1115.128~14.04.1
ubuntu/linux-lts-xenial<4.4.0-213.245~14.04.1
4.4.0-213.245~14.04.1
ubuntu/linux<4.4.0-213.245
4.4.0-213.245
ubuntu/linux-aws<4.4.0-1131.145
4.4.0-1131.145
ubuntu/linux-aws-hwe<4.15.0-1103.110~16.04.1
4.15.0-1103.110~16.04.1
ubuntu/linux-azure<4.15.0-1115.128~16.04.1
4.15.0-1115.128~16.04.1
ubuntu/linux-gcp<4.15.0-1100.113~16.04.1
4.15.0-1100.113~16.04.1
ubuntu/linux-hwe<4.15.0-144.148~16.04.1
4.15.0-144.148~16.04.1
ubuntu/linux-kvm<4.4.0-1096.105
4.4.0-1096.105
ubuntu/linux-oracle<4.15.0-1072.80~16.04.1
4.15.0-1072.80~16.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux-fips<4.4.0-1065.71
4.4.0-1065.71
ubuntu/linux-fips*
ubuntu/linux<4.15.0-144.148
4.15.0-144.148
ubuntu/linux-aws<4.15.0-1103.110
4.15.0-1103.110
ubuntu/linux-aws-5.4<5.4.0-1049.51~18.04.1
5.4.0-1049.51~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1115.128
4.15.0-1115.128
ubuntu/linux-azure-5.4<5.4.0-1048.50~18.04.1
5.4.0-1048.50~18.04.1
ubuntu/linux-dell300x<4.15.0-1022.26
4.15.0-1022.26
ubuntu/linux-gcp-4.15<4.15.0-1100.113
4.15.0-1100.113
ubuntu/linux-gcp-5.4<5.4.0-1044.47~18.04.2
5.4.0-1044.47~18.04.2
ubuntu/linux-gke-5.4<5.4.0-1044.46~18.04.1
5.4.0-1044.46~18.04.1
ubuntu/linux-gkeop-5.4<5.4.0-1016.17~18.04.1
5.4.0-1016.17~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-74.83~18.04.1
5.4.0-74.83~18.04.1
ubuntu/linux-kvm<4.15.0-1092.94
4.15.0-1092.94
ubuntu/linux-oracle<4.15.0-1072.80
4.15.0-1072.80
ubuntu/linux-oracle-5.4<5.4.0-1046.50~18.04.2
5.4.0-1046.50~18.04.2
ubuntu/linux-raspi-5.4<5.4.0-1036.39~18.04.1
5.4.0-1036.39~18.04.1
ubuntu/linux-raspi2<4.15.0-1086.91
4.15.0-1086.91
ubuntu/linux-snapdragon<4.15.0-1103.112
4.15.0-1103.112
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-gcp-edge*
ubuntu/linux-gke-4.15*
ubuntu/linux-hwe*
ubuntu/linux-hwe-edge*
ubuntu/linux-oem*
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
ubuntu/linux-aws-fips<4.15.0-2045.47
4.15.0-2045.47
ubuntu/linux-azure-fips<4.15.0-2027.30
4.15.0-2027.30
ubuntu/linux-fips<4.15.0-1060.68
4.15.0-1060.68
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-74.83
5.4.0-74.83
ubuntu/linux-aws<5.4.0-1049.51
5.4.0-1049.51
ubuntu/linux-azure<5.4.0-1048.50
5.4.0-1048.50
ubuntu/linux-bluefield<5.4.0-1012.15
5.4.0-1012.15
ubuntu/linux-gcp<5.4.0-1044.47
5.4.0-1044.47
ubuntu/linux-gke<5.4.0-1044.46
5.4.0-1044.46
ubuntu/linux-gkeop<5.4.0-1016.17
5.4.0-1016.17
ubuntu/linux-hwe-5.8<5.8.0-55.62~20.04.1
5.8.0-55.62~20.04.1
ubuntu/linux-kvm<5.4.0-1040.41
5.4.0-1040.41
ubuntu/linux-oem-5.10<5.10.0-1025.26
5.10.0-1025.26
ubuntu/linux-oracle<5.4.0-1046.50
5.4.0-1046.50
ubuntu/linux-raspi<5.4.0-1036.39
5.4.0-1036.39
ubuntu/linux-riscv-5.8<5.8.0-26.28~20.04.1
5.8.0-26.28~20.04.1
ubuntu/linux-oem-5.6*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
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-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*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-1160.41.1.rt56.1181.el7
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-1160.41.1.el7
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-327.100.1.el7
  4. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-514.92.1.el7
  5. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-693.94.1.el7
  6. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-957.84.1.el7
  7. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-1062.56.1.el7
  8. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-305.12.1.rt7.84.el8_4
  9. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-305.12.1.el8_4
  10. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-147.52.1.el8_1
  11. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-193.64.1.rt13.115.el8_2
  12. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-193.64.1.el8_2
  13. Upgrade

    Upgrade redhat/redhat-virtualization-host to a version that resolves this vulnerability.

    Fixed in 0:4.3.18-20210903.0.el7_9
  14. Upgrade

    Upgrade redhat/redhat-virtualization-host to a version that resolves this vulnerability.

    Fixed in 0:4.4.7-20210804.0.el8_4
  15. Upgrade

    Upgrade redhat/Kernel to a version that resolves this vulnerability.

    Fixed in 5.12
  16. Upgrade

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

    Fixed in :2021-10-05
  17. Upgrade

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

    Fixed in 3.13.0-187.238
  18. Upgrade

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

    Fixed in 4.4.0-1095.100
  19. Upgrade

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

    Fixed in 4.15.0-1115.128~14.04.1
  20. Upgrade

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

    Fixed in 4.4.0-213.245~14.04.1
  21. Upgrade

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

    Fixed in 4.4.0-213.245
  22. Upgrade

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

    Fixed in 4.4.0-1131.145
  23. Upgrade

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

    Fixed in 4.15.0-1103.110~16.04.1
  24. Upgrade

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

    Fixed in 4.15.0-1115.128~16.04.1
  25. Upgrade

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

    Fixed in 4.15.0-1100.113~16.04.1
  26. Upgrade

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

    Fixed in 4.15.0-144.148~16.04.1
  27. Upgrade

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

    Fixed in 4.4.0-1096.105
  28. Upgrade

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

    Fixed in 4.15.0-1072.80~16.04.1
  29. Upgrade

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

    Fixed in 4.4.0-1065.71
  30. Upgrade

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

    Fixed in 4.15.0-144.148
  31. Upgrade

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

    Fixed in 4.15.0-1103.110
  32. Upgrade

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

    Fixed in 5.4.0-1049.51~18.04.1
  33. Upgrade

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

    Fixed in 4.15.0-1115.128
  34. Upgrade

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

    Fixed in 5.4.0-1048.50~18.04.1
  35. Upgrade

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

    Fixed in 4.15.0-1022.26
  36. Upgrade

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

    Fixed in 4.15.0-1100.113
  37. Upgrade

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

    Fixed in 5.4.0-1044.47~18.04.2
  38. Upgrade

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

    Fixed in 5.4.0-1044.46~18.04.1
  39. Upgrade

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

    Fixed in 5.4.0-1016.17~18.04.1
  40. Upgrade

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

    Fixed in 5.4.0-74.83~18.04.1
  41. Upgrade

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

    Fixed in 4.15.0-1092.94
  42. Upgrade

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

    Fixed in 4.15.0-1072.80
  43. Upgrade

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

    Fixed in 5.4.0-1046.50~18.04.2
  44. Upgrade

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

    Fixed in 5.4.0-1036.39~18.04.1
  45. Upgrade

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

    Fixed in 4.15.0-1086.91
  46. Upgrade

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

    Fixed in 4.15.0-1103.112
  47. Upgrade

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

    Fixed in 4.15.0-2045.47
  48. Upgrade

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

    Fixed in 4.15.0-2027.30
  49. Upgrade

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

    Fixed in 4.15.0-1060.68
  50. Upgrade

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

    Fixed in 5.4.0-74.83
  51. Upgrade

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

    Fixed in 5.4.0-1049.51
  52. Upgrade

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

    Fixed in 5.4.0-1048.50
  53. Upgrade

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

    Fixed in 5.4.0-1012.15
  54. Upgrade

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

    Fixed in 5.4.0-1044.47
  55. Upgrade

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

    Fixed in 5.4.0-1044.46
  56. Upgrade

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

    Fixed in 5.4.0-1016.17
  57. Upgrade

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

    Fixed in 5.8.0-55.62~20.04.1
  58. Upgrade

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

    Fixed in 5.4.0-1040.41
  59. Upgrade

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

    Fixed in 5.10.0-1025.26
  60. Upgrade

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

    Fixed in 5.4.0-1046.50
  61. Upgrade

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

    Fixed in 5.4.0-1036.39
  62. Upgrade

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

    Fixed in 5.8.0-26.28~20.04.1
  63. Upgrade

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

    Fixed in 5.4.0-1069.73+fips2
  64. Upgrade

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

    Fixed in 5.4.0-1073.76+fips1
  65. Upgrade

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

    Fixed in 5.4.0-1067.71~20.04.1
  66. Configuration

    For RHEL 8 systems not using containers, add `user.max_user_namespaces = 0` to a file under `/etc/sysctl.d/` (equivalent immediate change: `echo 0 > /proc/sys/user/max_user_namespaces`), then reload the configuration with `sudo sysctl --system`.

    Linux user namespaces user.max_user_namespaces = 0
  67. Configuration

    For containers where user namespaces cannot be disabled, block the `unshare(CLONE_NEWUSER)` and `unshare(CLONE_NEWNET)` syscalls in the seccomp policy.

    Seccomp policy blocked syscalls = block unshare(CLONE_NEWUSER) and unshare(CLONE_NEWNET)

Event History

Jul 4, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Jul 7, 2021
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·11:20 AM
Data Sourced
via OSV·12:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·12:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Oct 1, 2021
Advisory Published
via OSV·12:00 AM
Oct 11, 2021
Updated
12:00 AM
Affected Software
Oct 19, 2021
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Feb 4, 2022
Data Sourced
via Red Hat·12:01 PM
DescriptionSeverityAffected Software
Oct 6, 2025
Kev Listed
via CISA·12:00 AM
Data Sourced
via CISA·12:00 AM
RemedyDescriptionAffected Software
Data Sourced
via CISA·12:00 AM
Weakness
Oct 7, 2025
Updated
via NVD·01:45 PM
Affected Software
Oct 13, 2026
Updated
via NVD·06:25 PM
Affected Software
Nov 12, 2026
Updated
via OSV·05:22 PM
Affected Software

Frequently Asked Questions

1

What is CVE-2021-22555?

CVE-2021-22555 is a heap out-of-bounds write vulnerability affecting Linux kernel since v2.6.19-rc1 in the net/netfilter/x_tables component.

2

How does CVE-2021-22555 affect the system?

CVE-2021-22555 allows a local user to gain privileges or cause a denial-of-service (DoS) through user name space.

3

Which software versions are affected by CVE-2021-22555?

Linux kernel versions between v2.6.19-rc1 and 5.12 are affected by CVE-2021-22555.

4

What is the severity of CVE-2021-22555?

CVE-2021-22555 has a severity rating of 7.8 (High).

5

How can I fix CVE-2021-22555?

To fix CVE-2021-22555, update the Linux kernel to version 5.12 or apply the appropriate patches as recommended by the vendor.

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