CVE-2022-3328 snapd Race Condition vulnerability

High 7.8 Published Updated

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.

PackageAffectedFixed in
github.com/snapcore/snapd GoAll versionsNone
github.com/snapcore/snapd GoAll versions2.57.6
github.com/snapcore/snapd GoAll versions2.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.

All Canonical Ubuntu Linux vulnerabilities

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.

Is CVE-2022-3328 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free