Race condition in Snapd - CVE-2022-3328
Published: December 1, 2022 / Updated: December 15, 2022
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
Debian Linux
Fedora
Ubuntu
snapd (Ubuntu package)
snapd (Debian package)
snapd
How to mitigate CVE-2022-3328
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