CVE-2021-3997

Summary

CVECVE-2021-3997
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-08-23 20:15:08 UTC
Updated2026-10-14 10:17:49 UTC
DescriptionA 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.

Risk And Classification

Primary CVSS: v3.1 5.5 MEDIUM from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Problem Types: CWE-674 | CWE-674 CWE-674 - Uncontrolled Recursion

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Fedoraproject Fedora 34 All All All
Operating System Fedoraproject Fedora 35 All All All
Operating System Redhat Enterprise Linux 7.0 All All All
Operating System Redhat Enterprise Linux 8.0 All All All
Operating System Redhat Enterprise Linux 9.0 All All All
Application Systemd Project Systemd All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na Systemd affected Fixed in v251-rc1 Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified
ADP Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP affected V3.1.0 V3.1.5 custom Not specified

References

ReferenceSourceLinkTags
cert-portal.siemens.com/productcert/html/ssa-398330.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
shared/rm-rf: loop over nested directories instead of instead of recu… · systemd/systemd@5b1cf7a · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com Patch, Third Party Advisory
Red Hat Customer Portal - Access to 24x7 support and knowledge af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Issue Tracking, Third Party Advisory
systemd: Multiple Vulnerabilities (GLSA 202305-15) — Gentoo security af854a3a-2127-422b-91ae-364da2661108 security.gentoo.org
oss-security - CVE-2021-3997: Uncontrolled recursion in systemd's systemd-tmpfiles af854a3a-2127-422b-91ae-364da2661108 www.openwall.com Exploit, Mailing List, Third Party Advisory
2024639 – (CVE-2021-3997) CVE-2021-3997 systemd: Uncontrolled recursion in systemd-tmpfiles when removing files af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com Issue Tracking, Patch, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 179586 Debian Security Update for systemd (CVE-2021-3997)
  • 198629 Ubuntu Security Notification for systemd Vulnerability (USN-5226-1)
  • 282242 Fedora Security Update for systemd (FEDORA-2022-f38f479b8f)
  • 282293 Fedora Security Update for systemd (FEDORA-2022-af1728fea9)
  • 354291 Amazon Linux Security Advisory for systemd : ALAS2022-2022-219
  • 354395 Amazon Linux Security Advisory for systemd : ALAS2022-2022-052
  • 354518 Amazon Linux Security Advisory for systemd : ALAS2022-2022-040
  • 354567 Amazon Linux Security Advisory for systemd : ALAS-2022-219
  • 355284 Amazon Linux Security Advisory for systemd : ALAS2023-2023-025
  • 376419 Snap-Confine Local Privilege Escalation Vulnerability (Oh Snap! More Lemmings)
  • 591406 Siemens SIMATIC S7-1500 CPU GNU/Linux subsystem Multiple Vulnerabilities (SSB-439005, ICSA-22-104-13)
  • 671469 EulerOS Security Update for systemd (EulerOS-SA-2022-1439)
  • 671483 EulerOS Security Update for systemd (EulerOS-SA-2022-1460)
  • 671486 EulerOS Security Update for systemd (EulerOS-SA-2022-1497)
  • 671489 EulerOS Security Update for systemd (EulerOS-SA-2022-1516)
  • 710708 Gentoo Linux systemd Multiple Vulnerabilities (GLSA 202305-15)
  • 751593 OpenSUSE Security Update for systemd (openSUSE-SU-2022:0043-1)
  • 751736 OpenSUSE Security Update for systemd (openSUSE-SU-2022:0539-1)
  • 751998 SUSE Enterprise Linux Security Update for systemd (SUSE-SU-2022:0043-1)
  • 752002 SUSE Enterprise Linux Security Update for systemd (SUSE-SU-2022:0539-1)
  • 903771 Common Base Linux Mariner (CBL-Mariner) Security Update for systemd (10648)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report