CVE Database›Document archive›CVE-2021-22600

CVE-2021-22600

kernel: double free in packet_set_ring() in net/packet/af_packet.c

Loading…

Severity

Moderate

Red Hat Product Security

7

CVSS 3.1

Review impact separately from score.

Published · December 15, 2021

Updated · November 21, 2025

Description

A double-free flaw was found in the Linux kernel’s packet protocol subsystem in the way a user call triggers the packet_set_ring() function of the net/packet/af_packet.c. This flaw allows a local user to crash or escalate their privileges on the system.

Statement

The Red Hat Enterprise Linux versions before 9 are not affected, because the commit that introduced the bug is not in currently supported versions of Red Hat Enterprise Linux. The commit that introduced this bug is: 61fad6816fc1 ("net/packet: tpacket_rcv: avoid a producer race condition").

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Only users with access to the AF_PACKET socket can trigger this vulnerability. The mitigation would be to disable CAP_NET_RAW capability for the users that prevents access to AF_PACKET.

CVSS / CWE

CVSS 3.1 · 7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

CWE-416 · Use After Free