Bug 747848 (CVE-2011-3637)

Summary: CVE-2011-3637 kernel: proc: fix oops on invalid /proc/<pid>/maps access
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: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: anton, arozansk, bhu, dhoward, fhrbata, jkacur, jweiner, kernel-mgr, lgoncalv, lwang, plougher, pmatouse, prarit, rt-maint, sforsber, vgoyal, williams
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-05-04 09:02:14 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: 746613, 747699, 747850, 747851, 748685, 751616, 761370    
Bug Blocks: 747835    

Description Eugene Teo (Security Response) 2011-10-21 06:33:19 UTC
When m_start returns an error, the seq_file logic will still call m_stop
with that error entry, so we'd better make sure that we check it before
using it as a vma.

Introduced by commit ec6fd8a4355c ("report errors in /proc/*/*map*
sanely"), which replaced NULL with various ERR_PTR() cases.

(On ia64, you happen to get a unaligned fault instead of a page fault,
since the address used is generally some random error code like -EPERM)

Upstream commit:
http://git.kernel.org/linus/76597cd31470fa130784c78fadb4dab2e624a723

Comment 2 Eugene Teo (Security Response) 2011-10-21 06:53:52 UTC
Statement:

This issue did not affect the version of the Linux kernel as shipped with Red Hat Enterprise Linux 4, and 6 as it did not backport the upstream commit ec6fd8a4 that introduced this issue. This has been addressed in Red Hat Enterprise Linux 5 and Red Hat Enterprise MRG via https://rhn.redhat.com/errata/RHSA-2012-0007.html and https://rhn.redhat.com/errata/RHSA-2012-0010.html.

Comment 4 Eugene Teo (Security Response) 2011-10-25 03:55:29 UTC
Created kernel tracking bugs for this issue

Affects: fedora-all [bug 748685]

Comment 7 errata-xmlrpc 2012-01-10 20:08:41 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

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

Comment 8 errata-xmlrpc 2012-01-10 20:16:40 UTC
This issue has been addressed in following products:

  MRG for RHEL-6 v.2

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

Comment 9 errata-xmlrpc 2012-02-15 00:43:47 UTC
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