CVE-2021-3997
Summary
| CVE | CVE-2021-3997 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-08-23 20:15:08 UTC |
| Updated | 2026-10-14 10:17:49 UTC |
| 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. |
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
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS: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)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| 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
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| 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
| Reference | Source | Link | Tags |
|---|---|---|---|
| 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 |
No vendor comments have been submitted for this CVE.
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)