CVE-2016-7097: Medium severity Google Android vulnerability

Published 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 CAPFSETID, the setgid bit is cleared in inodechangeok(). 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

Other sources

The filesystem implementation in the Linux kernel through 4.8.2 preserves the setgid bit during a setxattr call, which allows local users to gain group privileges by leveraging the existence of a setgid program with restrictions on execute permissions.

Launchpad

Affected Software

3 affected componentsFixes available
Google Android
Linux Linux Kernel<=4.8.2
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1

Event History

Aug 22, 2016
Data Sourced
via Red Hat·08:00 AM
DescriptionSeverityAffected Software
Oct 16, 2016
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
Description
Apr 3, 2017
Data Sourced
via Android·12:00 AM
SeverityAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:21 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·01:16 AM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2016-7097?

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

2

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.

3

What is the severity of CVE-2016-7097?

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

4

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.

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203