gimp/app/xcf
Shmuel H 6d804bf9ae Bug 767873 - (CVE-2016-4994) Multiple Use-After-Free when parsing...
...XCF channel and layer properties

The properties PROP_ACTIVE_LAYER, PROP_FLOATING_SELECTION,
PROP_ACTIVE_CHANNEL saves the current object pointer the @info
structure. Others like PROP_SELECTION (for channel) and
PROP_GROUP_ITEM (for layer) will delete the current object and create
a new object, leaving the pointers in @info invalid (dangling).

Therefore, if a property from the first type will come before the
second, the result will be an UaF in the last lines of xcf_load_image
(when it actually using the pointers from @info).

I wasn't able to exploit this bug because that
g_object_instance->c_class gets cleared by the last g_object_unref and
GIMP_IS_{LAYER,CHANNEL} detects that and return FALSE.
2016-06-22 12:47:13 +02:00
..
.gitignore
Makefile.am */Makefile.am: merge INCLUDES into AM_CPPFLAGS 2013-06-05 20:48:37 +02:00
xcf-load.c Bug 767873 - (CVE-2016-4994) Multiple Use-After-Free when parsing... 2016-06-22 12:47:13 +02:00
xcf-load.h
xcf-private.h Bug 756678 - Layer opacities change upon saving and reopening an xcf file 2015-10-16 21:59:11 +02:00
xcf-read.c app: port XCF loading/saving to GIO 2013-10-08 21:22:14 +02:00
xcf-read.h app: port XCF loading/saving to GIO 2013-10-08 21:22:14 +02:00
xcf-save.c app: add a "custom" guide concept. 2016-02-02 21:15:13 +01:00
xcf-save.h app: move the XCF version logic to gimpimage.[ch] 2014-09-27 20:38:43 +02:00
xcf-seek.c app: remove xcf_seek_end(), it's unused, and should not be used any longer 2014-10-15 23:21:34 +02:00
xcf-seek.h app: remove xcf_seek_end(), it's unused, and should not be used any longer 2014-10-15 23:21:34 +02:00
xcf-write.c Bug 738329 - xcf_seek_pos() can cause unexpected OS behavior 2014-10-17 19:12:05 +02:00
xcf-write.h Bug 738329 - xcf_seek_pos() can cause unexpected OS behavior 2014-10-17 19:12:05 +02:00
xcf.c app: remove gimp_image_set_filename() 2015-07-13 22:43:22 +02:00
xcf.h