CVE DatabaseCVE-2021-0920
한국어 권고문 →
CVE-2021-09206.4/MEDIUMCISA KEVCWE-362CWE-416CWE-416

Linux Kernel & Android af_unix.c Use-After-Free Local Privilege Escalation Vulnerability (CVE-2021-0920)

⚡ Jump to Patch
Affected Vendors
google, linux
Affected Components
android, linux_kernel
Published Date
2021-12-15
CVSS v3.1
6.4
MEDIUM
EPSS (30d)
0.9%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Android kernel and Linux kernel implementations of AF_UNIX sockets

Impact

Local attackers can exploit this to gain System execution privileges without any user interaction, leading to full device compromise

Mitigation

Apply the Android November 2021 security patch or update to the latest upstream Linux kernel version

Affected Products & Version Scope

Android Kernel and Linux Kernel versions prior to the November 2021 security updates

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

For Android devices, ensure the security patch level is 2021-11-01 or later. For Linux servers, upgrade the kernel package using your distribution's package manager.

bash
# For Debian/Ubuntu systems
sudo apt-get update && sudo apt-get install --only-upgrade -y linux-image-generic

# For RHEL/Rocky Linux systems
sudo dnf clean all && sudo dnf update -y kernel

# Reboot to apply the new kernel
sudo reboot

2. Temporary Workaround & Hardening Configuration

If immediate patching is not feasible, restrict local compiler access to prevent the compilation of public exploit payloads.

bash
# Restrict compiler access for non-privileged users
sudo chmod 700 /usr/bin/gcc /usr/bin/clang 2>/dev/null || true

3. Log Audit & IoC Verification Commands

Use the following script to check the running kernel version and inspect system logs for potential exploitation attempts.

bash
#!/bin/bash
CURRENT_KERNEL=$(uname -r)
echo '[*] Running Kernel:' $CURRENT_KERNEL

# Check system logs for af_unix or UAF related crashes
sudo dmesg | grep -Ei 'use-after-free|af_unix|unix_scm_to_skb'
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
SentinelOne Singularity AI EDR
Apply the latest system updates on Android devices and upgrade the Linux kernel on server environments immediately.

Block Kernel Privilege Escalation & Ransomware Payloads Before You Can Reboot

Protect unpatched Windows, Linux, and macOS workloads against in-memory exploitation and lateral movement with autonomous EDR.

100% MITRE ATT&CK Detection · 1-Click Rollback

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

A Use-After-Free (UAF) vulnerability exists in the unix_scm_to_skb function of net/unix/af_unix.c in the Linux kernel. The root cause is a race condition between the garbage collection process handling inflight socket file descriptors and the concurrent transmission of file descriptors via AF_UNIX sockets. This synchronization failure allows an attacker to reference a socket object after it has been freed.

2. Exploitation Mechanics & Attack Scenario

An attacker can trigger this vulnerability by spawning multiple threads to send file descriptors via SCM_RIGHTS over AF_UNIX sockets and concurrently closing them to trigger garbage collection. If the garbage collector decrements the reference count and frees the socket while unix_scm_to_skb is still processing the socket buffer (sk_buff), a Use-After-Free state is achieved. This can be exploited locally to execute arbitrary code in kernel space without user interaction.

3. Infrastructure & Business Impact

This vulnerability is actively exploited in the wild and is listed in the CISA KEV catalog. Successful exploitation allows a local attacker to bypass sandbox boundaries and escalate privileges to System execution level, compromising the integrity and confidentiality of the entire operating system.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2021-0920)

FAQ

Q1. How critical is CVE-2021-0920 and is it actively exploited in the wild?

CVE-2021-0920 is rated CVSS 6.4 (MEDIUM) with a 30-day EPSS exploitation probability of 0.9%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2021-0920?

Primary impacted vendors include google, linux across android, linux_kernel. Scope summary: Android Kernel and Linux Kernel versions prior to the November 2021 security updates

Q3. What temporary mitigations or workarounds exist for CVE-2021-0920 before patching?

[Mitigation] Apply the Android November 2021 security patch or update to the latest upstream Linux kernel version Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2021-0920

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (google)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2021-0920 Linux Kernel & Android af_unix.c Use-After-Free Local Privilege Escalation Vulnerability (CVE-2021-0920) (CVSS 6.4) - Patch & Workaround | CVE Pulse