Activity log for bug #1797161

Date Who What changed Old value New value Message
2018-10-10 15:31:18 orbitcowboy bug added bug
2018-10-10 15:31:18 orbitcowboy attachment added Prepared XPM file. https://bugs.launchpad.net/bugs/1797161/+attachment/5199554/+files/eog_ctrl_mem.xpm
2018-10-10 20:46:06 orbitcowboy description Summary Loading a specially prepared (invalid) XPM file, an attacker is able to crash the whole system, since too much dynamic memory is allocated. Test environment $ eog --version GNOME Image Viewer 3.28.1 Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic Steps to reproduce 1) Open a terminal and start 'top' program to see the memory usage a program uses 2) Open a second terminal a) Execute: $ eog eog_ctrl_mem.xpm b) Observe how dynamic memory allocation increases by Eye of Gnome. Depending on the available resources, the system can crash. Note: If the system is crashing/swapping depends on the available physical memory and the amount of resources other applications already has allocated on the system. I have experimented in a virtual box and it was easy to crash by changing the with and height parameters in the XPM file. Are other programs affected and how to they behave? I have tested (GNU Image Manipulation Program version 2.8.22), which simply rejects the file with an error message and no additional memory is allocated. Error Message from Gimp "Opening 'eog_ctrl_mem.xpm' failed: X PixMap image plug-In could not open image" Potential vulnerability An attacker could prepare an invalid XPM-file (eog_ctrl_mem.xpm). In case user opens the file by double clicking, the system is able to crash due to the huge amount of memory allocated. Best regards Martin Ettl Summary Loading a specially crafted (invalid) XPM file, an attacker is able to crash the whole system, since too much dynamic memory is allocated. Test environment $ eog --version GNOME Image Viewer 3.28.1 Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic Steps to reproduce 1) Open a terminal and start the 'top' program to see the memory usage a program uses 2) Open a second terminal   a) Execute: $ eog eog_ctrl_mem.xpm   b) Observe how dynamic memory allocation increases by Eye of Gnome in terminal 1). Depending on the available resources, the system can crash. Note: If the system is crashing/swapping depends on the available physical memory and the amount of resources other applications already has allocated on the system. I have experimented in a virtual box and it was easy to crash by changing the with and height parameters in the XPM file. Are other programs affected and how they behave? I have tested (GNU Image Manipulation Program version 2.8.22), which simply rejects the file with an error message and no additional memory is allocated. Error Message from Gimp: "Opening 'eog_ctrl_mem.xpm' failed: X PixMap image plug-In could not open image" Potential vulnerability An attacker could prepare an invalid XPM-file (e.g. eog_ctrl_mem.xpm). In case the user opens the file by double clicking, the system is able to crash due to the huge amount of memory allocated. Since Eye of Gnome is the default viewer on Ubuntu this is likely. Best regards Martin Ettl
2018-10-10 22:28:40 Seth Arnold bug task added gdk-pixbuf (Ubuntu)
2019-03-07 18:45:17 Marc Deslauriers bug watch added https://gitlab.gnome.org/GNOME/gdk-pixbuf/issues/95
2019-03-07 18:45:17 Marc Deslauriers bug task added choreographics
2019-03-07 18:45:33 Marc Deslauriers affects choreographics gdk-pixbuf
2019-03-07 18:46:03 Marc Deslauriers information type Private Security Public Security
2019-03-07 18:46:04 Marc Deslauriers bug added subscriber Ubuntu Bugs
2019-03-07 20:18:08 Bug Watch Updater gdk-pixbuf: status Unknown New
2019-09-17 09:22:59 Marc Deslauriers eog (Ubuntu): status New Incomplete
2019-09-17 09:23:04 Marc Deslauriers eog (Ubuntu): status Incomplete Invalid
2019-09-17 09:23:15 Marc Deslauriers gdk-pixbuf (Ubuntu): status New Confirmed