4.4
MEDIUM
CVE-2016-7097
Linux kernel Setgid Filesystem Vulnerability
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.

INFO

Published Date :

Oct. 16, 2016, 9:59 p.m.

Last Modified :

Feb. 12, 2023, 11:25 p.m.

Remotely Exploitable :

No

Impact Score :

2.5

Exploitability Score :

1.8
Public PoC/Exploit Available at Github

CVE-2016-7097 has a 3 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2016-7097 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Python

Updated: 4 years, 11 months ago
1 stars 0 fork 0 watcher
Born at : Aug. 26, 2018, 10:01 p.m. This repo has been linked 5 different CVEs too.

None

Python

Updated: 1 month, 1 week ago
9 stars 1 fork 1 watcher
Born at : Aug. 30, 2017, 2:37 p.m. This repo has been linked 1269 different CVEs too.

Python script for monitoring vulnerabilities database

vulnerabilities monitoring cve exploit

Python

Updated: 6 months, 3 weeks ago
25 stars 8 fork 8 watcher
Born at : Feb. 25, 2017, noon This repo has been linked 5 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2016-7097 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2016-7097 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Feb. 12, 2023

    Action Type Old Value New Value
    Changed Description It was found that when file permissions were modified via chmod and the user modifying them was not in the owning group or capable of CAP_FSETID, the setgid bit would be cleared. Setting a POSIX ACL via setxattr sets the file permissions as well as the new ACL, but doesn't clear the setgid bit in a similar way. This could allow a local user to gain group privileges via certain setgid applications. 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.
    Removed CVSS V2 Red Hat, Inc. (AV:L/AC:M/Au:N/C:P/I:P/A:N)
    Removed CVSS V3 Red Hat, Inc. AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
    Removed Reference https://access.redhat.com/errata/RHSA-2017:0817 [No Types Assigned]
    Removed Reference https://access.redhat.com/security/cve/CVE-2016-7097 [No Types Assigned]
  • CVE Modified by [email protected]

    Feb. 02, 2023

    Action Type Old Value New Value
    Changed 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. It was found that when file permissions were modified via chmod and the user modifying them was not in the owning group or capable of CAP_FSETID, the setgid bit would be cleared. Setting a POSIX ACL via setxattr sets the file permissions as well as the new ACL, but doesn't clear the setgid bit in a similar way. This could allow a local user to gain group privileges via certain setgid applications.
    Added CVSS V2 Red Hat, Inc. (AV:L/AC:M/Au:N/C:P/I:P/A:N)
    Added CVSS V3 Red Hat, Inc. AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
    Removed Reference https://support.f5.com/csp/article/K31603170?utm_source=f5support&utm_medium=RSS [No Types Assigned]
    Added Reference https://access.redhat.com/security/cve/CVE-2016-7097 [No Types Assigned]
    Added Reference https://support.f5.com/csp/article/K31603170?utm_source=f5support&amp%3Butm_medium=RSS [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2017:0817 [No Types Assigned]
  • CVE Modified by [email protected]

    Oct. 09, 2019

    Action Type Old Value New Value
    Added Reference https://support.f5.com/csp/article/K31603170?utm_source=f5support&utm_medium=RSS [No Types Assigned]
  • CVE Modified by [email protected]

    Jan. 05, 2018

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2017:2077 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2017:1842 [No Types Assigned]
    Added Reference http://rhn.redhat.com/errata/RHSA-2017-0817.html [No Types Assigned]
  • CVE Modified by [email protected]

    Dec. 31, 2017

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2017:2669 [No Types Assigned]
  • CVE Modified by [email protected]

    Jul. 11, 2017

    Action Type Old Value New Value
    Added Reference http://www.securitytracker.com/id/1038201 [No Types Assigned]
  • CVE Modified by [email protected]

    Apr. 08, 2017

    Action Type Old Value New Value
    Added Reference https://source.android.com/security/bulletin/2017-04-01 [No Types Assigned]
  • CVE Modified by [email protected]

    Jan. 07, 2017

    Action Type Old Value New Value
    Added Reference http://www.ubuntu.com/usn/USN-3147-1 [No Types Assigned]
    Added Reference http://www.ubuntu.com/usn/USN-3146-2 [No Types Assigned]
    Added Reference http://www.ubuntu.com/usn/USN-3146-1 [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 30, 2016

    Action Type Old Value New Value
    Added Reference http://www.securityfocus.com/bid/92659 [No Types Assigned]
  • Modified Analysis by [email protected]

    Oct. 18, 2016

    Action Type Old Value New Value
    Added CPE Configuration Configuration 1 OR *cpe:2.3:o:linux:linux_kernel:4.8.2:*:*:*:*:*:*:* (and previous)
    Added CVSS V2 (AV:L/AC:L/Au:N/C:P/I:P/A:N)
    Added CVSS V3 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
    Changed Reference Type http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=073931017b49d9458aa351605b43a7e34598caef No Types Assigned http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=073931017b49d9458aa351605b43a7e34598caef Issue Tracking, Patch
    Changed Reference Type http://www.openwall.com/lists/oss-security/2016/08/26/3 No Types Assigned http://www.openwall.com/lists/oss-security/2016/08/26/3 Mailing List
    Changed Reference Type https://bugzilla.redhat.com/show_bug.cgi?id=1368938 No Types Assigned https://bugzilla.redhat.com/show_bug.cgi?id=1368938 Third Party Advisory, Issue Tracking
    Changed Reference Type https://github.com/torvalds/linux/commit/073931017b49d9458aa351605b43a7e34598caef No Types Assigned https://github.com/torvalds/linux/commit/073931017b49d9458aa351605b43a7e34598caef Third Party Advisory, Patch
    Changed Reference Type http://www.spinics.net/lists/linux-fsdevel/msg98328.html No Types Assigned http://www.spinics.net/lists/linux-fsdevel/msg98328.html Third Party Advisory, Patch
    Changed Reference Type http://marc.info/?l=linux-fsdevel&m=147162313630259&w=2 No Types Assigned http://marc.info/?l=linux-fsdevel&m=147162313630259&w=2 Patch
    Added CWE CWE-285
  • Initial Analysis by [email protected]

    Oct. 17, 2016

    Action Type Old Value New Value
    Changed CPE Configuration Configuration 1 OR Configuration 1 OR *cpe:2.3:o:linux:linux_kernel:4.8.2:*:*:*:*:*:*:* (and previous)
    Added CVSS V2 (AV:L/AC:L/Au:N/C:P/I:P/A:N)
    Added CVSS V3 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
    Changed Reference Type http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=073931017b49d9458aa351605b43a7e34598caef No Types Assigned http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=073931017b49d9458aa351605b43a7e34598caef Issue Tracking, Patch
    Changed Reference Type http://www.openwall.com/lists/oss-security/2016/08/26/3 No Types Assigned http://www.openwall.com/lists/oss-security/2016/08/26/3 Mailing List
    Changed Reference Type https://bugzilla.redhat.com/show_bug.cgi?id=1368938 Issue Tracking https://bugzilla.redhat.com/show_bug.cgi?id=1368938 Issue Tracking, Third Party Advisory
    Changed Reference Type https://github.com/torvalds/linux/commit/073931017b49d9458aa351605b43a7e34598caef No Types Assigned https://github.com/torvalds/linux/commit/073931017b49d9458aa351605b43a7e34598caef Patch, Third Party Advisory
    Changed Reference Type http://www.spinics.net/lists/linux-fsdevel/msg98328.html No Types Assigned http://www.spinics.net/lists/linux-fsdevel/msg98328.html Patch, Third Party Advisory
    Changed Reference Type http://marc.info/?l=linux-fsdevel&m=147162313630259&w=2 No Types Assigned http://marc.info/?l=linux-fsdevel&m=147162313630259&w=2 Patch
    Added CWE CWE-285
  • CVE Translated by [email protected]

    Oct. 17, 2016

    Action Type Old Value New Value
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2016-7097 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2016-7097 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.04 }} 0.00%

score

0.08236

percentile

CVSS30 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability