Vulnerabilities · 2021 · Canonical
CVE-2021-4120
Canonical Snapd vulnerability
snapd 2.54.2 fails to perform sufficient validation of snap content interface and layout paths, resulting in the ability for snaps to inject arbitrary AppArmor policy rules via malformed content interface and layout declarations and hence escape strict snap confinement. 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. 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
- www.openwall.com/lists/oss-security/2022/02/18/2 · Exploit
- bugs.launchpad.net/snapd/+bug/1949368 · Exploit
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X
- nvd.nist.gov/vuln/detail/CVE-2021-4120
- cve.org/CVERecord?id=CVE-2021-4120
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.