Bug 547251 (CVE-2009-4307)

Summary: CVE-2009-4307 kernel: ext4: avoid divide by zero when trying to mount a corrupted file system
Product: [Other] Security Response Reporter: Eugene Teo (Security Response) <eteo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: arozansk, davej, dhoward, esandeen, jpirko, jskrabal, kmcmartin, lwang, mjc, tcallawa
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-12 20:18:36 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: 547252, 547253    
Bug Blocks:    
Attachments:
Description Flags
corrupted image for this issue none

Description Eugene Teo (Security Response) 2009-12-14 05:47:17 UTC
Description of problem:
ext4: avoid divide by zero when trying to mount a corrupted file system
    
If s_log_groups_per_flex is greater than 31, then groups_per_flex will overflow and cause a divide by zero error.  This can cause kernel BUG if such a file system is mounted.
    
Upstream commit: 
http://git.kernel.org/linus/503358ae01b70ce6909d19dd01287093f6b6271c

References:
http://bugzilla.kernel.org/show_bug.cgi?id=14287
http://secunia.com/advisories/37658

Comment 2 Eugene Teo (Security Response) 2009-12-14 05:50:19 UTC
Created attachment 378143 [details]
corrupted image for this issue

Comment 3 Aristeu Rozanski 2010-01-26 13:32:11 UTC
Patch present on the current RHEL6 git tree.

Comment 4 errata-xmlrpc 2010-03-30 06:49:08 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2010:0178 https://rhn.redhat.com/errata/RHSA-2010-0178.html

Comment 7 errata-xmlrpc 2010-04-27 12:46:11 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5.4.Z - Server Only

Via RHSA-2010:0380 https://rhn.redhat.com/errata/RHSA-2010-0380.html

Comment 10 Eugene Teo (Security Response) 2010-11-04 07:59:53 UTC
Statement:
The Linux kernel packages as shipped with Red Hat Enterprise Linux 3, 4 and Red Hat Enterprise MRG do not include support for EXT4, and therefore are not affected by this issue. It was addressed in Red Hat Enterprise Linux 5 via https://rhn.redhat.com/errata/RHSA-2010-0380.html.