Bug 720861 (CVE-2011-2689) - CVE-2011-2689 kernel: gfs2: make sure fallocate bytes is a multiple of blksize
Summary: CVE-2011-2689 kernel: gfs2: make sure fallocate bytes is a multiple of blksize
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2011-2689
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 695763 699741 720862 720863 748674
Blocks: 720859
TreeView+ depends on / blocked
 
Reported: 2011-07-13 02:46 UTC by Eugene Teo (Security Response)
Modified: 2021-02-24 15:04 UTC (History)
19 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-04 08:16:09 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1065 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux 5.7 kernel security and bug fix update 2011-07-21 09:21:37 UTC
Red Hat Product Errata RHSA-2011:1189 0 normal SHIPPED_LIVE Important: kernel security, bug fix, and enhancement update 2011-08-23 14:41:43 UTC

Description Eugene Teo (Security Response) 2011-07-13 02:46:21 UTC
The GFS2 fallocate code chooses a target size to for allocating chunks of space. Whenever it can't find any resource groups with enough space free, it halves its target. Since this target is in bytes, eventually it will no longer be a multiple of blksize. As long as there is more space available in the resource group than the target, this isn't a problem, since gfs2 will use the actual space available, which is always a multiple of blksize. However, when gfs couldn't fallocate a bigger chunk than the target, it was using the non-blksize aligned number. This caused a BUG in later code that required blksize aligned offsets.

Upstream commit:
http://git.kernel.org/linus/6905d9e4dda6112f007e9090bca80507da158e63

Comment 3 errata-xmlrpc 2011-07-21 09:21:57 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2011:1065 https://rhn.redhat.com/errata/RHSA-2011-1065.html

Comment 4 errata-xmlrpc 2011-07-21 11:45:39 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2011:1065 https://rhn.redhat.com/errata/RHSA-2011-1065.html

Comment 5 Eugene Teo (Security Response) 2011-07-22 02:20:31 UTC
Statement:

This issue did not affect the versions of Linux kernel as shipped with Red Hat Enterprise Linux 4 and Red Hat Enterprise MRG as they did not provide support for the Global File System 2 (GFS2). This has been addressed in Red Hat Enterprise Linux 5 and 6 via https://rhn.redhat.com/errata/RHSA-2011-1065.html and https://rhn.redhat.com/errata/RHSA-2011-1189.html.

Comment 7 errata-xmlrpc 2011-08-23 14:42:32 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2011:1189 https://rhn.redhat.com/errata/RHSA-2011-1189.html

Comment 8 Eugene Teo (Security Response) 2011-10-25 03:48:08 UTC
Created kernel tracking bugs for this issue

Affects: fedora-all [bug 748674]


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