Red Hat Bugzilla – Bug 18046
Another security hole in usermode/glibc
Last modified: 2008-05-01 11:37:59 EDT
Please see the local root exploit posted to Bugtraq,
Issue is usermode passing untrusted user environment down to the programs
Of course, it would be nice if glibc were more paranoid about ".." in
We're going to have to add a whitelist and use execle() to run the right
program, but we need to preserve a sane LANG rather than let the default "C" be
used. Might have to make a specific exception for LANG, though.
Actually, glibc takes care about slashes, not .. in locale paths. Anyway, I
don't think glibc should restrict LANG/LC_ALL for non-setuid root, maybe it
should remove LC_*/LANG from environment for setuid programs if it contains
/, I'll talk with Ulrich. Anyway, IMHO all suid/sgid apps which exec something
should be careful by themselves.
In ftp://ultra.linux.cz/private/usermode/ are updated usermode RPMs, Nalin,
could you please retest the bugtraq exploit with it and issue erratas ASAP
(like today) for all distributions shipping usermode? This is really serious.
And we should check all suid/sgid apps which ever exec for this kind of thing
Still not sure what to do about other distributions, but usermode with a couple
of minor bug fixes is now in the pipeline.
Errata is released - fancy marking the bug RESOLVED + ERRATA?