CVE-2021-3997
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.
Description as published by the source, in English.
Key facts
- Published
- 2022-08-23
- Last modified
- 2026-11-02
- Assigned by
- secalert@redhat.com
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
1.6 %
higher than 73 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Fedoraproject | Fedora | 34 | Affected |
| Fedoraproject | Fedora | 35 | Affected |
| Redhat | Enterprise Linux | 7.0 | Affected |
| Redhat | Enterprise Linux | 8.0 | Affected |
| Redhat | Enterprise Linux | 9.0 | Affected |
| Systemd Project | Systemd | ≥ 240, < 250.2 | Affected |
Weakness type
-
CWE-674: Uncontrolled Recursion
The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.
References
- https://access.redhat.com/security/cve/CVE-2021-3997
- https://bugzilla.redhat.com/show_bug.cgi?id=2024639
- https://github.com/systemd/systemd/commit/5b1cf7a9be37e20133c0208005274ce4a5b5c6a1
- https://www.openwall.com/lists/oss-security/2022/01/10/2
- https://access.redhat.com/security/cve/CVE-2021-3997
- https://bugzilla.redhat.com/show_bug.cgi?id=2024639
- https://github.com/systemd/systemd/commit/5b1cf7a9be37e20133c0208005274ce4a5b5c6a1
- https://www.openwall.com/lists/oss-security/2022/01/10/2
- https://security.gentoo.org/glsa/202305-15
- https://security.gentoo.org/glsa/202305-15
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
Related at Berigo
Articles
-
Hijacked Rust crates ran malicious code during the build
Same product
2026-08-24
Three widely used Rust crates were republished on 20 August 2026 with a hidden dependency that ran malicious code during compilation. The Rust Securi…
-
Red Hat npm Miasma credential-stealing campaign
Same product
2026-06-05
32 npm packages under @redhat-cloud-services were modified with malware that steals cloud, SSH and AI tool credentials and spreads to further package…
-
Compromised npm packages steal developer and CI/CD secrets
Same product
2026-06-01
A new supply chain campaign has compromised npm packages under the @redhat-cloud-services namespace, running at install time to harvest secrets.
-
Twelve-year-old PackageKit flaw affects widely used Linux distributions
Same product
2026-04-22
Deutsche Telekom's red team has found a CVSS 8.8 privilege escalation flaw in the PackageKit daemon, fixed in version 1.3.5.
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.