CVE-2022-3328 snapd Race Condition vulnerability
A race condition in snap-confine allows local attackers to escalate privileges by manipulating directory permissions during creation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-3328?
CVE-2022-3328 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 8 Jan 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Race condition in snap-confine's must_mkdir_and_open_with_perms()
Weakness: CWE-362
Which versions are affected by CVE-2022-3328?
3 open source packages ship an affected version, including github.com/snapcore/snapd. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
github.com/snapcore/snapd Go | All versions | None |
github.com/snapcore/snapd Go | All versions | 2.57.6 |
github.com/snapcore/snapd Go | All versions | 2.57.6 |
Products include Canonical Snapd, Canonical Ubuntu Linux.
How do I fix CVE-2022-3328?
Upgrade github.com/snapcore/snapd to 2.57.6 or later.
Is CVE-2022-3328 being exploited?
There is no known exploitation of CVE-2022-3328 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Canonical Ubuntu Linux
- CVE-2023-1523 Command injection in snapd
- CVE-2020-27352 Privilege escalation in snapd
- CVE-2019-7304 Local privilege escalation via snapd socket
- CVE-2021-4120 snapd could be made to bypass intended access restrictions through snap content interfaces and layout paths
- CVE-2024-5138 CVE-2024-5138: snapd snapctl auth bypass
Sources
Also known as DEBIAN-CVE-2022-3328, DLA-3215-1, DSA-5292-1, GHSA-cjqf-877p-7m3f, GO-2024-2468, UBUNTU-CVE-2022-3328 and 1 more.