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.

Severity (CVSS 3.1)5.8Medium
Exploit odds (30 days)0.2%top 88.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12snapdno fix listedDEBIAN-CVE-2024-29068
Debian:13snapd2.62-1DEBIAN-CVE-2024-29068
Debian:14snapd2.62-1DEBIAN-CVE-2024-29068
Gogithub.com/snapcore/snapd2.62GHSA-64jh-cjwc-w8q6
Gogithub.com/snapcore/snapdno fix listedGO-2024-3008
Ubuntu:22.04:LTSsnapd2.63+22.04ubuntu0.1USN-6940-1
Ubuntu:22.04:LTSsnapd2.63+22.04ubuntu0.1UBUNTU-CVE-2024-29068
Ubuntu:24.04:LTSsnapd2.63+24.04ubuntu0.1UBUNTU-CVE-2024-29068
Ubuntu:24.04:LTSsnapd2.63+24.04ubuntu0.1USN-6940-1

Affected products (as reported)

VendorProductVersions
Canonical snapd 0 – before 2.62

Weakness: CWE-20 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:H

References