TIOCLINUX can send commands outside sandbox if running on a virtual console
Description
Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. Versions prior to 1.10.8, 1.12.8, 1.14.4, and 1.15.4 contain a vulnerability similar to CVE-2017-5226, but using the TIOCLINUX ioctl command instead of TIOCSTI. 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. 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. A patch is available in versions 1.10.8, 1.12.8, 1.14.4, and 1.15.4. As a workaround, don't run Flatpak on a Linux virtual console. Flatpak is primarily designed to be used in a Wayland or X11 graphical environment.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
25- osv-coords23 versionspkg:rpm/almalinux/flatpakpkg:rpm/almalinux/flatpak-develpkg:rpm/almalinux/flatpak-libspkg:rpm/almalinux/flatpak-selinuxpkg:rpm/almalinux/flatpak-session-helperpkg:rpm/opensuse/flatpak&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/flatpak&distro=openSUSE%20Tumbleweedpkg:rpm/suse/flatpak&distro=SUSE%20Enterprise%20Storage%207pkg:rpm/suse/flatpak&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/flatpak&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/flatpak&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/flatpak&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOSpkg:rpm/suse/flatpak&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/flatpak&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP4pkg:rpm/suse/flatpak&distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP3pkg:rpm/suse/flatpak&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/flatpak&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/flatpak&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/flatpak&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/flatpak&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/flatpak&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/flatpak&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/flatpak&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3
< 1.12.8-1.el9+ 22 more
- (no CPE)range: < 1.12.8-1.el9
- (no CPE)range: < 1.12.8-1.el9
- (no CPE)range: < 1.12.8-1.el9
- (no CPE)range: < 1.12.8-1.el9
- (no CPE)range: < 1.12.8-1.el9
- (no CPE)range: < 1.12.8-150400.3.3.1
- (no CPE)range: < 1.14.4-1.1
- (no CPE)range: < 1.10.8-150200.4.15.1
- (no CPE)range: < 1.10.8-150200.4.15.1
- (no CPE)range: < 1.2.3-150100.4.11.1
- (no CPE)range: < 1.10.8-150200.4.15.1
- (no CPE)range: < 1.10.8-150200.4.15.1
- (no CPE)range: < 1.10.8-150200.4.15.1
- (no CPE)range: < 1.12.8-150400.3.3.1
- (no CPE)range: < 1.10.8-150200.4.15.1
- (no CPE)range: < 1.4.2-3.3.1
- (no CPE)range: < 1.2.3-150100.4.11.1
- (no CPE)range: < 1.10.8-150200.4.15.1
- (no CPE)range: < 1.10.8-150200.4.15.1
- (no CPE)range: < 1.4.2-3.3.1
- (no CPE)range: < 1.2.3-150100.4.11.1
- (no CPE)range: < 1.10.8-150200.4.15.1
- (no CPE)range: < 1.10.8-150200.4.15.1
Patches
Vulnerability mechanics
References
4- github.com/flatpak/flatpak/commit/8e63de9a7d3124f91140fc74f8ca9ed73ed53be9mitrex_refsource_MISC
- github.com/flatpak/flatpak/security/advisories/GHSA-7qpw-3vjv-xrqpmitrex_refsource_CONFIRM
- marc.infomitrex_refsource_MISC
- security.gentoo.org/glsa/202312-12mitre
News mentions
0No linked articles in our index yet.