The inode_init_owner function in fs/inode.c in the Linux kernel through 3.16 allows local users to create files with an unintended group ownership, in a scenario where a directory is SGID to a certain group and is writable by a user who is not a member of that group. Here, the non-member can trigger creation of a plain file whose group ownership is that group. The intended behavior was that the non-member can trigger creation of a directory (but not a plain file) whose group ownership is that group. The non-member can escalate privileges by making the plain file executable and SGID.
3.13.0-157.2074.4.0-1028.314.4.0-134.160~14.04.14.4.0-134.1604.4.0-1066.764.15.0-1022.22~16.04.14.15.0-1018.19~16.04.24.15.0-33.36~16.04.14.4.0-1032.384.4.0-1095.103Exploitability
AV:LAC:LPR:LUI:NScope
S:UImpact
C:HI:HA:HCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H