Skip to main content
No exploitation reportedFix available

CVE-2021-3997

No exploitation reported by the sources we read.

  • Published2022-08-23
  • WeaknessCWE-674

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

A flaw was found in systemd. An uncontrolled recursion in systemd-tmpfiles may lead to a denial of service at boot time when too many nested directories are created in /tmp.

Timeline

dates in UTC
  1. 2022-08-23CVE publishedCNA

Versions per branch

NVD
Redhat enterprise linux
BranchAffectedFixed in
7.0= 7.0no fix published
8.0= 8.0no fix published
9.0= 9.0no fix published
Fedoraproject fedora
BranchAffectedFixed in
34.x= 34no fix published
35.x= 35no fix published
Systemd project systemd
BranchAffectedFixed in
250.2≥ 240, < 250.2250.2

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As redhat, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • systemd
    Affected
    • = Fixed in v251-rc1no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-05-03

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • htmldocSUSE:Package Hub 15 SP3all versions · fixed in 1.9.12-bp153.2.6.1
  • htmldocopenSUSE:Leap 15.3all versions · fixed in 1.9.12-bp153.2.6.1
  • systemdUbuntu:Pro:18.04:LTSall versions · no fixed version listed
  • systemdUbuntu:Pro:16.04:LTSall versions · no fixed version listed
  • systemdUbuntu:Pro:14.04:LTSall versions · no fixed version listed
  • systemdUbuntu:20.04:LTSall versions · fixed in 245.4-4ubuntu3.15
  • systemdSUSE:Linux Enterprise Module for Basesystem 15 SP3all versions · fixed in 246.16-7.33.1
  • systemdSUSE:Linux Enterprise Module for Basesystem 15 SP3all versions · fixed in 246.16-150300.7.39.1

13 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-3997 Red Hat Product Security20 known affected

    systemd: Uncontrolled recursion in systemd-tmpfiles when removing files

    libgudev1 as a component of Red Hat Enterprise Linux 7 · libgudev1-devel as a component of Red Hat Enterprise Linux 7 · systemd as a component of Red Hat Enterprise Linux 7 · +17 more

  • ICSA-23-348-10 CISA5 known affected

    Siemens SIMATIC S7-1500

    SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) · +2 more

  • SSA-398330 Siemens ProductCERT5 known affected

    SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5

    SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.0 < V3.1.5 · +2 more

Full record on NVD

Fix

  1. Vendor fix CISA ICSA-23-348-10 · 5 productsUpdate to V3.1.5 or later version
  2. Vendor fix Siemens ProductCERT SSA-398330 · 1 productUpdate to V3.1.5 or later version
  3. Workaround from the vendor Red Hat Product Security CVE-2021-3997 · 20 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
  4. Mitigation from the vendor CISA ICSA-23-348-10 · 5 productsOnly build and run applications from trusted sources.
  5. No fix available, says the vendor Red Hat Product Security CVE-2021-3997 · 9 productsFix deferred
  6. No fix planned, says the vendor Red Hat Product Security CVE-2021-3997 · 11 productsOut of support scope

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Published
2022-08-23
Last Modified
2026-11-02
NVD status
Modified
GitHub Advisory
GHSA-4p54-q58q-8mpc

Frequently asked questions

What is CVE-2021-3997?

A flaw was found in systemd. An uncontrolled recursion in systemd-tmpfiles may lead to a denial of service at boot time when too many nested directories are created in /tmp.

Is CVE-2021-3997 actively exploited?

Active exploitation of CVE-2021-3997 has not been confirmed. Its EPSS score was 1.7% on 2026-11-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-3997?

CVE-2021-3997 has a CVSS v3 base score of 5.5 (MEDIUM severity), with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.

Running systemd? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record