8.2high
snapd could be made to bypass intended access restrictions through snap content interfaces and layout paths
- Severity
- 8.2high CVSS:3.1 by canonical
- Exploit likelihood
- 0.44% (higher than 39% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- canonical
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
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Canonical Ltd. snapd | from unspecified up to 2.54.2 | CVE List |
| canonical snapd | up to 2.54.2 | NVD |
| canonical ubuntu_linux | 18.04, 20.04, 21.10 | NVD |
| fedoraproject fedora | 34, 35 | NVD |
All scores
| canonical | 8.2high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 4.6medium CVSS:2.0 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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
NVD (es)
snapd versión 2.54.2, no lleva a cabo una comprobación suficiente de la interfaz de contenido de snap y de las rutas de diseño, resultando en una posibilidad de que los snaps inyecten reglas de política de AppArmor arbitrarias por medio de declaraciones de interfaz de contenido y de diseño mal formadas y, por tanto, escapen al confinamiento estricto de snap. Corregido en snapd versiones 2.54.3+18.04, 2.54.3+20.04 y 2.54.3+21.10.1
References
| https://ubuntu.com/security/notices/USN-5292-1 | patch, vendor-advisory | |
| https://bugs.launchpad.net/snapd/+bug/1949368 | exploit, issue-tracking, third-party-advisory | |
| http://www.openwall.com/lists/oss-security/2022/02/18/2 | exploit, mailing-list, third-party-advisory | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3QTBN7LLZISXIA4KU4UKDR27Q5PXDS2U/ | vendor-advisory | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XCGHG6LJAVJJ72TMART6A7N4Z6MSTGI7/ | vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-4120 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-4120 changed 2026-06-17 | Public domain |