USN-6125-1: snapd vulnerability
31 May 2023
An intended access restriction in snapd could be bypassed by strict mode snaps.
- snapd - Daemon and tooling that enable snap packages
It was discovered that the snap sandbox did not restrict the use of the
ioctl system call with a TIOCLINUX request. This could be exploited by a
malicious snap to inject commands into the controlling terminal which would
then be executed outside of the snap sandbox once the snap had exited. This
could allow an attacker to execute arbitrary commands outside of the
confined snap sandbox. Note: graphical terminal emulators like xterm,
gnome-terminal and others are not affected - this can only be exploited
when snaps are run on a virtual console.
The problem can be corrected by updating your system to the following package versions:
In general, a standard system update will make all the necessary changes.