Skip to content
OpenAdvisories
High · 8.2 CVE-2021-4120 EUVD-2021-33996GHSA-hfvx-54vj-h9wq

snapd could be made to bypass intended access restrictions through snap content interfaces and layout paths

Published Feb 17, 2022 · Updated Aug 3, 2024 · 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 products

VendorProductAffectedFixed
Canonical snapd unspecified – ≤ 2.54.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 snapd 2.54.3-1 —
Debian 13 snapd 2.54.3-1 —
Debian 12 snapd 2.54.3-1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS snapd 2.54.3+20.04.1 USN-5292-2, USN-5292-1
Ubuntu 18.04 LTS snapd 2.54.3+18.04 USN-5292-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS snapd 2.54.3+16.04~esm2 USN-5292-3
Ubuntu Pro 14.04 LTS snapd 2.54.3+14.04~esm1 USN-5292-3

Advisories 3

References