ID CVE-2018-1121
Summary procps-ng, procps is vulnerable to a process hiding through race condition. Since the kernel's proc_pid_readdir() returns PID entries in ascending numeric order, a process occupying a high PID can use inotify events to determine when the process list is being scanned, and fork/exec to obtain a lower PID, thus avoiding enumeration. An unprivileged attacker can hide a process from procps-ng's utilities by exploiting a race condition in reading /proc/PID entries. This vulnerability affects procps and procps-ng up to version 3.3.15, newer versions might be affected also.
References
Vulnerable Configurations
  • cpe:2.3:a:procps_project:procps:3.3.0:*:*:*:*:*:*:*
    cpe:2.3:a:procps_project:procps:3.3.0:*:*:*:*:*:*:*
  • cpe:2.3:a:procps_project:procps:3.3.1:*:*:*:*:*:*:*
    cpe:2.3:a:procps_project:procps:3.3.1:*:*:*:*:*:*:*
  • cpe:2.3:a:procps_project:procps:3.3.2:*:*:*:*:*:*:*
    cpe:2.3:a:procps_project:procps:3.3.2:*:*:*:*:*:*:*
  • cpe:2.3:a:procps_project:procps:3.3.3:*:*:*:*:*:*:*
    cpe:2.3:a:procps_project:procps:3.3.3:*:*:*:*:*:*:*
  • cpe:2.3:a:procps_project:procps:3.3.4:*:*:*:*:*:*:*
    cpe:2.3:a:procps_project:procps:3.3.4:*:*:*:*:*:*:*
  • cpe:2.3:a:procps_project:procps:3.3.5:*:*:*:*:*:*:*
    cpe:2.3:a:procps_project:procps:3.3.5:*:*:*:*:*:*:*
  • cpe:2.3:a:procps_project:procps:3.3.6:*:*:*:*:*:*:*
    cpe:2.3:a:procps_project:procps:3.3.6:*:*:*:*:*:*:*
  • cpe:2.3:a:procps_project:procps:3.3.7:*:*:*:*:*:*:*
    cpe:2.3:a:procps_project:procps:3.3.7:*:*:*:*:*:*:*
  • cpe:2.3:a:procps_project:procps:3.3.8:*:*:*:*:*:*:*
    cpe:2.3:a:procps_project:procps:3.3.8:*:*:*:*:*:*:*
  • cpe:2.3:a:procps_project:procps:3.3.9:*:*:*:*:*:*:*
    cpe:2.3:a:procps_project:procps:3.3.9:*:*:*:*:*:*:*
  • cpe:2.3:a:procps_project:procps:3.3.10:*:*:*:*:*:*:*
    cpe:2.3:a:procps_project:procps:3.3.10:*:*:*:*:*:*:*
  • cpe:2.3:a:procps_project:procps:3.3.11:*:*:*:*:*:*:*
    cpe:2.3:a:procps_project:procps:3.3.11:*:*:*:*:*:*:*
  • cpe:2.3:a:procps_project:procps:3.3.12:*:*:*:*:*:*:*
    cpe:2.3:a:procps_project:procps:3.3.12:*:*:*:*:*:*:*
  • cpe:2.3:a:procps_project:procps:3.3.13:-:*:*:*:*:*:*
    cpe:2.3:a:procps_project:procps:3.3.13:-:*:*:*:*:*:*
  • cpe:2.3:a:procps_project:procps:3.3.13:rc1:*:*:*:*:*:*
    cpe:2.3:a:procps_project:procps:3.3.13:rc1:*:*:*:*:*:*
  • cpe:2.3:a:procps_project:procps:3.3.14:*:*:*:*:*:*:*
    cpe:2.3:a:procps_project:procps:3.3.14:*:*:*:*:*:*:*
  • cpe:2.3:a:procps_project:procps:3.3.15:*:*:*:*:*:*:*
    cpe:2.3:a:procps_project:procps:3.3.15:*:*:*:*:*:*:*
CVSS
Base: 4.3 (as of 30-06-2020 - 16:15)
Impact:
Exploitability:
CWE CWE-362
CAPEC
  • Leveraging Race Conditions
    The adversary targets a race condition occurring when multiple processes access and manipulate the same resource concurrently, and the outcome of the execution depends on the particular order in which the access takes place. The adversary can leverage a race condition by "running the race", modifying the resource and modifying the normal execution flow. For instance, a race condition can occur while accessing a file: the adversary can trick the system by replacing the original file with his version and cause the system to read the malicious file.
  • Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions
    This attack targets a race condition occurring between the time of check (state) for a resource and the time of use of a resource. A typical example is file access. The adversary can leverage a file access race condition by "running the race", meaning that they would modify the resource between the first time the target program accesses the file and the time the target program uses the file. During that period of time, the adversary could replace or modify the file, causing the application to behave unexpectedly.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
NONE PARTIAL NONE
cvss-vector via4 AV:N/AC:M/Au:N/C:N/I:P/A:N
refmap via4
bid 104214
confirm https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-1121
exploit-db 44806
misc https://www.qualys.com/2018/05/17/procps-ng-audit-report-advisory.txt
mlist [oss-security] 20180517 Qualys Security Advisory - Procps-ng Audit Report
Last major update 30-06-2020 - 16:15
Published 13-06-2018 - 20:29
Last modified 30-06-2020 - 16:15
Back to Top