Impact
If a Flatpak app is run on a Linux virtual console such as /dev/tty1
, it can copy text from the virtual console and paste it into the command buffer, from which the command might be run after the Flatpak app has exited. This is similar to CVE-2017-5226, but using the TIOCLINUX
ioctl command instead of TIOCSTI
.
Ordinary graphical terminal emulators like xterm, gnome-terminal and Konsole are unaffected. This vulnerability is specific to the Linux virtual consoles /dev/tty1
, /dev/tty2
and so on, which are not commonly used to run Flatpak apps.
Patches
8e63de9
See the flatpak-1.14.x
, flatpak-1.12.x
, flatpak-1.10.x
branches for backports of this change to older codebases.
Workarounds
Don't run Flatpak on a Linux virtual console. Flatpak is primarily designed to be used in a Wayland or X11 graphical environment.
References
https://marc.info/?l=oss-security&m=167879021709955&w=2
Impact
If a Flatpak app is run on a Linux virtual console such as
/dev/tty1
, it can copy text from the virtual console and paste it into the command buffer, from which the command might be run after the Flatpak app has exited. This is similar to CVE-2017-5226, but using theTIOCLINUX
ioctl command instead ofTIOCSTI
.Ordinary graphical terminal emulators like xterm, gnome-terminal and Konsole are unaffected. This vulnerability is specific to the Linux virtual consoles
/dev/tty1
,/dev/tty2
and so on, which are not commonly used to run Flatpak apps.Patches
8e63de9
See the
flatpak-1.14.x
,flatpak-1.12.x
,flatpak-1.10.x
branches for backports of this change to older codebases.Workarounds
Don't run Flatpak on a Linux virtual console. Flatpak is primarily designed to be used in a Wayland or X11 graphical environment.
References
https://marc.info/?l=oss-security&m=167879021709955&w=2