Skip to content
Heist/ feed
Back to feed
Medium

snapd non-regular file indefinite blocking read

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-29068
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 02:05 UTC · Revision 1

Source evidence

snapd non-regular file indefinite blocking read

core-osv · Original source

Published 25 Jul 2024, 19:28 UTC

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.

osv:CVE-2024-29068
Complete source record
{
  "id": "f60d01b27be5b203b6e255815b653cdb41ffd90a32af07b0ac1a465229e16887",
  "url": "https://osv.dev/vulnerability/CVE-2024-29068",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "snapd non-regular file indefinite blocking read",
    "summary": "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.",
    "evidence": "osv:CVE-2024-29068",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-29068",
      "aliases": [
        "CVE-2024-29068",
        "GHSA-64jh-cjwc-w8q6",
        "GO-2024-3008"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/canonical/snapd",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "b749eda44d9f849855587dbd392571adac32e928"
                },
                {
                  "fixed": "b66fee81606a1c05f965a876ccbaf44174194063"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:canonical:snapd:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.62"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b66fee81606a1c05f965a876ccbaf44174194063"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "untagged-ec50ee5bfb45daefc236",
            "2.15.2",
            "2.15",
            "2.14.2.16.04",
            "2.14.1",
            "2.14",
            "2.13",
            "2.12",
            "2.11",
            "2.0.10",
            "2.0.9",
            "2.0.8",
            "2.0.7",
            "2.0.6",
            "2.0.5",
            "2.0.4",
            "2.0.3",
            "2.0",
            "1.9.4",
            "1.9.3",
            "1.9.2",
            "1.9.1",
            "1.9",
            "ppa",
            "1.7.3+20160310ubuntu1",
            "1.7.3+20160308ubuntu1",
            "1.7.3+20160303ubuntu4",
            "1.7.3+20160303ubuntu3",
            "1.7.3+20160303ubuntu2",
            "1.7.3+20160303ubuntu1",
            "1.7.3+20160225ubuntu1",
            "1.7.2+20160223ubuntu1",
            "1.7.2+20160204ubuntu1",
            "1.7.2+20160113ubuntu1",
            "1.7.2ubuntu1",
            "1.7ubuntu1",
            "1.6ubuntu1",
            "1.5ubuntu1",
            "1.4ubuntu1",
            "1.3ubuntu1",
            "1.2-0ubuntu1",
            "1.1.2-0ubuntu1",
            "1.1.1-0ubuntu1",
            "1.1-0ubuntu1",
            "1.0.1-0ubuntu1",
            "1.0-0ubuntu1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-29068.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:41.718953948Z",
      "provider": "osv",
      "references": [
        "https://github.com/snapcore/snapd/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/29xxx/CVE-2024-29068.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-29068",
        "https://github.com/snapcore/snapd/commit/b66fee81606a1c05f965a876ccbaf44174194063",
        "https://github.com/snapcore/snapd/pull/13682"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-20"
        ],
        "cna_assigner": "canonical",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/29xxx/CVE-2024-29068.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-29068",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 509344,
  "published_at": "2024-07-25T19:28:05.48+00:00"
}