ZeroHour

CVE-2021-22600

KEVmass

Double-Free Privilege Escalation in Linux Kernel af_packet (CVE-2021-22600)

CISA: Linux Kernel Privilege Escalation Vulnerability

CVSS 3.1
7.0 high
EPSS
6%p93
Published
()
KEV added
AI analysis

CVE-2021-22600 is a double-free flaw (CWE-415) in packet_set_ring() in the Linux kernel's net/packet/af_packet.c, the code that manages packet socket ring buffers. A local, low-privileged user can trigger it through crafted syscalls on AF_PACKET sockets, causing kernel memory corruption. A successful attacker gains local privilege escalation to kernel/root-level control, or can instead crash the system in a denial of service; the flaw scores 7.0 (High) with a local attack vector and high attack complexity. Any kernel built before the fix commit ec6af094ea28f0f2dda1a6a33b14cd57e36a9755 is affected, spanning the upstream Linux kernel, Debian Linux, Google's Android (patched in an actively exploited April 2022 Android security update), and NetApp storage products that embed the Linux kernel (8300, 8700, A400, C400, and H-series firmware). The flaw was added to CISA's Known Exploited Vulnerabilities catalog on 2022-04-11 and Google patched it as actively exploited, so it is being exploited in the wild, though no standalone public PoC is known and any ransomware use is unconfirmed.

What to do: Upgrade the Linux kernel to a release past the affected versions, or rebuild from source including commit ec6af094ea28f0f2dda1a6a33b14cd57e36a9755; apply Debian security updates and NetApp firmware updates per each vendor's advisory. Because the flaw is in CISA's KEV catalog and Google confirmed active exploitation, prioritize patching for hosts that grant interactive/local access to untrusted users. If patching must be delayed, restrict local logins and monitor for suspicious AF_PACKET ring-buffer syscall activity and unexplained crashes or reboots.

Affected
Linux kernel
Debian Linux
NetApp 8300 firmware
NetApp 8700 firmware
NetApp A400 firmware
NetApp C400 firmware
NetApp H410C firmware
NetApp H300S firmware
NetApp H500S firmware
NetApp H700S firmware
NetApp H410S firmware
Estimated exposure
massMillions of installations and devices (Linux servers and cloud instances counted in the millions by public internet scans, billions of Android devices, plus… — The af_packet code is compiled into essentially all Linux kernels, so the affected installed base follows Linux's ubiquity across internet-reachable servers, Android handsets, and embedded NetApp storage firmware.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

A double free bug in packet_set_ring() in net/packet/af_packet.c can be exploited by a local user through crafted syscalls to escalate privileges or deny service. We recommend upgrading kernel past the effected versions or rebuilding past ec6af094ea28f0f2dda1a6a33b14cd57e36a9755

CISA Known Exploited Vulnerability
Affected
Linux Kernel
Required action
Apply updates per vendor instructions.
Due date
Ransomware use
Unknown
Vendors
netapplinuxdebian
Products
8300 firmware, 8700 firmware, a400 firmware, c400 firmware, linux kernel, debian linux, h410c firmware, h300s firmware, h500s firmware, h700s firmware, h410s firmware
Weakness
CWE-415
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news