Security Advisory

CVE-2021-22600: Linux AF_PACKET Double Free

Last updated:
  • CVE-2021-22600

CVE-2021-22600 is a double free in the Linux kernel's AF_PACKET socket code, packet_set_ring(), that a local user can trigger with crafted system calls to gain root or crash the kernel. NVD scores it 7.0, CISA lists it as exploited, and Android reported targeted attacks. Kernels 5.10.88, 5.15.11 and Android patch level 2022-05-05 fix it.

Vulnerability summary

CVSS base score

7

High severity

EPSS score (FIRST)

6.6%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2021-22600 · Source: NVD

Affected components

ComponentCPEVersion range
Linux kernel (net/packet, AF_PACKET sockets)cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*4.14.175 to before 4.14.259, 4.19.114 to before 4.19.222, 5.4.29 to before 5.4.168, 5.5.14 to before 5.10.88, 5.11 to before 5.15.11 (NVD); upstream fix ec6af094ea28 in 5.16-rc6
Android kernel—Fixed at security patch level 2022-05-05 or later (Android Security Bulletin May 2022, A-213464034)
Debian linux packagepkg:deb/debian/linuxstretch not affected; fixed in 4.19.232-1 for buster (DSA-5096-1), 5.10.92-1 for bullseye, 5.15.15-1 in unstable (Debian security tracker, as of 2026-11-25)

What does this mean for affected devices?

The CVE record from Google, the CNA, reads: "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". NVD's Primary score is CVSS v3.1 7.0 (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H) and NVD CVSS v2 is 7.2. Google as CNA scores it lower, 6.6 (CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:H), because it assumes user interaction and limited confidentiality and integrity impact; CVSS v4 vs v3.1 explains how such vector choices move the score. Both classify it as CWE-415, double free (NVD, CVE record).

Which kernels are affected?

The fix is commit ec6af094ea28, "net/packet: rx_owner_map depends on pg_vec" by Willem de Bruijn: packet sockets may switch ring versions, and the rx_owner_map field could hold stale state from a TPACKET_V3 ring when no packet ring was allocated. It was reported by syzbot and carries a Fixes tag for 61fad6816fc1 ("net/packet: tpacket_rcv: avoid a producer race condition"), which is why the affected ranges start mid-series. NVD's CPE ranges are 4.14.175 to before 4.14.259, 4.19.114 to before 4.19.222, 5.4.29 to before 5.4.168, 5.5.14 to before 5.10.88 and 5.11 to before 5.15.11; the CNA record names 5.4.168, 5.10.88 and 5.15.11 as the first fixed releases. Debian's security tracker marks stretch not affected and lists fixes in 4.19.232-1 for buster (DSA-5096-1), 5.10.92-1 for bullseye and 5.15.15-1 in unstable; it dates the upstream fix to 5.16-rc6.

Which devices are affected and how do you fix it?

The Android Security Bulletin for May 2022 lists CVE-2021-22600 in the kernel table of the 2022-05-05 security patch level (A-213464034, elevation of privilege, Moderate) and notes "indications" that it and CVE-2022-0847 "may be under limited, targeted exploitation." Android devices need patch level 2022-05-05 or later. Embedded Linux devices such as routers, gateways and controllers are exposed when their kernel falls in the ranges above and local code can run on them. Move to at least 4.14.259, 4.19.222, 5.4.168, 5.10.88 or 5.15.11, or backport ec6af094ea28; how to fix memory corruption in embedded firmware covers double-free bugs. Linux kernel CVEs on embedded devices shows how to check a firmware kernel; CVE-2021-22555 is another exploited kernel networking flaw.

Is CVE-2021-22600 exploited?

Yes. CISA added it to the KEV catalog on 2022-04-11 with the required action "Apply updates per vendor instructions." and a due date of 2022-05-02; known ransomware campaign use is listed as Unknown. It is still listed as of 2026-11-25 in catalog version 2026.11.24 (CISA KEV). FIRST EPSS gives 0.06586, the 93.93rd percentile, in the 2026-11-24 dataset (FIRST EPSS).

How to fix this class of issueNo dedicated SoftWSP guide covers this weakness class; the fix is usually the vendor patch or firmware update referenced above. Our related guide explains how to plan and verify it: NIST SP 800-40 Rev. 4: enterprise patch management planning, explained.

Evidence

  • NVD (read 2026-11-25): status Analyzed, published 2022-01-26; NVD Primary CVSS v3.1 7.0 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H, NVD v2 7.2; Google CNA (Secondary) 6.6 AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:H; CWE-415 (NVD and Google); CPE linux_kernel 4.14.175-<4.14.259, 4.19.114-<4.19.222, 5.4.29-<5.4.168, 5.5.14-<5.10.88, 5.11-<5.15.11. — NVD
  • CVE record: PUBLISHED, CNA Google; description recommends upgrading past affected versions or rebuilding past ec6af094ea28; affected lessThan 5.4.168, 5.10.88, 5.15.11. — CVE.org
  • Commit ec6af094ea28 'net/packet: rx_owner_map depends on pg_vec' (Willem de Bruijn, 2021-12-15); Fixes 61fad6816fc1; Reported-by syzbot. — kernel.org
  • Android Security Bulletin May 2022 (published 2022-05-02): note 'indications that the following may be under limited, targeted exploitation' CVE-2022-0847, CVE-2021-22600; CVE-2021-22600 A-213464034, EoP, Moderate, Kernel, under 2022-05-05 patch level. — Android Security Bulletin
  • Debian tracker: stretch not affected (vulnerable code not present); buster 4.19.232-1 (DSA-5096-1); bullseye 5.10.92-1; unstable 5.15.15-1; fix ec6af094ea28 (5.16-rc6). — Debian security tracker
  • KEV catalog 2026.11.24: dateAdded 2022-04-11, due 2022-05-02, required action 'Apply updates per vendor instructions.', knownRansomwareCampaignUse Unknown, CWE-415. — CISA KEV
  • EPSS 0.06586, percentile 0.93928, dataset 2026-11-24. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Linux commit ec6af094ea28: net/packet: rx_owner_map depends on pg_vec
  3. Android Security Bulletin, May 2022
  4. Debian security tracker CVE-2021-22600
  5. CVE.org record CVE-2021-22600 (CNA: Google)
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

Which kernel versions fix CVE-2021-22600?

NVD's affected ranges end before 4.14.259, 4.19.222, 5.4.168, 5.10.88 and 5.15.11, so those stable releases and later are fixed; the upstream fix is commit ec6af094ea28 in 5.16-rc6. Android devices need security patch level 2022-05-05 or later (per NVD, the Debian security tracker and the Android Security Bulletin).

Why do NVD and Google give different CVSS scores for CVE-2021-22600?

NVD's Primary score is 7.0 with high confidentiality, integrity and availability impact and no user interaction. Google, the CNA, scores 6.6 with user interaction required, changed scope and low confidentiality and integrity impact (per NVD and the CVE record).

Is CVE-2021-22600 exploited in the wild?

Yes. CISA added it to KEV on 2022-04-11 and lists it as of 2026-11-25 in catalog version 2026.11.24, and Google's May 2022 Android bulletin reported indications of limited, targeted exploitation. FIRST EPSS gives 0.06586, the 93.93rd percentile, in the 2026-11-24 dataset (per CISA KEV, Android and FIRST EPSS).