search menu icon-carat-right cmu-wordmark

CERT Coordination Center

Apple Mac OS X DMG UFS byte_swap_sbin() function Integer Overflow

Vulnerability Note VU#515792

Original Release Date: 2007-03-15 | Last Revised: 2007-03-15


The Apple Mac OS X byte_swap_sbin() function contains an integer overflow vulnerability, which may allow a remote, unauthenticated attacker to execute arbitrary code or cause a denial of service on a vulnerable system.


DMG files are disk images that can contain a variety of filesystems. Apple Mac OS X contains an integer overflow vulnerability in the byte_swap_bin() function in the UFS filesystem handling code.


By convincing a user to mount a specially-crafted DMG file, such as by viewing a web page with Safari, a remote, unauthenticated attacker may be able to execute code with the privileges of the user or cause a denial-of-service condition. Note that it is reported that it is unlikely that code execution can take place as a result of this vulnerability.


Apply an update

Apple has published Mac OS X 10.4.9 for Mac OS X 10.4 (Tiger) systems and Security Update 2007-003 for Mac OS X 10.3 (Panther) systems in response to this issue. See Apple Security Update 2007-003 for more details.

Do not open untrusted Apple disk images

Do not open unfamiliar or unexpected Apple disk images, particularly those hosted on web sites or delivered as email attachments. Please see Cyber Security Tip ST04-010.

Disable "Open 'safe' files after downloading" in Safari

Disable the option "Open 'safe' files after downloading" in Safari, as specified in the Securing Your Web Browser document. This will help prevent automatic exploitation of this and other vulnerabilities.

Vendor Information


Apple Computer, Inc. Affected

Updated:  March 15, 2007



Vendor Statement

We have not received a statement from the vendor.

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.


Please see Apple Security Update 2007-003 for more details.

If you have feedback, comments, or additional information about this vulnerability, please send us email.

CVSS Metrics

Group Score Vector



This vulnerability was publicly reported by LMH.

This document was written by Will Dormann.

Other Information

CVE IDs: CVE-2007-0299
Severity Metric: 7.01
Date Public: 2007-01-11
Date First Published: 2007-03-15
Date Last Updated: 2007-03-15 21:13 UTC
Document Revision: 10

Sponsored by CISA.