CVE-2021-4120 snapd could be made to bypass intended access restrictions through snap content interfaces and layout paths
Attackers can bypass snap confinement restrictions by injecting arbitrary AppArmor rules, enabling privilege escalation and code execution on Linux systems.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-4120?
CVE-2021-4120 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 17 Feb 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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
Weakness: CWE-20
Which versions are affected by CVE-2021-4120?
It affects 3 products.
Products include Canonical Snapd, Canonical Ubuntu Linux, Fedoraproject Fedora.
How do I fix CVE-2021-4120?
Upgrade to a fixed version.
Is CVE-2021-4120 being exploited?
There is no known exploitation of CVE-2021-4120 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as DEBIAN-CVE-2021-4120, GHSA-hfvx-54vj-h9wq, UBUNTU-CVE-2021-4120.