CVE-2016-7097: Medium severity Linux Linux kernel 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

29 affected componentsFixes available
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
Google Android
ubuntu/linux<3.13.0-132.181
3.13.0-132.181
ubuntu/linux-lts-xenial<4.4.0-51.72~14.04.1
4.4.0-51.72~14.04.1
ubuntu/linux<4.4.0-51.72
4.4.0-51.72
ubuntu/linux-raspi2<4.4.0-1038.45
4.4.0-1038.45
ubuntu/linux-snapdragon<4.4.0-1042.46
4.4.0-1042.46
ubuntu/linux-azure*
ubuntu/linux-gcp*
ubuntu/linux-hwe*
ubuntu/linux-hwe-edge*
ubuntu/linux-oem*
ubuntu/linux-azure-fde*
ubuntu/linux-azure-fde-5.15*
ubuntu/linux-gke*
ubuntu/linux-gkeop*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-riscv*
ubuntu/linux-azure-6.11*
ubuntu/linux-gcp-6.11*
ubuntu/linux-hwe-6.11*
ubuntu/linux-lowlatency-hwe-6.11*
ubuntu/linux-raspi-realtime*
ubuntu/linux-realtime*
ubuntu/linux-riscv*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  2. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 3.13.0-132.181
  3. Upgrade

    Upgrade ubuntu/linux-lts-xenial to a version that resolves this vulnerability.

    Fixed in 4.4.0-51.72~14.04.1
  4. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 4.4.0-51.72
  5. Upgrade

    Upgrade ubuntu/linux-raspi2 to a version that resolves this vulnerability.

    Fixed in 4.4.0-1038.45
  6. Upgrade

    Upgrade ubuntu/linux-snapdragon to a version that resolves this vulnerability.

    Fixed in 4.4.0-1042.46

Event History

Aug 22, 2016
Data Sourced
via Red Hat·08:00 AM
DescriptionSeverityAffected Software
Oct 16, 2016
CVE Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
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

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