Race condition in Snapd - CVE-2022-3328

 

Race condition in Snapd - CVE-2022-3328

Published: December 1, 2022 / Updated: December 15, 2022


Vulnerability identifier: #VU69767
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:U/U:Clear
CVE-ID: CVE-2022-3328
CWE-ID: CWE-362
Exploitation vector: Local access
Exploit availability: No public exploit 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 within the must_mkdir_and_open_with_perms() function in the
snapd snap-confine binary when preparing the private /tmp mount for a
snap. A local user can exploit the race and gain unauthorized access to sensitive information and escalate privileges on the system.

Note, the vulnerability is caused by an insufficient fix for #VU60743 (CVE-2021-44731).


How to mitigate CVE-2022-3328

Install updates from vendor's website.

Sources