Security Advisory

CVE-2021-1048: Android Kernel epoll Use-After-Free

Last updated:
  • CVE-2021-1048

CVE-2021-1048 is a use-after-free in the Linux kernel's epoll loop check, ep_loop_check_proc(), as shipped in Android kernels. A local app can use it to corrupt kernel memory and gain privileges without user interaction. NVD scores it 7.8, Google reported limited, targeted exploitation, and Android patch level 2021-11-06 or later fixes it.

Vulnerability summary

CVSS base score

7.8

High severity

EPSS score (FIRST)

1.1%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

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

Affected components

ComponentCPEVersion range
Android kernel (eventpoll)cpe:2.3:o:google:android:-:*:*:*:*:*:*:*Android kernel; fixed at security patch level 2021-11-06 or later (Android Security Bulletin November 2021, A-204573007)
Linux kernel (Debian linux package)pkg:deb/debian/linuxFixed in 4.9.240-1 for stretch, 4.19.146-1 for buster and 5.8.10-1 in unstable; upstream fix 77f4689de17c in 5.9-rc4 (Debian security tracker, as of 2026-11-25)

What does this mean for affected devices?

NVD describes the flaw: "In ep_loop_check_proc of eventpoll.c, there is a possible way to corrupt memory due to a use after free. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation." Google's Android team is the CNA (Android ID A-204573007). NVD's Primary score is CVSS v3.1 7.8 (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), NVD CVSS v2 is 7.2, and CISA ADP also gives 7.8. NVD and CISA ADP classify it as CWE-416, use after free (NVD, CVE record).

Where does the bug come from?

The Android Security Bulletin for November 2021 lists CVE-2021-1048 in the Kernel table of the 2021-11-06 security patch level as a High-severity elevation of privilege, and its mitigations section notes "indications that CVE-2021-1048 and CVE-2021-0920 may be under limited, targeted exploitation." The bulletin links the upstream fix, commit 77f4689de17c by Al Viro, "fix regression in "epoll: Keep a reference on files added to the check list"": ep_loop_check_proc() could run into a file that was already being destroyed, and the earlier change tried to take a reference on it. The fix landed in Linux 5.9-rc4 in September 2020, more than a year before the Android bulletin, so devices whose vendor kernels missed that stable update stayed exposed. Debian's security tracker lists the fix in 4.9.240-1 for stretch, 4.19.146-1 for buster and 5.8.10-1 in unstable.

Which devices are affected and how do you fix it?

NVD's only CPE is google:android; no device maker is named in the CVE record. Android phones, tablets and Android-based handhelds are fixed by security patch level 2021-11-06 or later, so check the level each device reports and retire devices the maker no longer updates. For your own embedded Linux or Android kernel builds, confirm commit 77f4689de17c or its stable backport is present. Linux kernel CVEs on embedded devices explains how to match a firmware kernel against fixes like this, and how to fix memory corruption in embedded firmware covers use-after-free bugs. Other exploited Android kernel flaws: CVE-2019-2215 (Binder) and CVE-2025-38352 (POSIX CPU timers).

Is CVE-2021-1048 exploited?

Yes. CISA added it to the KEV catalog on 2022-05-23 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.01058, the 65.16th 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; use after free in ep_loop_check_proc of eventpoll.c, local EoP, no user interaction; Android ID A-204573007; NVD Primary CVSS v3.1 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, NVD v2 7.2; CISA ADP 7.8; CWE-416; CPE google:android only. — NVD
  • CVE record: PUBLISHED, CNA google_android, published 2021-12-15; product Android, version Android kernel. — CVE.org
  • Android Security Bulletin November 2021 (published 2021-11-01, updated 2021-12-03): note 'indications that CVE-2021-1048 and CVE-2021-0920 may be under limited, targeted exploitation'; CVE-2021-1048, A-204573007, Upstream kernel link 77f4689de17c, EoP, High, Kernel, under 2021-11-06 patch level. — Android Security Bulletin
  • Commit 77f4689de17c (Al Viro, 2020-09-02) 'fix regression in "epoll: Keep a reference on files added to the check list"': epoll_loop_check_proc() can run into a file already committed to destruction; Fixes a9ed4a6560b8. — Android kernel/common (upstream commit)
  • Debian tracker: linux fixed stretch 4.9.240-1, buster 4.19.146-1, unstable 5.8.10-1; fix 77f4689de17c (5.9-rc4). — Debian security tracker
  • KEV catalog 2026.11.24: Android Kernel Use-After-Free, dateAdded 2022-05-23, due 2022-06-13, required action 'Apply updates per vendor instructions.', knownRansomwareCampaignUse Unknown, CWE-416. — CISA KEV
  • EPSS 0.01058, percentile 0.65161, dataset 2026-11-24. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Android Security Bulletin, November 2021
  3. Upstream commit 77f4689de17c: fix regression in epoll check list handling
  4. Debian security tracker CVE-2021-1048
  5. CVE.org record CVE-2021-1048 (CNA: Google Android)
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

Which Android patch level fixes CVE-2021-1048?

Security patch level 2021-11-06 or later. Google's November 2021 Android Security Bulletin lists the epoll use-after-free under that patch level as a High-severity elevation of privilege in the kernel (per the Android Security Bulletin).

Which Linux kernel versions carry the fix for CVE-2021-1048?

The upstream fix is commit 77f4689de17c, merged in Linux 5.9-rc4 in September 2020. Debian shipped it in 4.9.240-1 for stretch, 4.19.146-1 for buster and 5.8.10-1 in unstable; vendor kernels need that commit or a stable backport (per the Debian security tracker and the commit).

Is CVE-2021-1048 exploited in the wild?

Yes. Google's bulletin reported indications of 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. FIRST EPSS gives 0.01058, the 65.16th percentile, in the 2026-11-24 dataset (per Android, CISA KEV and FIRST EPSS).