Fwd: CESA-2004-004: qt
Archaic <[email protected]> Thu, 19 Aug 2004 20:05:55 -0600
| Newsgroups | gmane.linux.lfs.security |
|---|---|
| Message-ID | <[email protected]> |
----- Forwarded message from [email protected] ----- To: [email protected] From: [email protected] Date: Thu, 19 Aug 2004 00:35:39 +0100 (BST) Subject: CESA-2004-004: qt CESA-2004-004 - rev 3 http://scary.beasts.org/security/CESA-2004-004.txt qt 3.3.2 BMP parser heap overflow error ======================================= Programs: qt, and any programs which use qt to decode BMP files. For example, KDE (including konqueror). Severity: Possible compromise of account used to browse malicious BMP files. CAN identifier(s): CAN-2004-0691 This advisory notes a code flaw discovered by inspection of the qt code. The specific version of qt discussed is v3.3.2. qt-3.3.3 has already been released and it contains a fix for this issue. Flaw 1. Heap-based overflow in read_dib (qimage.cpp). The handling of 8-bit RLE encoded BMP files is faulty. Interestingly, the 4-bit RLE encoding handling seems to have the required safety checks. a) User supplied length used to read into heap buffer without adequate bounds checking: default: // absolute mode if ( d->readBlock( (char *)p, b ) != b ) b) User supplied length used to memset() a piece of heap buffer without adequate bounds checking: } else { // encoded mode memset( p, d->getch(), b ); // repeat pixel c) User supplied delta pixel co-ordinates used without range checking: case 2: // delta (jump) x += d->getch(); y += d->getch(); p = line[h-y-1] + x; Demo BMP: http://scary.beasts.org/misc/bad.bmp (flaw 1a). CESA-2004-004 - rev 3 Chris Evans [email protected] [Advertisement: I am interested in moving into a security related field full-time. E-mail me to discuss.] ----- End forwarded message ----- -- Archaic The people cannot delegate to government the power to do anything which would be unlawful for them to do themselves. - John Locke, "A Treatise Concerning Civil Government" -- http://linuxfromscratch.org/mailman/listinfo/lfs-security FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page