Bug 463661 - (CVE-2008-4210) CVE-2008-4210 kernel: open() call allows setgid bit when user is not in new file's group
CVE-2008-4210 kernel: open() call allows setgid bit when user is not in new f...
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
: Security
Depends On: 463682 463683 463684 463685 463686 463687 463865 463867
  Show dependency treegraph
Reported: 2008-09-24 01:40 EDT by Eugene Teo (Security Response)
Modified: 2010-12-21 12:41 EST (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-12-21 12:41:49 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Reproducer (public) (219 bytes, application/octet-stream)
2008-09-24 02:13 EDT, Eugene Teo (Security Response)
no flags Details

  None (edit)
Description Eugene Teo (Security Response) 2008-09-24 01:40:37 EDT
Description of problem:
When creating a file, open()/creat() allows the setgid bit to be set via the mode argument even when, due to the bsdgroups mount option or the file being created in a setgid directory, the new file's group is one which the user is not a member of.  The user can then use ftruncate() and memory-mapped I/O to turn the new file into an arbitrary binary and thus gain the privileges of this group, since these operations do not clear the setgid bit.
Comment 1 Eugene Teo (Security Response) 2008-09-24 02:06:59 EDT
Comment 2 Eugene Teo (Security Response) 2008-09-24 02:13:00 EDT
Created attachment 317560 [details]
Reproducer (public)
Comment 8 Eugene Teo (Security Response) 2008-09-24 06:37:04 EDT
Additional references:
Comment 13 Eugene Teo (Security Response) 2008-09-26 00:02:39 EDT
(In reply to comment #7)
> Proposed upstream patch:
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7b82dc0e64e93f430182f36b46b79fcee87d3532

This should include commit 01de85e057328ecbef36e108673b1e81059d54c1 as well.
Comment 18 Eugene Teo (Security Response) 2008-10-06 21:14:28 EDT
Comment 21 Buck Huppmann 2008-11-12 17:44:04 EST
is there a RHSA coming for this for RH 4, a la

Comment 24 Vincent Danen 2010-12-21 12:41:49 EST
This was addressed via:

Red Hat Linux Advanced Workstation 2.1 (RHSA-2008:0787)
Red Hat Enterprise Linux version 5 (RHSA-2008:0957)
Red Hat Enterprise Linux version 4 (RHSA-2008:0972)
Red Hat Enterprise Linux version 3 (RHSA-2008:0973)
Red Hat Enterprise Linux version 2.1 (RHSA-2009:0001)

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