snapd — security advisory
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
- Products
- snapd
- Affected versions
- Not specified
- Fixed versions
- 2.54.3-1
- CVEs
- CVE-2021-44731
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 00:44 UTC · Revision 1
Source evidence
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
osv:DEBIAN-CVE-2021-44731
snapd
Fixed versions: 2.54.3-1
snapd
Fixed versions: 2.54.3-1
snapd
Fixed versions: 2.54.3-1
Complete source record
{
"id": "a7777f6c89ce7c389989d625bf3ce0bde95101e146ead924264b6c87e86be2ec",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-44731",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2021-44731",
"summary": "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",
"evidence": "osv:DEBIAN-CVE-2021-44731",
"products": [
{
"name": {
"value": "snapd",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.54.3-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "snapd",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.54.3-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "snapd",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.54.3-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2021-44731",
"aliases": [
"DEBIAN-CVE-2021-44731"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.54.3-1"
}
]
}
],
"package": {
"name": "snapd",
"purl": "pkg:deb/debian/snapd?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-44731.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.54.3-1"
}
]
}
],
"package": {
"name": "snapd",
"purl": "pkg:deb/debian/snapd?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-44731.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.54.3-1"
}
]
}
],
"package": {
"name": "snapd",
"purl": "pkg:deb/debian/snapd?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-44731.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:03:39.100836154Z",
"provider": "osv",
"upstream": [
"CVE-2021-44731"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2021-44731"
]
},
"related_cves": [
{
"value": "CVE-2021-44731",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 422135,
"published_at": "2022-02-17T23:15:07.473+00:00"
}