{"schemaVersion":3,"id":"CVE-2021-3997","aliases":["MGASA-2022-0016","SUSE-SU-2022:0043-1","SUSE-SU-2022:0539-1","openSUSE-SU-2022:0043-1","UBUNTU-CVE-2021-3997","USN-5226-1","DEBIAN-CVE-2021-3997","openSUSE-SU-2022:0539-1","openSUSE-SU-2024:11731-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-08-23T00:00:00.000Z","modified":"2026-10-14T09:49:55.103Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0172,"percentile":0.77153,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.1600000000000001,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.0156},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0156,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0156,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0156,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0156,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0156,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0156,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0156,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0156,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0156,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01547,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01701,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01701,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01701,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0172,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0172,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0172,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0172,"percentile":0.77153}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.0156,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0156,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0156,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01547,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01694,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01701,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01701,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01701,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0172,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0172,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0172,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0172,"percentile":0.77153}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_EA3C2C5E72AB005B","name":"Exploit Reference (openwall.com)","source":"reference","url":"https://www.openwall.com/lists/oss-security/2022/01/10/2","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-674","name":"Uncontrolled Recursion","description":"The product does not properly control the amount of recursion that takes place,  consuming excessive resources, such as allocated memory or the program stack.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/674.html"}],"affected":[{"vendor":"debian","product":"systemd","name":"systemd","label":"systemd","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/systemd","purlType":"deb","versions":[{"text":"< 250.2-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 250.2-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"systemd","name":"systemd","label":"systemd","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/systemd","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 245.4-4ubuntu3.15","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 245.4-4ubuntu3.15","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"34","noFixRecorded":false,"fixedIn":null},{"text":"35","noFixRecorded":false,"fixedIn":null}],"versionsText":"34 | 35","eol":{"isEol":true,"eolDate":"2022-06-07T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"34","label":"34","eolFrom":"2022-06-07T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"mageia","product":"systemd","name":"systemd","label":"systemd","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/systemd","purlType":"rpm","versions":[{"text":"< 246.16-2.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 246.16-2.mga8","eol":null,"hubHref":null},{"vendor":"redhat","product":"enterprise_linux","name":"enterprise linux","label":"enterprise_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null},{"text":"8.0","noFixRecorded":false,"fixedIn":null},{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0 | 8.0 | 9.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"7","label":"7 (ELS)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":true,"isMaintained":true,"latestVersion":"7.9"},"product":{"name":"rhel","label":"Red Hat Enterprise Linux","category":"os"}},"hubHref":"/vendor/redhat/enterprise_linux"},{"vendor":"opensuse","product":"htmldoc&distro=openSUSE Leap 15.3","name":"htmldoc","label":"htmldoc&distro=openSUSE Leap 15.3","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/htmldoc&distro=openSUSE Leap 15.3","purlType":"rpm","versions":[{"text":"< 1.9.12-bp153.2.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.9.12-bp153.2.6.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"systemd&distro=openSUSE Leap 15.3","name":"systemd","label":"systemd&distro=openSUSE Leap 15.3","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/systemd&distro=openSUSE Leap 15.3","purlType":"rpm","versions":[{"text":"< 246.16-7.33.1","noFixRecorded":false,"fixedIn":null},{"text":"< 246.16-150300.7.39.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 246.16-7.33.1 | < 246.16-150300.7.39.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"systemd&distro=openSUSE Tumbleweed","name":"systemd","label":"systemd&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/systemd&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 249.7-3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 249.7-3.1","eol":null,"hubHref":null},{"vendor":"suse","product":"htmldoc&distro=SUSE Package Hub 15 SP3","name":"htmldoc","label":"htmldoc&distro=SUSE Package Hub 15 SP3","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/htmldoc&distro=SUSE Package Hub 15 SP3","purlType":"rpm","versions":[{"text":"< 1.9.12-bp153.2.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.9.12-bp153.2.6.1","eol":null,"hubHref":null},{"vendor":"suse","product":"systemd&distro=SUSE Linux Enterprise Micro 5.1","name":"systemd","label":"systemd&distro=SUSE Linux Enterprise Micro 5.1","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/systemd&distro=SUSE Linux Enterprise Micro 5.1","purlType":"rpm","versions":[{"text":"< 246.16-7.33.1","noFixRecorded":false,"fixedIn":null},{"text":"< 246.16-150300.7.39.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 246.16-7.33.1 | < 246.16-150300.7.39.1","eol":null,"hubHref":null},{"vendor":"suse","product":"systemd&distro=SUSE Linux Enterprise Module for Basesystem 15 SP3","name":"systemd","label":"systemd&distro=SUSE Linux Enterprise Module for Basesystem 15 SP3","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/systemd&distro=SUSE Linux Enterprise Module for Basesystem 15 SP3","purlType":"rpm","versions":[{"text":"< 246.16-7.33.1","noFixRecorded":false,"fixedIn":null},{"text":"< 246.16-150300.7.39.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 246.16-7.33.1 | < 246.16-150300.7.39.1","eol":null,"hubHref":null},{"vendor":"systemd_project","product":"systemd","name":"systemd","label":"systemd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 240, < 250.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 240, < 250.2","eol":null,"hubHref":"/vendor/systemd_project/systemd"}],"affectedCount":12,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2024639","label":"bugzilla.redhat.com/show_bug.cgi?id=2024639","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://www.openwall.com/lists/oss-security/2022/01/10/2","label":"www.openwall.com/lists/oss-security/2022/01/10/2","hostname":"www.openwall.com","tags":["WEB","Exploit","Mailing List","Third Party Advisory"]},{"url":"https://github.com/systemd/systemd/commit/5b1cf7a9be37e20133c0208005274ce4a5b5c6a1","label":"github.com/systemd/systemd/commit/5b1cf7a9be37e20133c0208005274ce4a5b5c6a1","hostname":"github.com","tags":["Patch","Third Party Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-3997","label":"access.redhat.com/security/cve/CVE-2021-3997","hostname":"access.redhat.com","tags":["Issue Tracking","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/202305-15","label":"security.gentoo.org/glsa/202305-15","hostname":"security.gentoo.org","tags":["Vendor Advisory"]},{"url":"https://advisories.mageia.org/MGASA-2022-0016.html","label":"advisories.mageia.org/MGASA-2022-0016.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29864","label":"bugs.mageia.org/show_bug.cgi?id=29864","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://vulners.com/redhatcve/RH:CVE-2021-3997","label":"vulners.com/redhatcve/RH:CVE-2021-3997","hostname":"vulners.com","tags":["Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/BMN5QRPEKDGOKDHBMC6SXHPA733I43MV/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["WEB","Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-5226-1","label":"ubuntu.com/security/notices/USN-5226-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2022/suse-su-20220043-1/","label":"www.suse.com/support/update/announcement/2022/suse-su-20220043-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1178561","label":"bugzilla.suse.com/1178561","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://bugzilla.suse.com/1190515","label":"bugzilla.suse.com/1190515","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://bugzilla.suse.com/1194178","label":"bugzilla.suse.com/1194178","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2021-3997","label":"www.suse.com/security/cve/CVE-2021-3997","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://www.suse.com/support/update/announcement/2022/suse-su-20220539-1/","label":"www.suse.com/support/update/announcement/2022/suse-su-20220539-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1191826","label":"bugzilla.suse.com/1191826","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://bugzilla.suse.com/1192637","label":"bugzilla.suse.com/1192637","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/CVE-2021-3997","label":"ubuntu.com/security/CVE-2021-3997","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3997","label":"www.cve.org/CVERecord?id=CVE-2021-3997","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3997","label":"security-tracker.debian.org/tracker/CVE-2021-3997","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/VLDAI5QR7ALPYFJ4GNL2TIX7IMLOLXUU/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3997","label":"nvd.nist.gov/vuln/detail/CVE-2021-3997","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","label":"cert-portal.siemens.com/productcert/html/ssa-398330.html","hostname":"cert-portal.siemens.com","tags":[]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-08-23T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-14T09:49:55.103Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T14:28:15.136Z","stale":false,"partial":false}}