CVE-2021-3492

HIGH

Ubuntu Linux < 18.04 and < 20.10 - Use-After-Free in Shiftfs

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2021-3492. PoCs published by synacktiv.

AI-analyzed exploit summary This repository contains a functional exploit for CVE-2021-3492, a double-free vulnerability in the Linux kernel's shiftfs module. The exploit leverages BTRFS ioctl operations and userfaultfd for synchronization to achieve arbitrary read/write in kernel memory, ultimately leading to privilege escalation.

Description

Shiftfs, an out-of-tree stacking file system included in Ubuntu Linux kernels, did not properly handle faults occurring during copy_from_user() correctly. These could lead to either a double-free situation or memory not being freed at all. An attacker could use this to cause a denial of service (kernel memory exhaustion) or gain privileges via executing arbitrary code. AKA ZDI-CAN-13562.

Exploits (1)

nomisec WORKING POC 42 stars
by synacktiv · poc
https://github.com/synacktiv/CVE-2021-3492

This repository contains a functional exploit for CVE-2021-3492, a double-free vulnerability in the Linux kernel's shiftfs module. The exploit leverages BTRFS ioctl operations and userfaultfd for synchronization to achieve arbitrary read/write in kernel memory, ultimately leading to privilege escalation.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Complex
Reliability
Racy
Target: Linux kernel (Ubuntu 20.10, 5.8.0-xx-generic)
No auth needed
Prerequisites: Linux kernel with shiftfs module loaded · BTRFS filesystem support · User namespace and mount namespace access
devstral-2 · analyzed Feb 18, 2026 Full analysis →

References (6)

Core 6
Core References
Mailing List, Third Party Advisory x_refsource_misc
https://www.openwall.com/lists/oss-security/2021/04/16/2
Vendor Advisory x_refsource_misc
https://ubuntu.com/security/notices/USN-4917-1
Third Party Advisory, VDB Entry x_refsource_misc
https://www.zerodayinitiative.com/advisories/ZDI-21-422/

Scores

CVSS v3 8.8
EPSS 0.0155
EPSS Percentile 71.7%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Details

CWE
CWE-415 CWE-401
Status published
Products (2)
canonical/ubuntu_linux < 18.04
canonical/ubuntu_linux < 20.10
Published Apr 17, 2021
Tracked Since Feb 18, 2026