Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 165345

Summary: CVE-2005-4811 Hugepage crash on failing mmap()
Product: Red Hat Enterprise Linux 4 Reporter: Mark J. Cox <mjc>
Component: kernelAssignee: Larry Woodman <lwoodman>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: high Docs Contact:
Priority: medium    
Version: 4.0CC: jbaron, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=important,reported=20050805,source=lkml,public=20050805
Fixed In Version: RHSA-2006-0689 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-10-05 19:17:02 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:

Description Mark J. Cox 2005-08-08 11:56:37 UTC
A patch sent to LKML points out that depending on hugepage configuration an
uprivileged user could cause a crash.  However this is because various
functionality in the arch/*/mm/hugetlbpage.c was merged.  So for upstream
kernels it only affected >2.6.12 (and therefore not released versions).

http://marc.theaimsgroup.com/?l=linux-kernel&m=112323336017157
http://linux.bkbits.net:8080/linux-2.6/cset%4042f3bc80L_XvX5Aw3DqXdSmmzosXWA

However this looks from inspection only that this may affect the
linux-2.6.9-x86_64-hugetlb.patch added in U1, RHSA-2005:520 (bugzilla #143472).

Therefore x86_64 may be vulnerable to this problem.

A patch will need to be crafted from the bk reference above, but it looks fairly
straightforward.  I've not seen a reproducer.

Comment 1 Larry Woodman 2005-08-16 18:48:34 UTC
I dont think this pertains to RHEL4, the code being patched isnt even in the
2.6.9 kernel.

Larry Woodman


Comment 2 Mark J. Cox 2005-08-17 13:51:16 UTC
This looks from inspection only that it affect the
linux-2.6.9-x86_64-hugetlb.patch added in U1, RHSA-2005:520 (bugzilla #143472).



Comment 5 Larry Woodman 2006-08-31 18:07:49 UTC
I just sent the proposed RHEL4-U5 patch to rhkernel_list.

Comment 6 Jason Baron 2006-09-05 15:55:36 UTC
committed in stream U5 build 42.6. A test kernel with this patch is available
from http://people.redhat.com/~jbaron/rhel4/


Comment 7 Jason Baron 2006-09-26 14:31:56 UTC
committed in stream E5 build 42.0.3

Comment 8 RHEL Program Management 2006-09-27 22:42:51 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 10 Jay Turner 2006-10-03 13:40:30 UTC
QE ack for 4.5.

Comment 12 Red Hat Bugzilla 2006-10-05 19:17:02 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