Vulnerability CVE-2021-4120: Information

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

Severity: HIGH (7.8) Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Published: Feb. 18, 2022
Modified: Nov. 7, 2023
Error type identifier: CWE-20

Fixed packages

Package name
Branch
Fixed in version
Version from repository
Errata ID
Task #
State
snapdsisyphus2.54.3-alt12.61.3-alt1.1ALT-PU-2022-1345-1295710Fixed
snapdp102.54.3-alt12.56-alt1ALT-PU-2022-1765-1299035Fixed
snapdc10f12.54.3-alt12.56-alt1ALT-PU-2022-1765-1299035Fixed

References to Advisories, Solutions, and Tools

    1. Configuration 1

      cpe:2.3:a:canonical:snapd:*:*:*:*:*:*:*:*
      End including
      2.54.2

      Configuration 2

      cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*

      cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:*

      cpe:2.3:o:canonical:ubuntu_linux:21.10:*:*:*:*:*:*:*

      Configuration 3

      cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*

      cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*