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


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (20th 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 Learn

Learn about Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMSNAPCORESNAPDOVERLORDDEVICESTATE-2405838
  • 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/devicestate to version 2.54.3 or higher.

Overview

github.com/snapcore/snapd/overlord/devicestate 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 Scores

version 3.1