This service will be undergoing maintenance at 00:00 UTC, 2016-08-01. It is expected to last about 1 hours
Bug 716538 - (CVE-2011-2496) CVE-2011-2496 kernel: mm: avoid wrapping vm_pgoff in mremap() and stack expansions
CVE-2011-2496 kernel: mm: avoid wrapping vm_pgoff in mremap() and stack expan...
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
public=20110407,reported=20110621,sou...
: Security
: 713614 (view as bug list)
Depends On: 716540 716541 716543 716544 716545
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-24 16:10 EDT by Petr Matousek
Modified: 2015-07-31 09:31 EDT (History)
20 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-04-05 22:11:59 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-06-24 16:10:35 EDT
The normal mmap paths all avoid creating a mapping where the pgoff inside the mapping could wrap around due to overflow.  However, an expanding mremap() can take such a non-wrapping mapping and make it bigger and cause a wrapping condition. There is also another case where we expand mappings hiding in plain sight: the automatic stack expansion.

The wrapping condition can cause a BUG_ON() due to terminally confusing the vma_prio_tree code.

Upstream patches:
982134ba62618c2d69fbbbd166d0a11ee3b7e3d8 mremap
a626ca6a656450e9f4df91d0dda238fff23285f4 stack expansion downwards
42c36f63ac1366ab0ecc2d5717821362c259f517 stack expansion upwards

References:
http://www.spinics.net/lists/stable-commits/msg11385.html
http://www.spinics.net/lists/linux-mm/msg17093.html
http://groups.google.com/group/fa.linux.kernel/msg/9e43ab898c5e6d16

Acknowledgements:                                                               

Red Hat would like to thank Robert Swiecki for reporting this issue.
Comment 3 Petr Matousek 2011-06-24 16:27:40 EDT
*** Bug 713614 has been marked as a duplicate of this bug. ***
Comment 6 Vincent Danen 2011-06-27 19:08:20 EDT
This was assigned the name CVE-2011-2496:

http://seclists.org/oss-sec/2011/q2/689
Comment 10 errata-xmlrpc 2011-09-12 15:45:46 EDT
This issue has been addressed in following products:

  MRG for RHEL-6 v.2

Via RHSA-2011:1253 https://rhn.redhat.com/errata/RHSA-2011-1253.html
Comment 11 errata-xmlrpc 2011-10-05 17:47:49 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2011:1350 https://rhn.redhat.com/errata/RHSA-2011-1350.html
Comment 12 errata-xmlrpc 2011-10-20 13:28:50 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

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

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