Advisories · Linux & SSH
CVE-2021-22555
High
CVSS 7.8
Linux Netfilter heap overflow
Disclosed 2021 · Last reviewed 2 Dec 2026
A local user could turn a Netfilter heap overflow into root on unpatched kernels.
What happened
Setsockopt handling for an iptables compatibility path overflowed a heap buffer.
Affected and patched versions
- Affected
- Linux kernels before the Netfilter heap-overflow fix shipped in mid-2021.
- Patched
- The distro kernel that lists CVE-2021-22555.
How to check your server
Check
uname -r
How to fix and harden
- Install the distribution kernel update.
- Reboot.
- Remove unused iptables compatibility modules only if you know the host does not need them.
Fix
uname -r
Sources
Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON