Race Condition Affecting github.com/snapcore/snapd/overlord/snapstate package, versions <2.54.3


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.94% (59th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMSNAPCORESNAPDOVERLORDSNAPSTATE-2405944
  • published18 Feb 2022
  • disclosed18 Feb 2022
  • creditQualys Research Team

Introduced: 18 Feb 2022

CVE-2021-44731  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade github.com/snapcore/snapd/overlord/snapstate to version 2.54.3 or higher.

Overview

github.com/snapcore/snapd/overlord/snapstate is an app packages for desktop, cloud and IoT that update automatically, are easy to install, secure, cross-platform and dependency-free. They're being used on millions of Linux systems every day.

Affected versions of this package are vulnerable to Race Condition 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.

CVSS Base Scores

version 3.1