Red Hat Bugzilla – Bug 126716
CAN-2004-0497 inode_change_ok missing checks allows GID changes
Last modified: 2007-11-30 17:07:02 EST
An audit by SUSE found a missing "must be owner of the file" check in
inode_change_ok(). In the 2.6 kernel this allows a local user to be
able to change the groupid of any object (except those setgid) by
using chown. In the 2.4 kernel is is exploitable only via a kernel
nfsd export where the server will grant requests to change GID when it
SUSE suggested an embargo date of Jul14 1600MEST but this has been
adjusted to Jun29 1600MEST.
Created attachment 101396 [details]
Original patch (from SUSE, ACK'd by Al Viro)
A fix for this problem has been committed to the RHEL3 E3 patch
pool this afternoon (in kernel version 2.4.21-15.0.3.EL) and a
Red Hat Security Advisory (RHSA-2004:360) has been prepared.
I'll leave this bug in ASSIGNED state until the same fix has
been committed to the RHEL3 U3 patch pool (later this week).
Embargo was moved to Friday Jul02 at 0800UTC
An errata 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.
A fix for this problem has just been committed to the RHEL3 U3
patch pool this afternoon (in kernel version 2.4.21-15.19.EL).