Microsoft Windows MJPEG Codec Multiple Overflows

Notification Type: IBM Internet Security Systems Protection Advisory
Notification Date: June 10, 2008
Notification Version: 1.0
   
Name: Microsoft Windows MJPEG Codec Multiple Overflows
Public disclosure/
In the wild date:
June 10, 2008 (vuln disclosure)
Aliases: MS08-033
CVE: CVE-2008-0011
Description:

The Microsoft MJPEG codec is vulnerable to multiple stack-based buffer overflows when parsing specially crafted files. A remote attacker could overflow the buffer and execute arbitary code within the context of the user viewing the malicious file.

Discoverer: Mark Dowd of IBM X-Force

 

ISS Coverage

Product Content Version
Proventia Network IDS
Proventia Network IPS
Proventia Network MFS
Proventia Server (Linux)
RealSecure Network
RealSecure Server Sensor
28.010
Proventia Desktop
Proventia Server IPS (Windows)
2140
Propagation Techniques ISS Protection Available

remote exploit

RIFF_Codec_Overflow

Jan 08, 2008

Detailed Description

Business Impact: This codec is a component of Microsoft Media Player, found in all modern Microsoft operating systems, including Microsoft Windows Vista.  Compromise of machines using affected versions of this codec may lead to exposure of confidential information, loss of productivity, and further compromise. An attacker may need to entice a user to perform an operation to trigger this vulnerability.  These operations include: visiting a web page, browsing either a local or remote directory containing the malicious file, causing an application using an embedded version of Microsoft Media Player to play or preview the file, and opening a specially crafted Microsoft Office or media file. Successful exploitation grants an attacker the privileges of the user performing the action.
CVSS Base Score: 9.3
  Access Vector: Network
Access Complexity: Medium
Authentication: None
Confidentiality Impact: Complete
Integrity Impact: Complete
Availability Impact: Complete
Adjusted Temporal Score: 6.9
  Exploitability: Unproven
Remediation Level: Official-Fix
Report Confidence: Confirmed
Affected Products: For a full list of affected versions, see references below.
Technical Description:

These vulnerabilities are invoked when specially-crafted MJPEG data is encountered in either an AVI or ASF data file (and possibly others). Specifically, an output buffer is allocated based on the reported size and width of the image as specified by the MJPEG stream format block. This format block is read straight from the media file and is lightly checked for validity. The JPEG stream is then interpreted by the codec including the JPEG headers. These JPEG headers can indicate a completely different size and width than that indicated in the format block, and this second set of values from the JPEG header is used to determine how much data is actually read in to the allocated buffer. Thus, by making the values in the JPEG header larger than those indicated in the format block, a heap overflow can be triggered.

In addition, scan lines from the JPEG image are read into the buffer in reverse. If the pointer into the allocated buffer decrements below the beginning of the buffer, this condition is detected, and the rest of the JPEG scanlines are read into a stack buffer. Since the stack buffer is a fixed size and the scan line can be arbitrarily larger, a stack overflow can also be triggered.

Remediation:

Patches are available for this issue. See References for details.

References

XFDB: http://xforce.iss.net/xforce/xfdb/39052
Microsoft: http://www.microsoft.com/technet/security/bulletin/ms08-033.mspx

Revision History

1.0 Initial publication.


About IBM Internet Security Systems
IBM Internet Security Systems is the trusted security advisor to thousands of the world's leading businesses and governments, providing pre-emptive protection for networks, desktops and servers. An established leader in security since 1994, the IBM Proventia® integrated security platform is designed to automatically protect against both known and unknown threats, helping to keep networks up and running and shielding customers from online attacks before they impact business assets. IBM Internet Security Systems products and services are based on the proactive security intelligence of its X-Force® research and development team – the unequivocal world authority in vulnerability and threat research. The Internet Security Systems product line is also complemented by comprehensive Managed Security Services and Professional Security Services. For more information, visit the Internet Security Systems Web site at www.iss.net or call 800-776-2362.