Race Condition Affecting snapd package, versions <2.54.3-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.95% (60th 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-ECHOLATEST-SNAPD-18170106
  • published22 Jul 2026
  • disclosed17 Feb 2022

Introduced: 17 Feb 2022

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

How to fix?

Upgrade Echo:latest snapd to version 2.54.3-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream snapd package and not the snapd package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

A race condition existed in the snapd 2.54.2 snap-confine binary 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. Fixed in snapd versions 2.54.3+18.04, 2.54.3+20.04 and 2.54.3+21.10.1

CVSS Base Scores

version 3.1