Bug 190073 - CVE-2006-2071 mprotect gives write permission to a readonly attachment
Summary: CVE-2006-2071 mprotect gives write permission to a readonly attachment
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jason Baron
QA Contact: Brian Brock
URL:
Whiteboard: impact=moderate,public=20060417
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-04-27 11:17 UTC by Marcel Holtmann
Modified: 2013-03-06 05:59 UTC (History)
2 users (show)

Fixed In Version: RHSA-2006-0689
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-10-05 19:17:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
reproducer (988 bytes, patch)
2006-06-01 15:58 UTC, Jason Baron
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2006:0689 0 normal SHIPPED_LIVE Important: kernel security update 2006-10-05 04:00:00 UTC

Description Marcel Holtmann 2006-04-27 11:17:00 UTC
All of 2.4 and 2.6 kernels have been letting mprotect give write permission to a
readonly attachment of shared memory, whether or not IPC would give the caller
that permission.

SUS says "The behaviour of this function [mprotect] is unspecified if the
mapping was not established by a call to mmap", but I don't think we can
interpret that as allowing it to subvert IPC permissions.

Comment 2 Marcel Holtmann 2006-04-27 17:24:15 UTC
This is _not_ CVE-2006-1524. The commit message of the upstream fix is wrong.


Comment 4 Jason Baron 2006-06-01 15:58:55 UTC
Created attachment 130353 [details]
reproducer

better test program. returns PASS, FAIL, or ABORT.

Comment 5 Jason Baron 2006-08-21 20:47:19 UTC
committed in stream U5 build 42.2. A test kernel with this patch is available
from http://people.redhat.com/~jbaron/rhel4/


Comment 6 Jason Baron 2006-09-26 14:30:00 UTC
committed in stream E5 build 42.0.3

Comment 7 RHEL Program Management 2006-09-27 21:32:35 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 9 Jay Turner 2006-10-03 13:39:29 UTC
QE ack for 4.5.

Comment 11 Red Hat Bugzilla 2006-10-05 19:17:20 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2006-0689.html



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