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: 8.5 [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]
CVE-ID: CVE-2022-3328
CWE-ID: CWE-362
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

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).


Affected software

Snapd
Debian Linux
Fedora
Ubuntu
snapd (Ubuntu package)
snapd (Debian package)
snapd

How to mitigate CVE-2022-3328

Install updates from vendor's website.

Snapd - update to 2.57.6
snapd (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2.57.5+18.04ubuntu0.1, 2.57.5+20.04ubuntu0.1, 2.57.5+22.04ubuntu0.1, 2.57.5+22.10ubuntu0.1
snapd (Debian package) - update to 2.49-1+deb11u2
snapd - addressed in versions 2.57.6-1.el7, 2.57.6-1.el8, 2.57.6-1.el9, 2.57.6-1.fc36, 2.57.6-1.fc37

External References

Related Security Bulletins