# CVE-2021-3997: A flaw was found in systemd.

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.74%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-08-23T00:00:00.000Z
- Modified: 2026-11-02T19:17:44.970Z
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- systemd: Fixed in v251-rc1
- systemd_project systemd: from 240 before 250.2
- fedoraproject fedora: 34; 35
- redhat enterprise_linux: 7.0; 8.0; 9.0

## References

- <https://www.openwall.com/lists/oss-security/2022/01/10/2> (exploit, mailing-list, third-party-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2024639> (issue-tracking, patch, third-party-advisory)
- <https://github.com/systemd/systemd/commit/5b1cf7a9be37e20133c0208005274ce4a5b5c6a1> (patch, third-party-advisory)
- <https://access.redhat.com/security/cve/CVE-2021-3997> (issue-tracking, third-party-advisory)
- <https://security.gentoo.org/glsa/202305-15> (vendor-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>

## Sources

- CVE List: [CVE-2021-3997](https://www.cve.org/CVERecord?id=CVE-2021-3997), CVE Terms of Use, modified 2026-11-02
- NVD: [CVE-2021-3997](https://nvd.nist.gov/vuln/detail/CVE-2021-3997), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2021-3997 · Whole record: https://cve.day/CVE-2021-3997.json · Rebuilt by cve.day 2026-11-25T22:58:07.777Z
