DescriptionUsing 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
snapd (PTS)buster2.37.4-1+deb10u1vulnerable
buster (security)2.37.4-1+deb10u3vulnerable
bullseye (security), bullseye2.49-1+deb11u2vulnerable
sid, trixie2.62-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs


[bookworm] - snapd <no-dsa> (Minor issue)
[bullseye] - snapd <no-dsa> (Minor issue)
[buster] - snapd <no-dsa> (Minor issue)
Preparation: (2.59.5)
Fixed by: (2.59.5)
Fixed by: (2.59.5)
Tests: (2.59.5)
Tests: (2.59.5)
Tests: (2.59.5)
Tests: (2.59.5)
Tests: (2.59.5)

Search for package or bug name: Reporting problems