CVE-2024-29068snapd non-regular file indefinite blocking read
In snapd versions prior to 2.62, snapd failed to properly check the file type when extracting a snap. The snap format is a squashfs file-system image and so can contain files that are non-regular files (such as pipes or sockets etc). Various file entries within the snap squashfs image (such as icons etc) are directly read by snapd when it is extracted. An attacker who could convince a user to install a malicious snap which contained non-regular files at these paths could then cause snapd to block indefinitely trying to read from such files and cause a denial of service.
What to do
Fixed builds are available from Debian, Go, Ubuntu: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | snapd | Fixed | 2.63+24.04ubuntu0.1 | UBUNTU-CVE-2024-29068 |
| Ubuntu 22.04 | snapd | Fixed | 2.63+22.04ubuntu0.1 | UBUNTU-CVE-2024-29068 |
| Ubuntu 20.04 | snapd | Fixed | 2.63+20.04ubuntu0.1 | UBUNTU-CVE-2024-29068 |
| Ubuntu 18.04 | snapd | Fix pending | 2.61.4ubuntu0.18.04.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-29068 |
| Ubuntu 16.04 | snapd | Fix pending | 2.61.4ubuntu0.16.04.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-29068 |
| Debian 14 | snapd | Fixed | 2.62-1 | DEBIAN-CVE-2024-29068 |
| Debian 13 | snapd | Fixed | 2.62-1 | DEBIAN-CVE-2024-29068 |
| Debian 12 | snapd | Fix pending | DEBIAN-CVE-2024-29068 | |
| Go library | github.com/snapcore/snapd | Fixed | 2.62 | GHSA-64jh-cjwc-w8q6 |
What the vendor says
As published in the CVE record by canonical, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Canonical snapd: affected: before 2.62; fixed in
2.62
References
- https://github.com/snapcore/snapd/commit/b66fee81606a1c05f965a876ccbaf44174194063
- https://github.com/snapcore/snapd/pull/13682
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.