Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1368938 - (CVE-2016-7097) CVE-2016-7097 kernel: Setting a POSIX ACL via setxattr doesn't clear the setgid bit
CVE-2016-7097 kernel: Setting a POSIX ACL via setxattr doesn't clear the setg...
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20160526,repor...
: Security
Depends On: 1368939 1371252 1371253 1371254 1371255 1371256
Blocks: 1368940
  Show dependency treegraph
 
Reported: 2016-08-22 04:00 EDT by Andrej Nemec
Modified: 2018-08-28 18:08 EDT (History)
32 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
It was found that when file permissions were modified via chmod and the user modifying them was not in the owning group or capable of CAP_FSETID, the setgid bit would be cleared. Setting a POSIX ACL via setxattr sets the file permissions as well as the new ACL, but doesn't clear the setgid bit in a similar way. This could allow a local user to gain group privileges via certain setgid applications.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:0817 normal SHIPPED_LIVE Moderate: kernel security, bug fix, and enhancement update 2017-03-21 09:06:51 EDT
Red Hat Product Errata RHSA-2017:1842 normal SHIPPED_LIVE Important: kernel security, bug fix, and enhancement update 2017-08-01 14:22:09 EDT
Red Hat Product Errata RHSA-2017:2077 normal SHIPPED_LIVE Important: kernel-rt security, bug fix, and enhancement update 2017-08-01 14:13:37 EDT
Red Hat Product Errata RHSA-2017:2669 normal SHIPPED_LIVE Important: kernel-rt security and bug fix update 2017-09-06 20:36:52 EDT

  None (edit)
Description Andrej Nemec 2016-08-22 04:00:13 EDT
A vulnerability was found in the Linux kernel. When file permissions are modified via chmod and the user is not in the owning group or capable of CAP_FSETID, the setgid bit is cleared in inode_change_ok(). Setting a POSIX ACL via setxattr sets the filepermissions as well as the new ACL, but doesn't clear the setgid bit in a similar way; this allows to bypass the check in chmod.

Suggested upstream patch:

http://marc.info/?l=linux-fsdevel&m=147162313630259&w=2

http://www.spinics.net/lists/linux-fsdevel/msg101138.html

Upstream commits:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=073931017b49d9458aa351605b43a7e34598caef

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=497de07d89c1410d76a15bec2bb41f24a2a89f31

Previous suggestions:

http://www.spinics.net/lists/linux-fsdevel/msg98328.html

https://patchwork.kernel.org/patch/9137067/

https://patchwork.kernel.org/patch/9138935/

CVE request+assignment:

http://seclists.org/oss-sec/2016/q3/380

http://seclists.org/oss-sec/2016/q3/382
Comment 1 Andrej Nemec 2016-08-22 04:01:02 EDT
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1368939]
Comment 2 Andrej Nemec 2016-08-22 04:03:44 EDT
Acknowledgments:

Name: Andreas Gruenbacher (Red Hat), Jan Kara (SUSE)
Comment 3 Andrej Nemec 2016-08-29 03:12:01 EDT
Statement:

This issue affects the Linux kernel packages as shipped with Red Hat Enterprise Linux 5. This has been rated as having Moderate security impact and is not currently planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.

This issue affects the Linux kernel packages as shipped with Red Hat Enterprise Linux 6, 7 and MRG-2. Future Linux kernel updates for the respective releases might address this issue.
Comment 9 errata-xmlrpc 2017-03-21 09:12:37 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2017:0817 https://rhn.redhat.com/errata/RHSA-2017-0817.html
Comment 10 errata-xmlrpc 2017-08-01 15:09:06 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:2077 https://access.redhat.com/errata/RHSA-2017:2077
Comment 11 errata-xmlrpc 2017-08-02 03:48:02 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:1842 https://access.redhat.com/errata/RHSA-2017:1842
Comment 12 errata-xmlrpc 2017-09-06 16:37:51 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise MRG 2

Via RHSA-2017:2669 https://access.redhat.com/errata/RHSA-2017:2669

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