CWE
285
Advisory Published
CVE Published
Updated

CVE-2016-7097

First published: Mon Aug 22 2016(Updated: )

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: <a href="http://marc.info/?l=linux-fsdevel&amp;m=147162313630259&amp;w=2">http://marc.info/?l=linux-fsdevel&amp;m=147162313630259&amp;w=2</a> <a href="http://www.spinics.net/lists/linux-fsdevel/msg101138.html">http://www.spinics.net/lists/linux-fsdevel/msg101138.html</a> Upstream commits: <a href="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=073931017b49d9458aa351605b43a7e34598caef</a> <a href="https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=497de07d89c1410d76a15bec2bb41f24a2a89f31">https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=497de07d89c1410d76a15bec2bb41f24a2a89f31</a> Previous suggestions: <a href="http://www.spinics.net/lists/linux-fsdevel/msg98328.html">http://www.spinics.net/lists/linux-fsdevel/msg98328.html</a> <a href="https://patchwork.kernel.org/patch/9137067/">https://patchwork.kernel.org/patch/9137067/</a> <a href="https://patchwork.kernel.org/patch/9138935/">https://patchwork.kernel.org/patch/9138935/</a> CVE request+assignment: <a href="http://seclists.org/oss-sec/2016/q3/380">http://seclists.org/oss-sec/2016/q3/380</a> <a href="http://seclists.org/oss-sec/2016/q3/382">http://seclists.org/oss-sec/2016/q3/382</a>

Credit: secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
Linux Linux kernel<=4.8.2
Google Android
debian/linux
5.10.223-1
5.10.226-1
6.1.115-1
6.1.119-1
6.11.10-1
6.12.5-1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is CVE-2016-7097?

    CVE-2016-7097 is a vulnerability in the Linux kernel that allows local users to gain group privileges.

  • How does CVE-2016-7097 work?

    CVE-2016-7097 works by preserving the setgid bit during a setxattr call, which can be leveraged by local users to gain group privileges.

  • What is the severity of CVE-2016-7097?

    CVE-2016-7097 has a severity rating of medium.

  • Which software versions are affected by CVE-2016-7097?

    The software versions affected by CVE-2016-7097 include Linux kernel versions through 4.8.2.

  • How can I fix CVE-2016-7097?

    To fix CVE-2016-7097, update your Linux kernel to a version that is higher than 4.8.2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203