{"id":"CVE-2022-3328","published":"2024-01-08T18:04:10Z","modified":"2025-06-03T14:35:04Z","title":"Race condition in snap-confine's must_mkdir_and_open_with_perms()","vendor":"Canonical Ltd.","product":"snapd","tier":"tail","description":{"text":"Race condition in snap-confine's must_mkdir_and_open_with_perms()","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00384,"percentile":0.33288,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"references":[{"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-3328","tags":["issue-tracking"]},{"url":"https://ubuntu.com/security/notices/USN-5753-1","tags":["third-party-advisory"]}],"priority":{"score":17.1,"factors":[{"name":"EPSS percentile","points":6.66},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.46}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2022-12-01","earliestUrl":"https://github.com/Mr-xn/CVE-2022-3328","repos":[{"name":"Mr-xn/CVE-2022-3328","url":"https://github.com/Mr-xn/CVE-2022-3328","stars":4,"created":"2022-12-01"}]},"first":{"date":"2022-12-01","source":"PoC-in-GitHub","url":"https://github.com/Mr-xn/CVE-2022-3328"},"provenance":"source"},"vendorSlug":"canonical","affectedVersions":[{"vendor":"Canonical Ltd.","product":"snapd","versions":["< 2.61.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-05-08T20:08:36.326851Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/snapcore/snapd","vulnerableRanges":["<2.57.6","all versions"],"patched":["2.57.6"],"from":["GHSA-cjqf-877p-7m3f","GO-2024-2468"],"provenance":"source"}],"summary":{"text":"The flaw is a race condition in the must_mkdir_and_open_with_perms() function of snap-confine, a component of Canonical's snapd product, arising from improper synchronization when concurrent execution accesses a shared resource. An attacker with local access and low privileges, who can win the timing window and does not need user interaction, can exploit it to affect the confinement environment, with high impact to confidentiality, integrity and availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:22Z"},"euvd":{"id":"EUVD-2024-0335","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-canonical-ltd-snapd-cve-2019-11502","parents":[{"from":"CVE-2019-11502","to":"CVE-2022-3328","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["cmd/snap-confine/mount-support.c"],"commits":["https://github.com/snapcore/snapd/commit/bdbfeebef03245176ae0dc323392bb0522a339b1","https://github.com/snapcore/snapd/commit/21ebc51f00b8a1417888faa2e83a372fd29d0f5e","https://github.com/snapcore/snapd/commit/6226cdc57052f4b7057d92f2e549aa169e35cd2d"],"basis":"shared function","functions":["setup_private_mount"]}]}],"packageHistory":[{"cve":"CVE-2022-3328","published":"2024-01-08","fixed":"2.57.6","kev":false},{"cve":"CVE-2024-1724","published":"2024-07-25","fixed":"2.62","kev":false,"link":{"from":"CVE-2022-3328","to":"CVE-2024-1724","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/snapcore/snapd","fromFixed":"2.57.6","toFixed":"2.62","daysApart":199}]}},{"cve":"CVE-2024-29068","published":"2024-07-25","fixed":"2.62","kev":false,"link":{"from":"CVE-2022-3328","to":"CVE-2024-29068","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/snapcore/snapd","fromFixed":"2.57.6","toFixed":"2.62","daysApart":199}]}},{"cve":"CVE-2024-29069","published":"2024-07-25","fixed":"2.62","kev":false,"link":{"from":"CVE-2022-3328","to":"CVE-2024-29069","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/snapcore/snapd","fromFixed":"2.57.6","toFixed":"2.62","daysApart":199}]}}],"package":"Go:github.com/snapcore/snapd"}}