Bug 463478 - RHEL5.3: ecryptfs memory corruption
Summary: RHEL5.3: ecryptfs memory corruption
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel
Version: 5.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Red Hat Kernel Manager
QA Contact: Martin Jenner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-23 16:59 UTC by Eric Sandeen
Modified: 2009-01-20 20:15 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-20 20:15:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2009:0225 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux 5.3 kernel security and bug fix update 2009-01-20 16:06:24 UTC

Description Eric Sandeen 2008-09-23 16:59:44 UTC
Tomas Henzl pointed out this bug in the ecryptfs mount path:

> >> +       options_len = (strlen(options) + 1);
> >> +       if ((opts_tmp = opts_orig = kmalloc(options_len, GFP_KERNEL)) == NULL) {
> >> +	       rc = -ENOMEM;
> >> +	       goto out;
> >> +       }
> >> +       memcpy(opts_orig, options, options_len);
> >> +       opts_orig[options_len] = '\0';
> >>   
> Sorry for being so late,  but wouldn't be here better 
> 
> +       opts_orig[options_len - 1] = '\0';

where it writes 1 byte past the allocated memory.  This constitutes memory corruption on the ecryptfs mount path, and should be fixed before RHEL5.3 releases.

Thanks,
-Eric

Comment 1 RHEL Program Management 2008-09-23 18:15:19 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 2 Don Zickus 2008-10-06 15:56:26 UTC
in kernel-2.6.18-118.el5
You can download this test kernel from http://people.redhat.com/dzickus/el5

Comment 6 errata-xmlrpc 2009-01-20 20:15:21 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 therefore 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-2009-0225.html


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