Summary
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.
Fixed packages 4
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu · 18.04 LTS 18.04:LTS | snapd | 2.58+18.04.1 |
| Ubuntu · 20.04 LTS 20.04:LTS | snapd | 2.58+20.04.1 |
| Ubuntu · 22.04 LTS 22.04:LTS | snapd | 2.58+22.04.1 |
| Ubuntu · Pro 16.04 LTS Pro:16.04:LTS | snapd | 2.54.3+16.04.0ubuntu0.1~esm6 |
Vulnerabilities 1
-
Critical 10.0
Using the TIOCLINUX ioctl request, a malicious snap could inject contents into the input of the controlling terminal wh…
References
-
report
https://ubuntu.com/security/CVE-2023-1523