{"schemaVersion":3,"id":"CVE-2021-44731","aliases":["UBUNTU-CVE-2021-44731","DEBIAN-CVE-2021-44731"],"status":"published","duplicateOf":null,"title":null,"description":"A race condition existed in the snapd 2.54.2 snap-confine binary when preparing a private mount namespace for a snap. This could allow a local attacker to gain root privileges by bind-mounting their own contents inside the snap's private mount namespace and causing snap-confine to execute arbitrary code and hence gain privilege escalation. Fixed in snapd versions 2.54.3+18.04, 2.54.3+20.04 and 2.54.3+21.10.1","dates":{"published":"2022-02-17T00:00:00.000Z","modified":"2024-08-04T04:32:12.887Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":2.8,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":2.8,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.9,"severity":"medium","vector":"AV:L/AC:M/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00952,"percentile":0.60624,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.00952},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00944,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00952,"percentile":0.60624}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00952,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00952,"percentile":0.60624}]},"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_500D121F512A2C95","name":"Exploit Reference (openwall.com)","source":"reference","url":"http://www.openwall.com/lists/oss-security/2022/02/23/1","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_118B928129B6592B","name":"Exploit Reference (openwall.com)","source":"reference","url":"http://www.openwall.com/lists/oss-security/2022/11/30/2","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_5006F67F0812B4FC","name":"Exploit Reference (seclists.org)","source":"reference","url":"http://seclists.org/fulldisclosure/2022/Dec/4","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_83407140E3486034","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/170176/snap-confine-must_mkdir_and_open_with_perms-Race-Condition.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":4,"weaknesses":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')","description":"The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/362.html"}],"affected":[{"vendor":"canonical ltd.","product":"snapd","name":"snapd","label":"snapd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, ≤ 2.54.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, ≤ 2.54.2","eol":null,"hubHref":"/vendor/canonical_ltd/snapd"},{"vendor":"canonical","product":"snapd","name":"snapd","label":"snapd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 2.54.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 2.54.2","eol":null,"hubHref":"/vendor/canonical/snapd"},{"vendor":"canonical","product":"ubuntu_linux","name":"ubuntu linux","label":"ubuntu_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"18.04","noFixRecorded":false,"fixedIn":null},{"text":"20.04","noFixRecorded":false,"fixedIn":null},{"text":"21.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"18.04 | 20.04 | 21.10","eol":{"isEol":true,"eolDate":"2023-05-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"18.04","label":"18.04 'Bionic Beaver' (LTS)","eolFrom":"2023-05-31T00:00:00.000Z","isLts":true,"isMaintained":true,"latestVersion":"18.04.6"},"product":{"name":"ubuntu","label":"Ubuntu","category":"os"}},"hubHref":"/vendor/canonical/ubuntu_linux"},{"vendor":"debian","product":"snapd","name":"snapd","label":"snapd","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/snapd","purlType":"deb","versions":[{"text":"< 2.54.3-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.54.3-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"snapd","name":"snapd","label":"snapd","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/snapd","purlType":"deb","versions":[{"text":"< 2.54.3+14.04~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.54.3+16.04~esm2","noFixRecorded":false,"fixedIn":null},{"text":"< 2.54.3+18.04","noFixRecorded":false,"fixedIn":null},{"text":"< 2.54.3+20.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.54.3+14.04~esm1 | < 2.54.3+16.04~esm2 | < 2.54.3+18.04 | < 2.54.3+20.04.1","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.0","noFixRecorded":false,"fixedIn":null},{"text":"11.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.0 | 11.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10","label":"10 (Buster)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"10.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"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"}],"affectedCount":7,"eol":{"hasEol":true,"count":3},"references":[{"url":"https://ubuntu.com/security/notices/USN-5292-1","label":"ubuntu.com/security/notices/USN-5292-1","hostname":"ubuntu.com","tags":["Advisory","Patch","Vendor Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2022/02/18/2","label":"www.openwall.com/lists/oss-security/2022/02/18/2","hostname":"www.openwall.com","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3QTBN7LLZISXIA4KU4UKDR27Q5PXDS2U/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XCGHG6LJAVJJ72TMART6A7N4Z6MSTGI7/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory"]},{"url":"https://www.debian.org/security/2022/dsa-5080","label":"www.debian.org/security/2022/dsa-5080","hostname":"www.debian.org","tags":["Vendor Advisory","Issue Tracking","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2022/02/23/1","label":"www.openwall.com/lists/oss-security/2022/02/23/1","hostname":"www.openwall.com","tags":["Mailing List","Exploit","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2022/02/23/2","label":"www.openwall.com/lists/oss-security/2022/02/23/2","hostname":"www.openwall.com","tags":["Mailing List","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2022/11/30/2","label":"www.openwall.com/lists/oss-security/2022/11/30/2","hostname":"www.openwall.com","tags":["Mailing List","Exploit","Third Party Advisory"]},{"url":"http://seclists.org/fulldisclosure/2022/Dec/4","label":"seclists.org/fulldisclosure/2022/Dec/4","hostname":"seclists.org","tags":["Mailing List","Exploit","Third Party Advisory"]},{"url":"http://packetstormsecurity.com/files/170176/snap-confine-must_mkdir_and_open_with_perms-Race-Condition.html","label":"packetstormsecurity.com/files/170176/snap-confine-must_mkdir_and_open_with_perms-Race-Condition.html","hostname":"packetstormsecurity.com","tags":["Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://ubuntu.com/security/CVE-2021-44731","label":"ubuntu.com/security/CVE-2021-44731","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.openwall.com/lists/oss-security/2022/02/17/2","label":"www.openwall.com/lists/oss-security/2022/02/17/2","hostname":"www.openwall.com","tags":["REPORT"]},{"url":"https://github.com/snapcore/snapd/commit/f3f669d720ed8b0bcb73da7789843bf43b5c16cf","label":"github.com/snapcore/snapd/commit/f3f669d720ed8b0bcb73da7789843bf43b5c16cf","hostname":"github.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-44731","label":"www.cve.org/CVERecord?id=CVE-2021-44731","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5292-3","label":"ubuntu.com/security/notices/USN-5292-3","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-5292-2","label":"ubuntu.com/security/notices/USN-5292-2","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-44731","label":"security-tracker.debian.org/tracker/CVE-2021-44731","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DSA-5080-1","USN-5292-1","USN-5292-2","USN-5292-3"],"duplicates":[],"related":["USN-5292-1","USN-5292-2","USN-5292-3"]},"timeline":[{"kind":"published","date":"2022-02-17T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T04:32:12.887Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T13:29:33.055Z","stale":false,"partial":false}}