CVE-2018-16884: Software Security Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-cxqg-5c27-qx45
CVSS 8.0
CWE-416
Published
Advisory Summary

CVE-2018-16884 is a HIGH (CVSS 8.0) security vulnerability vulnerability (CWE-416: Use After Free) affecting Software libraries in the Maven ecosystem. The weakness occurs when the product reuses or references memory after it has been freed. at some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.. Remediation is available in the latest vendor maintenance releases.

CVE-2018-16884 at a Glance

CVE Identifier CVE-2018-16884
GHSA Identifier GHSA-cxqg-5c27-qx45
Severity HIGH
CVSS v3.1 Base Score 8.0
CWE Classification CWE-416: Use After Free
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.0

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

Attack Vector Adjacent (AV:A)
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-2018-16884

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-2018-16884, 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 CWE-416: Use After Free, where the product reuses or references memory after it has been freed. at some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer. 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

A flaw was found in the Linux kernel's NFS41+ subsystem. NFS41+ shares mounted in different network namespaces at the same time can make bc_svc_process() use wrong back-channel IDs and cause a use-after-free vulnerability. Thus a malicious container user can cause a host kernel memory corruption and a system panic. Due to the nature of the flaw, privilege escalation cannot be fully ruled out.

References

NVD — CVE-2018-16884 NVD
https://nvd.nist.gov/vuln/detail/CVE-2018-16884
Software Security Information SECURITY
https://www.oracle.com/security-alerts/cpuApr2021.html
usn.ubuntu.com/3981-2 WEB
https://usn.ubuntu.com/3981-2
usn.ubuntu.com/3981-1 WEB
https://usn.ubuntu.com/3981-1
usn.ubuntu.com/3980-2 WEB
https://usn.ubuntu.com/3980-2
usn.ubuntu.com/3980-1 WEB
https://usn.ubuntu.com/3980-1
usn.ubuntu.com/3932-2 WEB
https://usn.ubuntu.com/3932-2
usn.ubuntu.com/3932-1 WEB
https://usn.ubuntu.com/3932-1
support.f5.com/csp/article/k214300... WEB
https://support.f5.com/csp/article/K21430012
patchwork.kernel.org/patch/10733769 WEB
https://patchwork.kernel.org/patch/10733769
patchwork.kernel.org/cover/10733767 WEB
https://patchwork.kernel.org/cover/10733767
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2019/05/msg00002.html
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2019/04/msg00004.html
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2019/03/msg00034.html
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16884
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=1660375
Software Security Information SECURITY
https://access.redhat.com/security/cve/CVE-2018-16884
access.redhat.com/errata/rhsa-2020:28... WEB
https://access.redhat.com/errata/RHSA-2020:2854
access.redhat.com/errata/rhsa-2020:02... WEB
https://access.redhat.com/errata/RHSA-2020:0204
access.redhat.com/errata/rhsa-2019:35... WEB
https://access.redhat.com/errata/RHSA-2019:3517
access.redhat.com/errata/rhsa-2019:33... WEB
https://access.redhat.com/errata/RHSA-2019:3309
access.redhat.com/errata/rhsa-2019:27... WEB
https://access.redhat.com/errata/RHSA-2019:2730
access.redhat.com/errata/rhsa-2019:26... WEB
https://access.redhat.com/errata/RHSA-2019:2696
access.redhat.com/errata/rhsa-2019:18... WEB
https://access.redhat.com/errata/RHSA-2019:1891
access.redhat.com/errata/rhsa-2019:18... WEB
https://access.redhat.com/errata/RHSA-2019:1873
Software Security Information SECURITY
http://www.securityfocus.com/bid/106253

Frequently Asked Questions

What is CVE-2018-16884?
CVE-2018-16884 is a security vulnerability in Software classified as a security vulnerability vulnerability under CWE-416: Use After Free.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2018-16884?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What is the CVSS score of CVE-2018-16884?
CVE-2018-16884 has a CVSS v3.1 base score of 8.0 (HIGH) with vector string CVSS:3.0/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2018-16884?
CVE-2018-16884 is classified under CWE-416: Use After Free (The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.).
How can I check Maven dependencies for CVE-2018-16884?
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-cxqg-5c27-qx45",
  "modified" : "2022-05-13T01:08:47Z",
  "published" : "2022-05-13T01:08:47Z",
  "aliases" : [ "CVE-2018-16884" ],
  "details" : "A flaw was found in the Linux kernel's NFS41+ subsystem. NFS41+ shares mounted in different network namespaces at the same time can make bc_svc_process() use wrong back-channel IDs and cause a use-after-free vulnerability. Thus a malicious container user can cause a host kernel memory corruption and a system panic. Due to the nature of the flaw, privilege escalation cannot be fully ruled out.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:A/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-2018-16884"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpuApr2021.html"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/3981-2"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/3981-1"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/3980-2"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/3980-1"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/3932-2"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/3932-1"
  }, {
    "type" : "WEB",
    "url" : "https://support.f5.com/csp/article/K21430012"
  }, {
    "type" : "WEB",
    "url" : "https://patchwork.kernel.org/patch/10733769"
  }, {
    "type" : "WEB",
    "url" : "https://patchwork.kernel.org/cover/10733767"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2019/05/msg00002.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2019/04/msg00004.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2019/03/msg00034.html"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16884"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1660375"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2018-16884"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2020:2854"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2020:0204"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:3517"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:3309"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:2730"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:2696"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:1891"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:1873"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/106253"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-416" ],
    "severity" : "HIGH",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2018-12-18T22:29:00Z"
  }
}