CVE-2021-44731 in Canonical Ubuntu Linux and 3 more products
A race condition existed in the snapd 2.54.2 snap-confine binary when preparing a private mount namespace for a snap. This could allow a local attacker to gain root privileges by bind-mounting their own contents inside the snap's private mount namespace and causing snap-confine to execute arbitrary code and hence ga...
Affects 4 products from 3 vendors. Facts below cite their sources.
Requires local access, high complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Canonical | Ubuntu Linux | 18.04 20.04 21.10 |
| Canonical | Snapd | ≤ 2.54.2 |
| Debian | Debian Linux | 10.0 11.0 |
| Fedoraproject | Fedora | 34 35 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
A race condition existed in the snapd 2.54.2 snap-confine binary when preparing a private mount namespace for a snap. This could allow a local attacker to gain root privileges by bind-mounting their own contents inside the snap's private mount namespace and causing snap-confine to execute arbitrary code and hence gain privilege escalation. Fixed in snapd versions 2.54.3+18.04, 2.54.3+20.04 and 2.54.3+21.10.1
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-44731 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-070441-H |
| CVSS vector | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| Published | 2022-02-17 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-362: Race Condition
Software behavior depends on event timing that is not enforced, allowing attackers to exploit the timing window.
Related attack patterns (CAPEC)
CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions via CWE-362
CAPEC-26 Leveraging Race Conditions via CWE-362
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A race condition in the snapd 2.54.2 snap-confine binary allows local attackers to gain root privileges through bind-mounting and executing arbitrary code.
The vulnerability exists in the snap-confine binary when preparing a private mount namespace for a snap. An attacker can exploit this by bind-mounting their own contents into the snap's namespace, leading to privilege escalation.
Questions
What is CVE-2021-44731?
A race condition in the snapd 2.54.2 snap-confine binary allows local attackers to gain root privileges through bind-mounting and executing arbitrary code.
What is the CVSS score for CVE-2021-44731?
CVE-2021-44731 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H. EPSS: 1.0%.
Is CVE-2021-44731 actively exploited?
No confirmed active exploitation of CVE-2021-44731 as of 2026-09-25.
How do I remediate CVE-2021-44731?
Priority: HIGH.
What systems are affected by CVE-2021-44731?
CVE-2021-44731 affects Canonical Ubuntu Linux, Snapd; Debian Debian Linux; Fedoraproject Fedora.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Ubuntu Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.