Description
Using the TIOCLINUX ioctl request, a malicious snap could inject contents into the input of the controlling terminal which could allow it to cause arbitrary commands to be executed outside of the snap sandbox after the snap exits. 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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Canonical | snapd | — | 2.59.5 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | snapd | 2.59.5-1 | — |
| Debian 13 | snapd | 2.59.5-1 | — |
| Debian 12 | snapd | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | snapd | 2.58+22.04.1 | USN-6125-1 |
| Ubuntu 20.04 LTS | snapd | 2.58+20.04.1 | USN-6125-1 |
| Ubuntu 18.04 LTS | snapd | 2.58+18.04.1 | USN-6125-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | snapd | 2.54.3+16.04.0ubuntu0.1~esm6 | USN-6125-1 |
Advisories 2
- USN-6125-1 snapd vulnerability Ubuntu Security Notices (USN) · Jun 25, 2026
- WID-SEC-2023-1329 Canonical Snap: Schwachstelle ermöglicht Umgehen von Sicherheitsvorkehrungen BSI CERT-Bund (WID) · May 30, 2023
References
- https://ubuntu.com/security/notices/USN-6125-1 vendor-advisory
- https://github.com/snapcore/snapd/pull/12849 issue-tracking
- https://marc.info/?l=oss-security&m=167879021709955&w=2 mailing-list
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-1523 issue-tracking