---
title: "CVE-2021-44731"
canonical_url: "https://pkgseek.com/security/CVE-2021-44731"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2021-44731

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

CVE-2021-44731 is rated HIGH (7.8), with 4 indexed affected package builds across 1 distributions.

- **Severity / Score**: HIGH (7.8)
- **Affected builds**: 4
- **Affected distros**: 1
- **Distros with fixed_in**: Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Ubuntu | focal | golang-github-snapcore-snapd-dev | 2.44.3+20.04 | 2.54.3+20.04 |
| Ubuntu | focal | golang-github-ubuntu-core-snappy-dev | 2.44.3+20.04 | 2.54.3+20.04 |
| Ubuntu | focal | snapd | 2.44.3+20.04 | 2.54.3+20.04 |
| Ubuntu | focal | ubuntu-core-snapd-units | 2.44.3+20.04 | 2.54.3+20.04 |
