CVE-2016-4997: Software Security Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-qc28-hwmc-pw94
CVSS 7.8
Published
Advisory Summary

CVE-2016-4997 is a HIGH (CVSS 7.8) security vulnerability vulnerability (General Security Weakness) affecting Software libraries in the Maven ecosystem. Remediation is available in the latest vendor maintenance releases.

CVE-2016-4997 at a Glance

CVE Identifier CVE-2016-4997
GHSA Identifier GHSA-qc28-hwmc-pw94
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification General Security Weakness
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2016-4997

To remediate this vulnerability, upgrade all affected Software dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2016-4997, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree

Analyze the terminal output to locate any version of Software in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Software, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The compat IPT_SO_SET_REPLACE and IP6T_SO_SET_REPLACE setsockopt implementations in the netfilter subsystem in the Linux kernel before 4.6.3 allow local users to gain privileges or cause a denial of service (memory corruption) by leveraging in-container root access to provide a crafted offset value that triggers an unintended decrement.

References

NVD — CVE-2016-4997 NVD
https://nvd.nist.gov/vuln/detail/CVE-2016-4997
Security Fix Commit FIX COMMIT
https://github.com/torvalds/linux/commit/ce683e5f9d045e5d67d1312a42b359cb2ab2a13c
access.redhat.com/errata/rhsa-2016:18... WEB
https://access.redhat.com/errata/RHSA-2016:1847
access.redhat.com/errata/rhsa-2016:18... WEB
https://access.redhat.com/errata/RHSA-2016:1875
access.redhat.com/errata/rhsa-2016:18... WEB
https://access.redhat.com/errata/RHSA-2016:1883
Software Security Information SECURITY
https://access.redhat.com/security/cve/CVE-2016-4997
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=1349722
Software Source Repository REPOSITORY
https://github.com/nccgroup/TriforceLinuxSyscallFuzzer/tree/master/crash_reports/report_compatIpt
h20566.www2.hpe.com/portal/site/hpsc/pu... WEB
https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05347541
www.exploit-db.com/exploits/40435 WEB
https://www.exploit-db.com/exploits/40435
www.exploit-db.com/exploits/40489 WEB
https://www.exploit-db.com/exploits/40489
git.kernel.org/cgit/linux/kernel/g... WEB
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ce683e5f9d045e5d67d1312a42b359cb2ab2a13c
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00060.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00061.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00000.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00007.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00027.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00044.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00048.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00050.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00051.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00052.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00053.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00054.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00055.html
rhn.redhat.com/errata/rhsa-2016-18... WEB
http://rhn.redhat.com/errata/RHSA-2016-1847.html
rhn.redhat.com/errata/rhsa-2016-18... WEB
http://rhn.redhat.com/errata/RHSA-2016-1875.html
rhn.redhat.com/errata/rhsa-2016-18... WEB
http://rhn.redhat.com/errata/RHSA-2016-1883.html
Software Security Information SECURITY
http://www.debian.org/security/2016/dsa-3607
www.kernel.org/pub/linux/kernel/v4... WEB
http://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.6.3
Software Security Information SECURITY
http://www.openwall.com/lists/oss-security/2016/06/24/5
Software Security Information SECURITY
http://www.openwall.com/lists/oss-security/2016/09/29/10
Software Security Information SECURITY
http://www.oracle.com/technetwork/topics/security/linuxbulletinjul2016-3090544.html
Software Security Information SECURITY
http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2016-3090545.html
Software Security Information SECURITY
http://www.oracle.com/technetwork/topics/security/ovmbulletinoct2016-3090547.html
Software Security Information SECURITY
http://www.securityfocus.com/bid/91451
Software Security Information SECURITY
http://www.securitytracker.com/id/1036171
www.ubuntu.com/usn/usn-3016-1 WEB
http://www.ubuntu.com/usn/USN-3016-1
www.ubuntu.com/usn/usn-3016-2 WEB
http://www.ubuntu.com/usn/USN-3016-2
www.ubuntu.com/usn/usn-3016-3 WEB
http://www.ubuntu.com/usn/USN-3016-3
www.ubuntu.com/usn/usn-3016-4 WEB
http://www.ubuntu.com/usn/USN-3016-4
www.ubuntu.com/usn/usn-3017-1 WEB
http://www.ubuntu.com/usn/USN-3017-1
www.ubuntu.com/usn/usn-3017-2 WEB
http://www.ubuntu.com/usn/USN-3017-2
www.ubuntu.com/usn/usn-3017-3 WEB
http://www.ubuntu.com/usn/USN-3017-3
www.ubuntu.com/usn/usn-3018-1 WEB
http://www.ubuntu.com/usn/USN-3018-1
www.ubuntu.com/usn/usn-3018-2 WEB
http://www.ubuntu.com/usn/USN-3018-2
www.ubuntu.com/usn/usn-3019-1 WEB
http://www.ubuntu.com/usn/USN-3019-1
www.ubuntu.com/usn/usn-3020-1 WEB
http://www.ubuntu.com/usn/USN-3020-1

Frequently Asked Questions

What is CVE-2016-4997?
CVE-2016-4997 is a security vulnerability in Software classified as a security vulnerability vulnerability under General Security Weakness.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2016-4997?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What is the CVSS score of CVE-2016-4997?
CVE-2016-4997 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2016-4997?
CVE-2016-4997 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2016-4997?
Run the dependency tree command: 'mvn dependency:tree'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qc28-hwmc-pw94",
  "modified" : "2025-04-12T13:01:45Z",
  "published" : "2022-05-13T01:29:28Z",
  "aliases" : [ "CVE-2016-4997" ],
  "details" : "The compat IPT_SO_SET_REPLACE and IP6T_SO_SET_REPLACE setsockopt implementations in the netfilter subsystem in the Linux kernel before 4.6.3 allow local users to gain privileges or cause a denial of service (memory corruption) by leveraging in-container root access to provide a crafted offset value that triggers an unintended decrement.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-4997"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/torvalds/linux/commit/ce683e5f9d045e5d67d1312a42b359cb2ab2a13c"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:1847"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:1875"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:1883"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2016-4997"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1349722"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nccgroup/TriforceLinuxSyscallFuzzer/tree/master/crash_reports/report_compatIpt"
  }, {
    "type" : "WEB",
    "url" : "https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05347541"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/40435"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/40489"
  }, {
    "type" : "WEB",
    "url" : "http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ce683e5f9d045e5d67d1312a42b359cb2ab2a13c"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00060.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00061.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00000.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00007.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00027.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00044.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00048.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00050.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00051.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00052.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00053.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00054.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00055.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2016-1847.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2016-1875.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2016-1883.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2016/dsa-3607"
  }, {
    "type" : "WEB",
    "url" : "http://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.6.3"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2016/06/24/5"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2016/09/29/10"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/linuxbulletinjul2016-3090544.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2016-3090545.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/ovmbulletinoct2016-3090547.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/91451"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id/1036171"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-3016-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-3016-2"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-3016-3"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-3016-4"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-3017-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-3017-2"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-3017-3"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-3018-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-3018-2"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-3019-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-3020-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2016-07-03T21:59:00Z"
  }
}