CVE-2021-4120 snapd could be made to bypass intended access restrictions through snap content interfaces and layout paths
HighCVSS 7.8
EPSS 0.44%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
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
Upgrade path
10 packages: 8 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Canonical snapd | <= 2.54.2 | after 2.54.2 | Fixed |
| debian/snapd(Debian 12) | < 2.54.3-1 | 2.54.3-1 | Fixed |
| debian/snapd(Debian 13) | < 2.54.3-1 | 2.54.3-1 | Fixed |
| debian/snapd(Debian 14) | < 2.54.3-1 | 2.54.3-1 | Fixed |
| ubuntu/snapd(Ubuntu 18.04) | < 2.54.3+18.04; = 2.28.5+17.10; = 2.29.4.1+18.04; = 2.29.4.2+18.04 +28 more | 2.54.3+18.04 | Fixed |
| ubuntu/snapd(Ubuntu 20.04) | < 2.54.3+20.04.1; = 2.41+19.10.1; = 2.42.1+20.04; = 2.43.3+git1.8109f8 +14 more | 2.54.3+20.04.1 | Fixed |
| ubuntu/snapd(Ubuntu Pro 14.04) | < 2.54.3+14.04~esm1; = 2.21~14.04.2; = 2.22.2~14.04; = 2.22.3~14.04 +15 more | 2.54.3+14.04~esm1 | Fixed |
| ubuntu/snapd(Ubuntu Pro 16.04) | < 2.54.3+16.04~esm2; = 1.9; = 1.9.1.1; = 1.9.2 +45 more | 2.54.3+16.04~esm2 | Fixed |
| Canonical Ubuntu Linux | = 18.04; = 20.04; = 21.10 | No fix listed | Versions listed |
| fedoraproject fedora | = 34; = 35 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/snapd(Debian:12) | < 2.54.3-1 | 2.54.3-1 |
| debian/snapd(Debian:13) | < 2.54.3-1 | 2.54.3-1 |
| debian/snapd(Debian:14) | < 2.54.3-1 | 2.54.3-1 |
| Canonical snapd | <= 2.54.2 | No fix listed |
| Canonical Ubuntu Linux | = 18.04 | No fix listed |
| Canonical Ubuntu Linux | = 20.04 | No fix listed |
| Canonical Ubuntu Linux | = 21.10 | No fix listed |
| fedoraproject fedora | = 34 | No fix listed |
| fedoraproject fedora | = 35 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:14.04) | < 2.54.3+14.04~esm1 | 2.54.3+14.04~esm1 |
| ubuntu/snapd(Ubuntu:Pro:14.04) | = 2.21~14.04.2 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:14.04) | = 2.22.2~14.04 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:14.04) | = 2.22.3~14.04 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:14.04) | = 2.22.6~14.04 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:14.04) | = 2.23.1~14.04 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:14.04) | = 2.24.1~14.04 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:14.04) | = 2.25~14.04 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:14.04) | = 2.26.10~14.04 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:14.04) | = 2.27.5~14.04 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:14.04) | = 2.28.5~14.04 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:14.04) | = 2.29.4.2~14.04 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:14.04) | = 2.32.3.2~14.04 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:14.04) | = 2.32.9~14.04 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:14.04) | = 2.33.1~14.04 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:14.04) | = 2.34.2~14.04 | No fix listed |
Show 102 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/snapd(Ubuntu:Pro:14.04) | = 2.34.2~14.04.1 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:14.04) | = 2.37.4~14.04.1 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:14.04) | = 2.38~14.04 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | < 2.54.3+16.04~esm2 | 2.54.3+16.04~esm2 |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 1.9 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 1.9.1.1 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 1.9.2 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.0 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.0.1 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.0.2 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.0.3 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.0.5 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.0.8 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.0.9 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.0.10 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.11+0.16.04 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.12+0.16.04 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.13 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.14.2~16.04 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.15.2ubuntu1 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.16ubuntu3 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.17.1ubuntu1 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.20.1ubuntu1 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.21 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.22.2 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.22.3 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.22.6 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.23.1 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.24.1 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.25 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.26.10 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.27.5 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.28.5 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.29.4.2 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.32.3.2 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.32.9 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.33.1ubuntu2 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.34.2 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.34.2ubuntu0.1 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.37.4 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.37.4ubuntu0.1 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.38 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.39.2 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.39.2ubuntu0.2 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.40 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.42.1 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.45.1 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.45.1ubuntu0.2 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.46.1 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.47.1 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.48 | No fix listed |
| ubuntu/snapd(Ubuntu:Pro:16.04) | = 2.48.3 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | < 2.54.3+18.04 | 2.54.3+18.04 |
| ubuntu/snapd(Ubuntu:18.04) | = 2.28.5+17.10 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.29.4.1+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.29.4.2+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.31.1+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.32+18.04~pre5 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.32+18.04~pre6 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.32+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.32.3.2+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.32.5+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.32.8+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.32.9+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.33.1+18.04ubuntu2 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.34.2+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.34.2+18.04.1 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.37.1+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.37.1.1+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.37.4+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.37.4+18.04.1 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.38+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.39.2+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.40+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.42.1+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.45.1+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.45.1+18.04.2 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.46.1+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.47.1+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.48+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.48.3+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.49.2+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.51.1+18.04 | No fix listed |
| ubuntu/snapd(Ubuntu:18.04) | = 2.54.2+18.04ubuntu1 | No fix listed |
| ubuntu/snapd(Ubuntu:20.04) | < 2.54.3+20.04.1 | 2.54.3+20.04.1 |
| ubuntu/snapd(Ubuntu:20.04) | = 2.41+19.10.1 | No fix listed |
| ubuntu/snapd(Ubuntu:20.04) | = 2.42.1+20.04 | No fix listed |
| ubuntu/snapd(Ubuntu:20.04) | = 2.43.3+git1.8109f8 | No fix listed |
| ubuntu/snapd(Ubuntu:20.04) | = 2.44~pre1+20.04 | No fix listed |
| ubuntu/snapd(Ubuntu:20.04) | = 2.44+20.04 | No fix listed |
| ubuntu/snapd(Ubuntu:20.04) | = 2.44.2+20.04 | No fix listed |
| ubuntu/snapd(Ubuntu:20.04) | = 2.44.3+20.04 | No fix listed |
| ubuntu/snapd(Ubuntu:20.04) | = 2.45.1+20.04 | No fix listed |
| ubuntu/snapd(Ubuntu:20.04) | = 2.45.1+20.04.2 | No fix listed |
| ubuntu/snapd(Ubuntu:20.04) | = 2.46.1+20.04 | No fix listed |
| ubuntu/snapd(Ubuntu:20.04) | = 2.47.1+20.04 | No fix listed |
| ubuntu/snapd(Ubuntu:20.04) | = 2.48+20.04 | No fix listed |
| ubuntu/snapd(Ubuntu:20.04) | = 2.48.3+20.04 | No fix listed |
| ubuntu/snapd(Ubuntu:20.04) | = 2.49.2+20.04 | No fix listed |
| ubuntu/snapd(Ubuntu:20.04) | = 2.51.1+20.04ubuntu2 | No fix listed |
| ubuntu/snapd(Ubuntu:20.04) | = 2.54.2+20.04ubuntu2 | No fix listed |
| ubuntu/snapd(Ubuntu:20.04) | = 2.54.3+20.04 | No fix listed |
References
- Debian Security Tracker CVE-2021-4120 vendor-advisory
- [oss-security] 20220218 CVE-2021-4120: Insufficient validation of snap content interface and layout paths exploit mailing-list third-party-advisory
- bugs.launchpad.net exploit issue-tracking third-party-advisory
- FEDORA-2022-82bea71e5a vendor-advisory
- FEDORA-2022-5df8b52ba4 vendor-advisory
- ubuntu.com patch vendor-advisory
- ubuntu.com issue-tracking
- www.openwall.com issue-tracking
- github.com issue-tracking
- www.cve.org issue-tracking
- ubuntu.com vendor-advisory
- ubuntu.com vendor-advisory