cve.bz

CVE-2021-44731 Race Condition

7.8 highExploit referenceEPSS 1.0%Fix available

High (7.8). EPSS 1.0% estimated probability of exploitation activity in the next 30 days.

On this page
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

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 62nd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-44731 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-44731?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-44731?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-44731 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Canonical Ltd. snapdthrough 2.54.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10snapd2.37.4-1+deb10u1DSA-5080-1
Debian11snapd2.49-1+deb11u1DSA-5080-1
Debian12, 13, 14snapd2.54.3-1DEBIAN-CVE-2021-44731
Ubuntu18.04:LTSsnapd2.54.3+18.04UBUNTU-CVE-2021-44731 USN-5292-1
Ubuntu20.04:LTSsnapd2.54.3+20.04.1UBUNTU-CVE-2021-44731 USN-5292-1 USN-5292-2
UbuntuPro:14.04:LTSsnapd2.54.3+14.04~esm1UBUNTU-CVE-2021-44731 USN-5292-3
UbuntuPro:16.04:LTSsnapd2.54.3+16.04~esm2UBUNTU-CVE-2021-44731 USN-5292-3

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON