CVE-2018-13405
Summary
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.
Impact & exploitability
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected products we track (1)
Recommendation
Apply the vendor fix promptly. Open any affected product above for its exact safe version.
Official patch: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7 ↗
Additional information
- NVD record
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7Patch
- http://openwall.com/lists/oss-security/2018/07/13/2Patch
- http://www.securityfocus.com/bid/106503
- https://access.redhat.com/errata/RHSA-2018:2948Advisory
- https://access.redhat.com/errata/RHSA-2018:3083Advisory
- https://access.redhat.com/errata/RHSA-2018:3096Advisory
- https://access.redhat.com/errata/RHSA-2019:0717Advisory
- https://access.redhat.com/errata/RHSA-2019:2476Advisory