Vulnerability · Published Jul 25, 2024 · Assigned by canonical
CVE-2024-29068snapd non-regular file indefinite blocking read
Medium 5.8
In plain English
A medium-severity improper input validation in snapd from Canonical. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | snapd | no fix listed | DEBIAN-CVE-2024-29068 |
| Debian:13 | snapd | 2.62-1 | DEBIAN-CVE-2024-29068 |
| Debian:14 | snapd | 2.62-1 | DEBIAN-CVE-2024-29068 |
| Go | github.com/snapcore/snapd | 2.62 | GHSA-64jh-cjwc-w8q6 |
| Go | github.com/snapcore/snapd | no fix listed | GO-2024-3008 |
| Ubuntu:22.04:LTS | snapd | 2.63+22.04ubuntu0.1 | USN-6940-1 |
| Ubuntu:22.04:LTS | snapd | 2.63+22.04ubuntu0.1 | UBUNTU-CVE-2024-29068 |
| Ubuntu:24.04:LTS | snapd | 2.63+24.04ubuntu0.1 | UBUNTU-CVE-2024-29068 |
| Ubuntu:24.04:LTS | snapd | 2.63+24.04ubuntu0.1 | USN-6940-1 |
Affected products (as reported)
Weakness: CWE-20 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:H