Bug 171002

Summary: CVE-2005-3109 HFS oops
Product: Red Hat Enterprise Linux 4 Reporter: Mark J. Cox <mjc>
Component: kernelAssignee: Peter Staubach <staubach>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: jbaron
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20050501,source=cve
Fixed In Version: RHSA-2006-0101 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-01-17 08:34:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 168429    
Attachments:
Description Flags
Proposed patch
none
Proposed patch none

Description Mark J. Cox 2005-10-17 10:07:39 UTC
The CVE description of this issue is "The HFS and HFS+ (hfsplus) modules in
Linux 2.6 allows attackers to cause a denial of service (oops) by using hfsplus
to mount a filesystem that is not hfsplus."  

However this is actually two issues as can be seen from the commit:
http://www.kernel.org/git/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=945b092011c6af71a0107be96e119c8c08776f3f

The first is that in certain error cases for hfs and hfsplus there is a failure
to free kernel structure.   The second is a hfsplus flaw that could lead to a crash.

Comment 3 Peter Staubach 2005-11-08 19:41:20 UTC
Created attachment 120823 [details]
Proposed patch

Comment 4 Peter Staubach 2005-11-08 20:54:39 UTC
Created attachment 120827 [details]
Proposed patch

Comment 5 Peter Staubach 2005-11-08 20:56:14 UTC
There turns out be a memory leak in the hfsplus failure path as well, so I
fixed that too.

The changes for all of these fixes mimic those from upstream.

Comment 6 Linda Wang 2005-11-21 22:57:50 UTC
commited in -22.23

Comment 9 Red Hat Bugzilla 2006-01-17 08:34:30 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2006-0101.html