Bugzilla – Full Text Bug Listing |
Summary: | VUL-0: CVE-2005-3186: gdk-pixbuf: XPM buffer overflow | ||
---|---|---|---|
Product: | [Novell Products] SUSE Security Incidents | Reporter: | Thomas Biege <thomas> |
Component: | Incidents | Assignee: | Security Team bot <security-team> |
Status: | RESOLVED FIXED | QA Contact: | Security Team bot <security-team> |
Severity: | Major | ||
Priority: | P5 - None | CC: | federico, nadvornik, patch-request, sbrabec, security-team |
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | Other | ||
Whiteboard: | CVE-2005-3186: CVSS v2 Base Score: 7.5 (AV:N/AC:L/Au:N/C:P/I:P/A:P) | ||
Found By: | Other | Services Priority: | |
Business Priority: | Blocker: | --- | |
Marketing QA Status: | --- | IT Deployment: | --- |
Attachments: |
fix for w*h*c overflow
fix for endless loop. also needed in gtk2. |
Description
Thomas Biege
2005-10-20 07:28:10 UTC
Comparing new code in gtk/gdk-pixbif and old code in gtk-pixbuf from GTK1, many header checks are missing (including this one): GTK2 has: No XPM header found Invalid XPM header XPM file has image width <= 0 XPM file has image height <= 0 XPM has invalid number of chars per pixel XPM file has invalid number of colors GTK1 has: No XPM header found XPM has more than 31 chars per pixel. Should I will backport all these checks? In older versions of gtk2 also some checks are missings (e. g. Invalid XPM header in 9.2 and older). Sounds right to me. Submitted fixes for GTK2: gtk2-sles8-all gtk2-sles8-slec-all gtk2-stable-all gtk2-10.0-all gtk2-9.0-all gtk2-9.1-all gtk2-9.2-all gtk2-9.3-all Will continue with GTK1 gdk-pixbuf backporting. Thanks for doing the backport, Stanislav :) Are the loaders very different in gdk-pixbuf-1? I really don't remember at this point. Matthias Clasen has told me that he'll do a GTK+ release around the deadline for the advisory (Nov 3); it will have the patch in there. To Federico: No. loaders are similar. And oldest gtk2 don't support x_hot, y_hot - I have removed them from sscanf and the check. I will let you know after submit to verify patches. Maintenance-Tracker-2655 It looks, that gdk-pixbuf in 9.2, 9.3 and 10.0 has not fix for security bug 59100 (I don't have access to this bug). Patches submitted for sles8, 9.0, 9.1, 9.2, 9.3, 10.0. For 9.2, 9.3, 10.0 altogether with fix of bug 59100. Federico: You can verify my backports in /work/src/done/*/gdk-pixbuf Please also submit a gtk2 version for SLES9-SLD. Done. Thanks! not really a security problem but pixbuf runs into an endless loop when trying to load ~lnussel/Export/pixbuf/q3-loop.xpm man, io-xpm in gdk-pixbuf lacks the most basic check of all. It doesn't check whether width*height*depth overflows. There is just a pixels = malloc (w * h * 4); gtk2 has the checks in gdk_pixbuf_new which is used instead of directly calling malloc I will be on vacation until Monday. Created attachment 55708 [details]
fix for w*h*c overflow
Created attachment 55709 [details]
fix for endless loop. also needed in gtk2.
CVE-2005-2975 gdk-pixbuf xpm too many colors DoS CVE-2005-2976 gdk-pixbuf xpm integer overflow w*h*c CRD remains Nov 3rd. Please provide new packages. Who is responsible for this as long as Stansilav is on vacation? Please integrate the new patches and resubmit packages, thanks. Ok, thanks. Note that the issue is still under embargo so please hold back packages for STABLE for now. Packages are resubmitted. What's with gtk2? Comment #17 seems to indicate that it has to be resubmitted as well. yes. gtk2 is only a endless loop left but since others are going to patch it and gtk2 was not in qa yet I'd prefer if we patch it as well. CRD moved to Nov 15. gtk2 packages are submitted too. thanks! gtk2 update packages with Oct 31 fix are missing for SLEC and NLD (sles8-slec-i386,sles9-sld-i386,sles9-sld-x86_64) packages for SLEC and NLD submitted, sorry. packages tested, release tomorrow packages approved Updated packages submitted for STABLE and PLUS. CVE-2005-3186: CVSS v2 Base Score: 7.5 (AV:N/AC:L/Au:N/C:P/I:P/A:P) |