Bug 193053 - CVE-2006-1174 shadow-utils mailbox creation race condition
Summary: CVE-2006-1174 shadow-utils mailbox creation race condition
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: shadow-utils
Version: 4.0
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
: ---
Assignee: Peter Vrabec
QA Contact: David Lawrence
URL:
Whiteboard: source=cert,reported=20060512,public=...
Keywords: Security
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-05-24 20:02 UTC by Josh Bressers
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2007-05-01 17:32:19 UTC


Attachments (Terms of Use)
"#useradd foo" strace output (32.94 KB, text/plain)
2006-05-25 11:19 UTC, Peter Vrabec
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2007:0276 normal SHIPPED_LIVE Low: shadow-utils security and bug fix update 2007-05-01 17:30:42 UTC

Description Josh Bressers 2006-05-24 20:02:08 UTC
shadow-utils mailbox creation race condition

CERT reported an issue with the way shadow-utils' useradd program
creates the users mail spool file.  The file is intially created
improperly which gives it random permissions, owned by root for a
short period of time.  It may be possible for a local attacker to get
very lucky and acquire write permissions to a world writable SUID
file.

The upstream fix is here:
http://cvs.pld.org.pl/shadow/src/useradd.c?r1=1.50&r2=1.51

When we patch our packages, we may want to check the return value of
the the fchown and fchmod calls.



This issue also affects RHEL3
This issue also affects RHEL2.1

Comment 1 Peter Vrabec 2006-05-25 11:19:38 UTC
Created attachment 129979 [details]
"#useradd foo" strace output

I patched shadow-utils-4.0.3 from rhel4  and checked return value of fchown and
fchmod. 

Can I commit patch to CVS and rebuild shadow-utils in rhel[2.1,3, 4]?

Comment 2 Josh Bressers 2006-05-25 11:36:48 UTC
Feel free to apply the patch to CVS, but we won't release an update just for
this issue.  We've rated it as having a "low" severity, which means we wait
until there is another more sever issue to fix, releasing both fixes at the same
time.

Thanks.

Comment 11 Red Hat Bugzilla 2007-05-01 17:32:19 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-2007-0276.html



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