Time-of-check Time-of-use (TOCTOU) Affecting apport package, versions <2.20.11-0ubuntu22


Severity

Recommended
0.0
medium
0
10

Based on Ubuntu security rating

    Threat Intelligence

    EPSS
    0.07% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-UBUNTU2004-APPORT-584275
  • published 2 Apr 2020
  • disclosed 22 Apr 2020

How to fix?

Upgrade Ubuntu:20.04 apport to version 2.20.11-0ubuntu22 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream apport package and not the apport package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

Time-of-check Time-of-use Race Condition vulnerability on crash report ownership change in Apport allows for a possible privilege escalation opportunity. If fs.protected_symlinks is disabled, this can be exploited between the os.open and os.chown calls when the Apport cron script clears out crash files of size 0. A symlink with the same name as the deleted file can then be created upon which chown will be called, changing the file owner to root. Fixed in versions 2.20.1-0ubuntu2.23, 2.20.9-0ubuntu7.14, 2.20.11-0ubuntu8.8 and 2.20.11-0ubuntu22.

CVSS Scores

version 3.1
Expand this section

NVD

4.7 medium
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    None
  • Availability (A)
    None