Bug 487935 (CVE-2009-0746)

Summary: CVE-2009-0746 kernel: ext4: make_indexed_dir() missing validation
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: anton, dhoward, esandeen, jpirko, kseifried, lgoncalv, lwang, rwheeler
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: 2011-10-25 17:39:46 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: 487939, 487940    
Bug Blocks:    
Attachments:
Description Flags
corrupted image none

Description Eugene Teo (Security Response) 2009-03-01 15:11:27 UTC
Description of problem:
Name: CVE-2009-0746
Status: Candidate
URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0746
Final-Decision: 
Interim-Decision: 
Modified: 
Proposed: 
Assigned: 20090227
Category: 
Reference: CONFIRM:http://bugzilla.kernel.org/show_bug.cgi?id=12430
Reference: CONFIRM:http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e6b8bc09ba2075cd91fbffefcd2778b1a00bd76f
Reference: CONFIRM:http://kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.27.19
Reference: CONFIRM:http://kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.28.7
Reference: VUPEN:ADV-2009-0509
Reference: URL:http://www.vupen.com/english/advisories/2009/0509
Reference: XF:linux-kernel-makeindexeddir-ext4-dos(48872)
Reference: URL:http://xforce.iss.net/xforce/xfdb/48872

The make_indexed_dir function in fs/ext4/namei.c in the Linux kernel 2.6.27 before 2.6.27.19 and 2.6.28 before 2.6.28.7 does not validate a certain rec_len field, which allows local users to cause a denial of service (OOPS) by attempting to mount a crafted ext4 filesystem.

Comment 1 Eugene Teo (Security Response) 2009-03-01 15:45:06 UTC
Created attachment 333651 [details]
corrupted image

Steps to reproduce:
1. gunzip the attached filesystem image
2. mount hdb.30000241 /mnt -t ext4 -o loop,errors=continue
3. cd /mnt
4. find -xdev -print0 2>/dev/null |xargs -0 touch -- 2>/dev/null

Comment 2 Eugene Teo (Security Response) 2009-03-01 15:45:27 UTC
mrg-1 is affected by CONFIG_EXT4DEV_FS is not set by default.

Comment 4 Eugene Teo (Security Response) 2009-03-19 04:17:12 UTC
CVSS2 score of medium, 4.9 (AV:L/AC:L/Au:N/C:N/I:N/A:C)

Comment 5 errata-xmlrpc 2009-09-02 08:01:35 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2009:1243 https://rhn.redhat.com/errata/RHSA-2009-1243.html

Comment 6 errata-xmlrpc 2009-09-02 09:06:43 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2009:1243 https://rhn.redhat.com/errata/RHSA-2009-1243.html

Comment 7 errata-xmlrpc 2009-09-02 12:07:56 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2009:1243 https://rhn.redhat.com/errata/RHSA-2009-1243.html

Comment 10 Kurt Seifried 2011-10-25 17:39:46 UTC
All children bugs closed, parent no longer needed