CVE-2022-25326 Denial of Service in fscrypt

Medium 5.5 Published Updated

Unprivileged users can exhaust filesystem space because fscrypt creates world-writable directories by default during setup.

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-25326?

CVE-2022-25326 is a medium-severity denial of service vulnerability in Google LLC fscrypt, published on 25 Feb 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

fscrypt through v0.3.2 creates a world-writable directory by default when setting up a filesystem, allowing unprivileged users to exhaust filesystem space. We recommend upgrading to fscrypt 0.3.3 or above and adjusting the permissions on existing fscrypt metadata directories where applicable.

Weakness: CWE-400

Which versions are affected by CVE-2022-25326?

5 open source packages ship an affected version, including github.com/google/fscrypt. It affects 1 product.

PackageAffectedFixed in
github.com/google/fscrypt GoAll versions0.3.3
github.com/google/fscrypt GoAll versions0.3.3
github.com/google/fscrypt GoAll versions0.3.3
github.com/google/fscrypt GoAll versions0.3.3
github.com/google/fscrypt GoAll versions0.3.3

Products include Google Fscrypt.

How do I fix CVE-2022-25326?

Upgrade github.com/google/fscrypt to 0.3.3 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2022-25326 being exploited?

There is no known exploitation of CVE-2022-25326 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2022-25326, GHSA-chxf-fjcf-7fwp, GHSA-mpq4-rjj8-fjph, GO-2022-0339, UBUNTU-CVE-2022-25326.

Is CVE-2022-25326 in your software?

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

Check your SBOMs for free