Bug 747942 - (CVE-2011-3638) CVE-2011-3638 kernel: ext4: ext4_ext_insert_extent() kernel oops
CVE-2011-3638 kernel: ext4: ext4_ext_insert_extent() kernel oops
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20110928,repor...
: Security
Depends On: 742091 747943 747946 747947 747948 748374 761374 795379
Blocks: 747953
  Show dependency treegraph
 
Reported: 2011-10-21 09:11 EDT by Petr Matousek
Modified: 2015-07-31 10:53 EDT (History)
29 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-05-10 09:40:40 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Petr Matousek 2011-10-21 09:11:06 EDT
A flaw was found in the way splitting two extents in ext4_ext_convert_to_initialized() worked. Althrough ex has been updated in memory, it is not dirtied both in ext4_ext_convert_to_initialized() and ext4_ext_insert_extent(). The disk layout is corrupted. Then it will meet with a BUG_ON() when writting at the start of that extent again.

Introduced in:
56055d3ae4cc7fa6d2b10885f20269de8a989ed7

Upstream fix:
667eff35a1f56fa74ce98a0c7c29a40adc1ba4e3
Comment 3 Petr Matousek 2011-10-21 09:16:14 EDT
Created kernel tracking bugs for this issue

Affects: fedora-all [bug 747948]
Comment 4 Petr Matousek 2011-10-21 09:16:57 EDT
Statement:

This issue did not affect the versions of Linux kernel as shipped with Red Hat Enterprise Linux 4 as it did not include support for EXT4 filesystem. It did not affect the Linux kernel as shipped with Red Hat Enterprise MRG as it has backported the upstream commit 667eff35 that addressed this issue. This has been addressed in Red Hat Enterprise Linux 5 and 6 via https://rhn.redhat.com/errata/RHSA-2012-0107.html and https://rhn.redhat.com/errata/RHSA-2011-1530.html.
Comment 7 Josh Boyer 2011-10-21 09:23:03 EDT
(In reply to comment #0)
> A flaw was found in the way splitting two extents in
> ext4_ext_convert_to_initialized() worked. Althrough ex has been updated in
> memory, it is not dirtied both in ext4_ext_convert_to_initialized() and
> ext4_ext_insert_extent(). The disk layout is corrupted. Then it will meet with
> a BUG_ON() when writting at the start of that extent again.
> 
> Introduced in:
> 667eff35a1f56fa74ce98a0c7c29a40adc1ba4e3
> 
> Upstream fix:
> 667eff35a1f56fa74ce98a0c7c29a40adc1ba4e3

That's the same hash for both.  Perhaps the upstream fix one is incorrectly listed?
Comment 8 Petr Matousek 2011-10-21 09:25:19 EDT
> That's the same hash for both.  Perhaps the upstream fix one is incorrectly
> listed?

You are right, it's already fixed.
Comment 9 Ric Wheeler 2011-10-21 09:27:46 EDT
Are you saying this is fixed in upstream but not in Fedora or RHEL?

Thanks!
Comment 11 Petr Matousek 2011-10-21 09:31:58 EDT
(In reply to comment #9)
> Are you saying this is fixed in upstream but not in Fedora or RHEL?

RHEL should be affected. If Fedora kernels containt the upstream patch in comment #0, they are not affected.
Comment 12 Josh Boyer 2011-10-21 09:32:59 EDT
(In reply to comment #11)
> (In reply to comment #9)
> > Are you saying this is fixed in upstream but not in Fedora or RHEL?
> 
> RHEL should be affected. If Fedora kernels containt the upstream patch in
> comment #0, they are not affected.

Right.  It should be fixed in upstream and F15-rawhide, as
667eff35a1f56fa74ce98a0c7c29a40adc1ba4e3 is contained in the 3.0 kernel
release.

I'll address F14 in the fedora bug.
Comment 16 errata-xmlrpc 2011-12-06 09:26:25 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2011:1530 https://rhn.redhat.com/errata/RHSA-2011-1530.html
Comment 18 Vincent Danen 2012-02-09 10:20:41 EST
Acknowledgements:

Red Hat would like to thank Zheng Liu for reporting this issue.
Comment 19 errata-xmlrpc 2012-02-09 11:41:18 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2012:0107 https://rhn.redhat.com/errata/RHSA-2012-0107.html
Comment 20 errata-xmlrpc 2012-02-14 19:43:55 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6.1 EUS - Server Only

Via RHSA-2012:0116 https://rhn.redhat.com/errata/RHSA-2012-0116.html
Comment 22 errata-xmlrpc 2012-04-24 16:18:15 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5.6 EUS - Server Only

Via RHSA-2012:0517 https://rhn.redhat.com/errata/RHSA-2012-0517.html

Note You need to log in before you can comment on or make changes to this bug.