Race condition in Snapd - CVE-2021-44731

 

Race condition in Snapd - CVE-2021-44731

Published: February 21, 2022 / Updated: July 10, 2023


Vulnerability identifier: #VU60743
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Clear
CVE-ID: CVE-2021-44731
CWE-ID: CWE-362
Exploitation vector: Local access
Exploit availability: Public exploit is available
Vendor: snapcore
Affected software:
Snapd

Detailed vulnerability description

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a race condition in the snap-confine binary when preparing a private mount namespace for a snap.. A local user can  bind-mount their own contents inside the snap's private mount namespace and execute arbitrary code with root privileges.


How to mitigate CVE-2021-44731

Install updates from vendor's website.

Sources