Security Advisory

CVE-2021-0920: Android Kernel af_unix Use-After-Free

Last updated:
  • CVE-2021-0920

CVE-2021-0920 is a use-after-free in the Linux kernel's Unix domain socket (af_unix) code: the socket garbage collector can race with a MSG_PEEK read and free a file that is still in use, letting a local attacker escalate privileges. Google flagged it as exploited on Android. NVD scores it 6.4, and Android patch level 2021-11-05 fixes it.

Vulnerability summary

CVSS base score

6.4

Medium severity

EPSS score (FIRST)

0.9%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

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

Affected components

ComponentCPEVersion range
Android kernel (af_unix, unix_scm_to_skb)cpe:2.3:o:google:android:-:*:*:*:*:*:*:*Android kernel; fixed at security patch level 2021-11-05 or later (Android Security Bulletin November 2021, A-196926917)
Linux kernel (net/unix garbage collection)cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*Up to and including 5.13 and 5.14-rc1 to rc3 (NVD); upstream fix cbcf01128d0a
Debian linux packagepkg:deb/debian/linuxFixed in 4.9.290-1 for stretch (DLA-2843-1), 4.19.208-1 for buster, 5.10.70-1 for bullseye and 5.14.6-1 in unstable (Debian security tracker, as of 2026-11-25)

What does this mean for affected devices?

NVD describes CVE-2021-0920: "In unix_scm_to_skb of af_unix.c, there is a possible use after free bug due to a race condition. This could lead to local escalation of privilege with System execution privileges needed. User interaction is not needed for exploitation." Google's Android team is the CNA (Android ID A-196926917). NVD's Primary scores are CVSS v3.1 6.4 (CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H) and CVSS v2 6.9; CISA ADP also gives 6.4. NVD classifies it as CWE-362 (race condition) and CWE-416 (use after free) (NVD, CVE record).

Where does the bug come from?

The Android Security Bulletin for November 2021 lists CVE-2021-0920 in the Kernel components table of the 2021-11-05 security patch level as a High-severity elevation of privilege, and its mitigations note says "There are indications that CVE-2021-1048 and CVE-2021-0920 may be under limited, targeted exploitation." The bulletin links the upstream fix, commit cbcf01128d0a by Miklos Szeredi, "af_unix: fix garbage collect vs MSG_PEEK", from July 2021. Its message explains that unix_gc() assumes a candidate socket cannot gain a new reference while unix_gc_lock is held, but MSG_PEEK did not take that lock; the fix adds a lock and unlock barrier so garbage collection runs completely before or after a peeked file is installed. Debian's security tracker lists the fix in 4.9.290-1 for stretch (DLA-2843-1), 4.19.208-1 for buster and 5.10.70-1 for bullseye.

Which devices are affected and how do you fix it?

NVD's CPEs are google:android and linux:linux_kernel up to 5.13 plus 5.14-rc1 to rc3; no device maker is named in the CVE record. Android phones, tablets and Android-based handhelds are fixed by security patch level 2021-11-05 or later, so check the patch level each device reports and retire devices the maker no longer updates. Unix domain sockets are present in nearly every Linux build, so for your own embedded Linux or Android kernels confirm cbcf01128d0a or its stable backport is in the tree. How to fix memory corruption in embedded firmware covers use-after-free bugs. The other kernel flaw Google flagged in the same bulletin is CVE-2021-1048 in epoll; another exploited Android kernel use-after-free is CVE-2019-2215 in Binder.

Is CVE-2021-0920 exploited?

Yes. CISA added it to the KEV catalog on 2022-05-23 as "Android Kernel Race Condition Vulnerability", with the required action "Apply updates per vendor instructions." and a due date of 2022-06-13; 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.00867, the 59.47th percentile, in the 2026-11-24 dataset (FIRST EPSS). The low EPSS score reflects targeted use; KEV and EPSS prioritization explains why the KEV listing decides the priority.

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • NVD (read 2026-11-25): status Analyzed, published 2021-12-15, CNA Google Android; unix_scm_to_skb use after free due to race, local EoP with System execution privileges; NVD Primary CVSS v3.1 6.4 AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H and CVSS v2 6.9; CISA ADP 6.4; CWE-362 and CWE-416 (NVD); CPE linux_kernel <=5.13, 5.14-rc1..rc3, google android. — NVD
  • CVE record: PUBLISHED, CNA google_android, published 2021-12-15; CISA ADP CVSS v3.1 6.4. — CVE.org
  • Android Security Bulletin November 2021 (published 2021-11-01, updated 2021-12-03): CVE-2021-0920, A-196926917, Upstream kernel, EoP, High, Kernel, in the 2021-11-05 patch level; note: indications that CVE-2021-1048 and CVE-2021-0920 may be under limited, targeted exploitation. — Android Security Bulletin
  • Commit cbcf01128d0a (Miklos Szeredi, 2021-07-28) "af_unix: fix garbage collect vs MSG_PEEK": MSG_PEEK must be serialised with garbage collection via a unix_gc_lock lock/unlock barrier; Cc stable. — Android kernel/common (upstream commit)
  • Debian tracker: stretch 4.9.290-1 (DLA-2843-1), buster 4.19.208-1, bullseye 5.10.70-1, unstable 5.14.6-1. — Debian security tracker
  • KEV catalog 2026.11.24: dateAdded 2022-05-23, due 2022-06-13, required action "Apply updates per vendor instructions.", knownRansomwareCampaignUse Unknown, CWE-362 and CWE-416. — CISA KEV
  • EPSS 0.00867, percentile 0.59472, dataset 2026-11-24. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Android Security Bulletin, November 2021
  3. Upstream commit cbcf01128d0a: af_unix: fix garbage collect vs MSG_PEEK
  4. Debian security tracker CVE-2021-0920
  5. CVE.org record CVE-2021-0920 (CNA: Google Android)
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

What CVSS score does CVE-2021-0920 have?

NVD's Primary scores are CVSS v3.1 6.4 and CVSS v2 6.9. The v3.1 vector assumes high privileges and high attack complexity, matching the CVE record's note that System execution privileges are needed; CISA ADP also gives 6.4 (per NVD and the CVE record).

Which Android patch level fixes CVE-2021-0920?

Security patch level 2021-11-05 or later. The November 2021 Android Security Bulletin lists it in the kernel components of that patch level (per the Android Security Bulletin).

Which Linux kernel versions fix CVE-2021-0920?

NVD lists kernels up to 5.13 and 5.14-rc1 to rc3 as affected; the fix is upstream commit cbcf01128d0a. Debian fixed it in 4.9.290-1, 4.19.208-1 and 5.10.70-1 (per NVD and the Debian security tracker).

Is CVE-2021-0920 exploited in the wild?

Yes. Google said it may be under limited, targeted exploitation, and CISA added it to KEV on 2022-05-23; it is listed as of 2026-11-25 in catalog version 2026.11.24 with ransomware use Unknown. FIRST EPSS gives 0.00867, the 59.47th percentile, in the 2026-11-24 dataset (per the Android bulletin, CISA KEV and FIRST EPSS).