cve.bz

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

7.8 highKEVExploitEPSS 79%Fix available

High (7.8) in Linux Kernel. In CISA KEV since 2025-10-06. EPSS 79% estimated probability of exploitation activity in the next 30 days.

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

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
79% (unchanged from 79% a week ago; 79% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2025-10-06, due 2025-10-27
CISA's assessment (SSVC)
Exploitation: active · Automatable: no · Technical impact: total, assessed 2025-10-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-22555 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-22555?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-22555?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-22555 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-22555

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-22555](https://cve.bz/cve/badge/CVE-2021-22555.svg)](https://cve.bz/cve/CVE-2021-22555)

HTML:

<a href="https://cve.bz/cve/CVE-2021-22555"><img src="https://cve.bz/cve/badge/CVE-2021-22555.svg" alt="CVE-2021-22555"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelfrom 2.6.19 before 4.4.267
linux:linux_kernelfrom 4.5 before 4.9.267
linux:linux_kernelfrom 4.10 before 4.14.231
linux:linux_kernelfrom 4.15 before 4.19.188
linux:linux_kernelfrom 4.20 before 5.4.113
linux:linux_kernelfrom 5.5 before 5.10.31
linux:linux_kernelfrom 5.11 before 5.12

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux5.10.38-1DEBIAN-CVE-2021-22555
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2021-22555
Ubuntu18.04:LTSlinux4.15.0-144.148UBUNTU-CVE-2021-22555
Ubuntu18.04:LTSlinux-aws4.15.0-1103.110UBUNTU-CVE-2021-22555
Ubuntu18.04:LTSlinux-aws-5.45.4.0-1049.51~18.04.1UBUNTU-CVE-2021-22555
Ubuntu18.04:LTSlinux-azure-4.154.15.0-1115.128UBUNTU-CVE-2021-22555
Ubuntu18.04:LTSlinux-azure-5.45.4.0-1048.50~18.04.1UBUNTU-CVE-2021-22555
Ubuntu18.04:LTSlinux-dell300x4.15.0-1022.26UBUNTU-CVE-2021-22555
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 11 moreno fix listedUBUNTU-CVE-2021-22555
Ubuntu18.04:LTSlinux-gcp-4.154.15.0-1100.113UBUNTU-CVE-2021-22555
Ubuntu18.04:LTSlinux-gcp-5.45.4.0-1044.47~18.04.2UBUNTU-CVE-2021-22555
Ubuntu18.04:LTSlinux-gke-5.45.4.0-1044.46~18.04.1UBUNTU-CVE-2021-22555
Ubuntu18.04:LTSlinux-gkeop-5.45.4.0-1016.17~18.04.1UBUNTU-CVE-2021-22555
71 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:7::client, enterprise_linux:7::workstationperf, kernel, bpftool and 16 more0:3.10.0-1160.41.1.el7RHSA-2021:3327
Red Hatenterprise_linux:7::computenodeperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 5 more0:3.10.0-1160.41.1.el7RHSA-2021:3327
Red Hatenterprise_linux:7::hypervisorredhat-virtualization-host, redhat-virtualization-host-image-update0:4.3.18-20210903.0.el7_9RHSA-2021:3477
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160, kpatch-patch-3_10_0-1160_2_1, kpatch-patch-3_10_0-1160_2_2 and 5 more0:1-8.el7RHSA-2021:3381
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_11_1, kpatch-patch-3_10_0-1160_15_2, kpatch-patch-3_10_0-1160_11_1-debuginfo and 1 more0:1-7.el7RHSA-2021:3381
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_21_1, kpatch-patch-3_10_0-1160_21_1-debuginfo0:1-5.el7RHSA-2021:3381
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_24_1, kpatch-patch-3_10_0-1160_25_1, kpatch-patch-3_10_0-1160_24_1-debuginfo and 1 more0:1-3.el7RHSA-2021:3381
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_31_1, kpatch-patch-3_10_0-1160_31_1-debuginfo0:1-2.el7RHSA-2021:3381
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_36_2, kpatch-patch-3_10_0-1160_36_2-debuginfo0:1-1.el7RHSA-2021:3381
Red Hatenterprise_linux:7::serverperf, kernel, bpftool and 23 more0:3.10.0-1160.41.1.el7RHSA-2021:3327
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-305, kpatch-patch-4_18_0-305-debuginfo, kpatch-patch-4_18_0-305-debugsource0:1-4.el8RHSA-2021:3044
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-305_10_2, kpatch-patch-4_18_0-305_10_2-debuginfo, kpatch-patch-4_18_0-305_10_2-debugsource0:1-1.el8_4RHSA-2021:3044
45 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 4 morekernel-docs, kernel-syms, kernel-source and 2 more4.12.14-197.99.1SUSE-SU-2021:2427-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP3-LTSS and 3 morekernel-syms, kernel-source, kernel-default4.4.180-94.147.1SUSE-SU-2021:2451-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP3-LTSS, Linux Enterprise Server for SAP Applications 12 SP3 and 2 morekgraft-patch-SLE12-SP3_Update_401-4.3.1SUSE-SU-2021:2451-1
SUSELinux Enterprise High Availability Extension 12 SP3kernel-default4.4.180-94.147.1SUSE-SU-2021:2451-1
SUSELinux Enterprise High Availability Extension 12 SP4, Linux Enterprise Live Patching 12 SP4kernel-default4.12.14-95.80.1SUSE-SU-2021:2422-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Live Patching 12 SP5, Linux Enterprise Workstation Extension 12 SP5kernel-default4.12.14-122.80.1SUSE-SU-2021:2416-1
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise Live Patching 15kernel-default4.12.14-150.75.1SUSE-SU-2021:2421-1
SUSELinux Enterprise High Availability Extension 15 SP1, Linux Enterprise Live Patching 15 SP1kernel-default4.12.14-197.99.1SUSE-SU-2021:2427-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Live Patching 15 SP2, Linux Enterprise Micro 5.0 and 1 morekernel-default5.3.18-24.75.3SUSE-SU-2021:2438-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Module for Legacy 15 SP3kernel-default5.3.18-59.16.1SUSE-SU-2021:2415-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server for SAP Applications 15kernel-docs, kernel-syms, kernel-source and 3 more4.12.14-150.75.1SUSE-SU-2021:2421-1
SUSELinux Enterprise Live Patching 12 SP4kgraft-patch-SLE12-SP4_Update_1513-2.2SUSE-SU-2021:2538-1
82 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.2kernel-default-base5.3.18-lp152.84.1.lp152.8.38.1openSUSE-SU-2021:1076-1
openSUSELeap 15.2kernel-docs, kernel-syms, kernel-debug and 6 more5.3.18-lp152.84.1openSUSE-SU-2021:1076-1
openSUSELeap 15.3kernel-64kb, kernel-docs, kernel-syms and 8 more5.3.18-59.16.1openSUSE-SU-2021:2415-1
openSUSELeap 15.3kernel-azure, kernel-syms-azure, kernel-source-azure5.3.18-38.14.1openSUSE-SU-2021:2409-1
openSUSELeap 15.3kernel-debug, kernel-default, kernel-vanilla and 2 more4.12.14-197.99.1openSUSE-SU-2021:2427-1
openSUSELeap 15.3kernel-default-base5.3.18-59.16.1.18.8.1openSUSE-SU-2021:2415-1
AlmaLinux8kernel-tools-libs-devel4.18.0-305.12.1.el8_4ALSA-2021:3057
Rocky Linux8kernel0:4.18.0-305.12.1.el8_4RLSA-2021:3057
Rocky Linux8kernel-rt0:4.18.0-305.12.1.rt7.84.el8_4RLSA-2021:3088

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

In Red Hat Enterprise Linux 7, only privileged users can trigger this bug. In Red Hat Enterprise Linux 8 a regular user can trigger it, however the result is corruption of 4 bytes of memory.

Red Hat's mitigation

The mitigation for the Red Hat Enterprise Linux 8 is to disable unprivileged users from running unshare(CLONE_NEWUSER) or unshare(CLONE_NEWNET) that could be done with this command:

echo 0 > /proc/sys/user/max_user_namespaces

For making this change in configuration permanent.

Note: User namespaces are used primarily for Linux containers. If containers are in use, this requirement is not applicable.

Configure RHEL 8 to disable the use of user namespaces by adding the following line to a file in the "/etc/sysctl.d/" directory:

user.max_user_namespaces = 0

The system configuration files need to be reloaded for the changes to take effect. To reload the contents of the files, run the following command:

$ sudo sysctl --system

The other mitigation for containers, if without disabling user namespaces, is blocking the pertinent syscalls in a seccomp policy file. For more information about seccomp, please read: https://www.openshift.com/blog/seccomp-for-fun-and-profit

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSIONkernel-0:2.6.32-754.58.1.el6Fixed 2025-10-10RHSA-2025:17733
Red Hat Enterprise Linux 7kernel-rt-0:3.10.0-1160.41.1.rt56.1181.el7Fixed 2021-08-31RHSA-2021:3328
Red Hat Enterprise Linux 7kernel-0:3.10.0-1160.41.1.el7Fixed 2021-08-31RHSA-2021:3327
Red Hat Enterprise Linux 7kpatch-patchFixed 2021-08-31RHSA-2021:3381
Red Hat Enterprise Linux 7.2 Advanced Update Supportkernel-0:3.10.0-327.100.1.el7Fixed 2021-08-31RHSA-2021:3399
Red Hat Enterprise Linux 7.3 Advanced Update Supportkernel-0:3.10.0-514.92.1.el7Fixed 2021-08-31RHSA-2021:3321
Red Hat Enterprise Linux 7.4 Advanced Update Supportkernel-0:3.10.0-693.94.1.el7Fixed 2021-10-05RHSA-2021:3725
Red Hat Enterprise Linux 7.6 Advanced Update Supportkernel-0:3.10.0-957.84.1.el7Fixed 2021-10-12RHSA-2021:3812
Red Hat Enterprise Linux 7.6 Telco Extended Update Supportkernel-0:3.10.0-957.84.1.el7Fixed 2021-10-12RHSA-2021:3812
Red Hat Enterprise Linux 7.6 Update Services for SAP Solutionskernel-0:3.10.0-957.84.1.el7Fixed 2021-10-12RHSA-2021:3812
Red Hat Enterprise Linux 7.6 Update Services for SAP Solutionskpatch-patchFixed 2021-10-12RHSA-2021:3814
Red Hat Enterprise Linux 7.7 Advanced Update Supportkernel-0:3.10.0-1062.56.1.el7Fixed 2021-09-14RHSA-2021:3522
Red Hat Enterprise Linux 7.7 Telco Extended Update Supportkernel-0:3.10.0-1062.56.1.el7Fixed 2021-09-14RHSA-2021:3522
Red Hat Enterprise Linux 7.7 Update Services for SAP Solutionskernel-0:3.10.0-1062.56.1.el7Fixed 2021-09-14RHSA-2021:3522
Red Hat Enterprise Linux 7.7 Update Services for SAP Solutionskpatch-patchFixed 2021-09-14RHSA-2021:3523
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-305.12.1.rt7.84.el8_4Fixed 2021-08-10RHSA-2021:3088
Red Hat Enterprise Linux 8kpatch-patchFixed 2021-08-10RHSA-2021:3044
Red Hat Enterprise Linux 8kernel-0:4.18.0-305.12.1.el8_4Fixed 2021-08-10RHSA-2021:3057
Red Hat Enterprise Linux 7kernel-altOut of support scope
Red Hat Enterprise Linux 9kernelNot affected
7 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-22555.

Public exploits

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

References

Check your stackJSON