# CVE-2021-3492: Ubuntu linux kernel shiftfs file system double free vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 1.54% (percentile 75, 2026-11-26)
- **CWE:** CWE-415, CWE-401
- **Published:** 2021-04-17T04:20:16.011Z
- **Modified:** 2026-06-17T04:05:12.033Z

## Who should check

- Anyone running Ubuntu Linux kernel \>= 5.8 kernel, \< 5.8.0-50.56; \>= 5.4 kernel, \< 5.4.0-72.80

## 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.

## Affected and fixed versions

- Ubuntu Linux kernel: \>= 5.8 kernel, \< 5.8.0-50.56; \>= 5.4 kernel, \< 5.4.0-72.80 (cvelist)

## Mitigation

- Upgrade Linux kernel to 5.4.0-72.80 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-3492. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-3492.md
Affected: Ubuntu Linux kernel >= 5.8 kernel, < 5.8.0-50.56; >= 5.4 kernel, < 5.4.0-72.80
Fixed in: Ubuntu Linux kernel 5.8.0-50.56, Ubuntu Linux kernel 5.4.0-72.80

Steps:
1. Search this machine and project for Ubuntu Linux kernel: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-3492 being exploited?

There is no confirmed exploitation: CVE-2021-3492 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.54% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-3492?

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-3492?

Ubuntu Linux kernel \>= 5.8 kernel, \< 5.8.0-50.56; \>= 5.4 kernel, \< 5.4.0-72.80.

### Is there a fix for CVE-2021-3492?

Yes. Fixed in Ubuntu Linux kernel 5.8.0-50.56, Ubuntu Linux kernel 5.4.0-72.80. Upgrade Linux kernel to 5.4.0-72.80 or later.

### How do I check if I'm affected by CVE-2021-3492?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://ubuntu.com/security/notices/USN-4917-1>
- patch: <https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/focal/commit/?id=8fee52ab9da87d82bc6de9ebb3480fff9b4d53e6>
- patch: <https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/focal/commit/?id=25c891a949bf918b59cbc6e4932015ba4c35c333>
- exploit: <http://packetstormsecurity.com/files/162614/Kernel-Live-Patch-Security-Notice-LSN-0077-1.html>
- other: <https://www.openwall.com/lists/oss-security/2021/04/16/2>
- other: <https://www.zerodayinitiative.com/advisories/ZDI-21-422/>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-3492>

HTML: <https://flawdb.com/CVE-2021-3492> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-3492>
