Vulnerabilities · 2021 · Canonical
CVE-2021-44731
Canonical Snapd vulnerability
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
Affected products
Snapd, Ubuntu Linux, Fedora, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Canonical Snapd runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- ubuntu.com/security/notices/USN-5292-1 · Patch
- packetstormsecurity.com/files/170176/snap-confine-must_mkdir_and_open_with_perms-Race-Cond · Exploit
- seclists.org/fulldisclosure/2022/Dec/4 · Exploit
- www.openwall.com/lists/oss-security/2022/02/18/2 · Third Party Advisory
- www.openwall.com/lists/oss-security/2022/02/23/1 · Exploit
- www.openwall.com/lists/oss-security/2022/02/23/2 · Third Party Advisory
- www.openwall.com/lists/oss-security/2022/11/30/2 · Exploit
- www.debian.org/security/2022/dsa-5080 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-44731
- cve.org/CVERecord?id=CVE-2021-44731
More vulnerabilities in Canonical products
CVE-2025-54293CVE-2025-54292CVE-2025-54291CVE-2025-54290CVE-2025-54289CVE-2025-54288CVE-2025-54286CVE-2025-53513All 4,095
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.