CVE-2021-22555highunder attackCWE-787

CVE-2021-22555: high-severity vulnerability in Linux Kernel

Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE

Published · Updated

E-mail alert when it lands in KEV, gets a public PoC or its score goes up.

100Vexday Risk Score

Patch now. It under exploitation confirmed by CISA and has a working public exploit.

ssvc Actcvss 8.3epss 79%
from disclosure to weaponsame day
Published on NVDJul 7
1st PoCMar 30
metasploitJul 7
CISA KEV+1552d
What the vendors declare (VEX)

Official vendor statements in CSAF/VEX format: whether their product is affected, already fixed, or ruled out — and why. These are the vendor's assertions, not Vexday's judgment.

Affected
1 product (16 components)
Red Hat Enterprise Linux 7
workaround: 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…
Fixed
42 products (1,259 components)
Red Hat Enterprise Linux BaseOS EUS (v. 8.2) · Red Hat Enterprise Linux BaseOS EUS (v. 8.1) · Red Hat Enterprise Linux BaseOS (v. 8) · Red Hat Enterprise Linux Server (v. 7) · Red Hat Enterprise Linux Server E4S (v. 7.6) · and others 37
Not affected
3 products (115 components) — because the vulnerable code is not present in the product
Red Hat Enterprise Linux 9 · RHEL 8-based RHEV-H for RHEV 4 (build requirements) · RHEL 7-based RHEV-H for RHEV 4 (build requirements)
Action required by CISAfederal deadline: 2025-10-27

Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

In short

A flaw in Linux's network filtering system allows attackers to write data beyond the bounds of allocated memory, potentially gaining unauthorized access or crashing the system. This vulnerability affects the kernel's ability to safely handle network rule configurations.

Technical detail

A heap out-of-bounds write in net/netfilter/x_tables.c (CWE-787) enables privilege escalation or denial of service through heap memory corruption. The vulnerability is triggered via the IP6T_SO_SET_REPLACE socket option in user namespace context, affecting Linux kernels from v2.6.19-rc1 onwards.

Summary generated and translated by AI from the official description.

The full analysis of this CVE is available in Portuguese →

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
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Affected products
n/a · Linux Kernel
public PoCs found — 34✓ VexDay Proof
exploitdb✓ VexDay Proofwww.exploit-db.com/exploits/50135githubgithub.com/veritas501/CVE-2021-22555-PipeVersion★ 40githubgithub.com/xyjl-ly/CVE-2021-22555-Exploit★ 14githubgithub.com/cgwalters/container-cve-2021-22555★ 4githubgithub.com/tukru/CVE-2021-22555★ 3githubgithub.com/masjohncook/netsec-project★ 1githubgithub.com/daletoniris/CVE-2021-22555-esc-priv★ 1githubgithub.com/JoneyJunior/cve-2021-22555★ 1githubgithub.com/Spydomain/CVE-2021-22555-Poc★ 1githubgithub.com/letsr00t/-2021-LOCALROOT-CVE-2021-22555★ 0githubgithub.com/pashayogi/CVE-2021-22555★ 0githubgithub.com/letsr00t/CVE-2021-22555★ 0githubgithub.com/glutton-su/CVE-2021-22555★ 0githubgithub.com/WhatsWrongAndWhy/CVE-2021-22555★ 0vulncheckvulncheck.com/xdb/03ee412dd1bcunverifiedvulncheckvulncheck.com/xdb/c9c506745b9dunverifiedvulncheckvulncheck.com/xdb/3490863fd0a4unverifiedvulncheckvulncheck.com/xdb/6a4e30003e87unverifiedvulncheckvulncheck.com/xdb/9a834a66683dunverifiedcve_referencepacketstormsecurity.com/files/164155/Kernel-Live-Patch-Security-Notice-LSN-0081-1.htmlunverifiedvulncheckvulncheck.com/xdb/3a9d4ebf74b0unverifiedvulncheckvulncheck.com/xdb/e7c8672f5830unverifiedcve_referencepacketstormsecurity.com/files/163528/Linux-Kernel-Netfilter-Heap-Out-Of-Bounds-Write.htmlunverifiedcve_referencepacketstormsecurity.com/files/163878/Kernel-Live-Patch-Security-Notice-LSN-0080-1.htmlunverifiedcve_referencepacketstormsecurity.com/files/164437/Netfilter-x_tables-Heap-Out-Of-Bounds-Write-Privilege-Escalation.htmlunverifiedcve_referencepacketstormsecurity.com/files/165477/Kernel-Live-Patch-Security-Notice-LSN-0083-1.htmlunverifiedvulncheckvulncheck.com/xdb/14f39aad347eunverifiedvulncheckvulncheck.com/xdb/8ef3da70ba6cunverifiedvulncheckvulncheck.com/xdb/b14c9c8213f1unverifiedvulncheckvulncheck.com/xdb/82616da9904funverifiedvulncheckvulncheck.com/xdb/927960b6eeebunverifiedvulncheckvulncheck.com/xdb/b370bb1cf76funverifiedvulncheckvulncheck.com/xdb/1df56bc7a919unverifiedvulncheckvulncheck.com/xdb/3ab838e91745unverified
⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.