Skip to content
Heist/ feed
Back to feed
MediumFix available

incus, lxd — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-40251

Incus is a system container and virtual machine manager. In versions before 7.0.0, missing validation logic in the storage volume import logic allows an authenticated user with access to the storage volume feature to cause the Incus daemon to crash. The backup restore subsystem contains an out-of-bounds panic vulnerability caused by an invalid bounds check when indexing snapshot metadata arrays, and the same flawed pattern also appears in the migration path. When iterating through physical snapshots provided in a backup archive, the loop uses the index to look up corresponding metadata in the parsed `Config.Snapshots` and `Config.VolumeSnapshots` slices. The guard condition `len(slice) >= i-1` is incorrect because it can still evaluate to true when the subsequent slice[i] access is out of bounds. An attacker can submit a backup archive that contains physical snapshot directories while supplying a tampered `index.yaml` with an empty or truncated snapshot metadata array, causing the daemon to index beyond the end of the metadata slice and crash. Repeated use of this issue can be used to keep Incus offline, causing a denial of service. This issue is fixed in version 7.0.0.

Products
incus, lxd
Affected versions
5.0.2+git20231211.1364ae4-1, 5.0.2+git20231211.1364ae4-2, 5.0.2+git20231211.1364ae4-3, 5.0.2+git20231211.1364ae4-4, 5.0.2+git20231211.1364ae4-5, 5.0.2+git20231211.1364ae4-6, 5.0.2+git20231211.1364ae4-7, 5.0.2+git20231211.1364ae4-8, 5.0.2+git20231211.1364ae4-9, 5.0.2+git20231211.1364ae4-9+deb13u1, 5.0.2+git20231211.1364ae4-9+deb13u2, 5.0.2+git20231211.1364ae4-9+deb13u3, 5.0.2+git20231211.1364ae4-9+deb13u4, 5.0.2+git20231211.1364ae4-9+deb13u5, 5.0.2-5, 5.0.2-5+deb12u1, 5.0.2-5+deb12u2, 5.0.2-5+deb12u3, 5.0.2-5+deb12u4, 5.0.2-5+deb12u5, 5.0.2-5+deb12u6, 5.0.2-6, 6.0.4-2, 6.0.4-2+deb13u1, 6.0.4-2+deb13u1~bpo12+1, 6.0.4-2+deb13u2, 6.0.4-2+deb13u2~bpo12+1, 6.0.4-2+deb13u3, 6.0.4-2+deb13u3~bpo12+1, 6.0.4-2+deb13u4, 6.0.4-2+deb13u4~bpo12+1, 6.0.4-2+deb13u5, 6.0.4-2+deb13u5~bpo12+1, 6.0.4-2+deb13u6, 6.0.4-2+deb13u6~bpo12+1, 6.0.4-2+deb13u7~bpo12+1, 6.0.4-3, 6.0.5-1, 6.0.5-2, 6.0.5-3, 6.0.5-4, 6.0.5-5, 6.0.5-6, 6.0.5-7, 6.0.5-8, 6.0.6-1, 6.0.6-2, 6.0.6-3, 6.14.0-1~exp1, 6.15.0-1~exp1, 6.16.0-1~exp1, 6.17.0-1~exp1, 6.20.0-1~exp1, 6.21.0-1~exp1, 6.22.0-1~exp1, 6.23.0-1~exp1, 7.0.0-1~bpo13+1
Fixed versions
5.0.2+git20231211.1364ae4-9+deb13u6, 6.0.4-2+deb13u7, 7.0.0-1
CVEs
CVE-2026-40251
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 17:38 UTC · Revision 2

Source evidence

DEBIAN-CVE-2026-40251

core-osv · Original source

Published 6 May 2026, 21:16 UTC

Incus is a system container and virtual machine manager. In versions before 7.0.0, missing validation logic in the storage volume import logic allows an authenticated user with access to the storage volume feature to cause the Incus daemon to crash. The backup restore subsystem contains an out-of-bounds panic vulnerability caused by an invalid bounds check when indexing snapshot metadata arrays, and the same flawed pattern also appears in the migration path. When iterating through physical snapshots provided in a backup archive, the loop uses the index to look up corresponding metadata in the parsed `Config.Snapshots` and `Config.VolumeSnapshots` slices. The guard condition `len(slice) >= i-1` is incorrect because it can still evaluate to true when the subsequent slice[i] access is out of bounds. An attacker can submit a backup archive that contains physical snapshot directories while supplying a tampered `index.yaml` with an empty or truncated snapshot metadata array, causing the daemon to index beyond the end of the metadata slice and crash. Repeated use of this issue can be used to keep Incus offline, causing a denial of service. This issue is fixed in version 7.0.0.

osv:DEBIAN-CVE-2026-40251

incus

Fixed versions: 6.0.4-2+deb13u7

incus

Fixed versions: 7.0.0-1

lxd

Fixed versions: Not specified

lxd

Fixed versions: 5.0.2+git20231211.1364ae4-9+deb13u6

Complete source record
{
  "id": "1e4073bd19995fe1c4a5d73c1ee942644e60bb3a70112a1762e9f680e89b0219",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-40251",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-40251",
    "summary": "Incus is a system container and virtual machine manager. In versions before 7.0.0, missing validation logic in the storage volume import logic allows an authenticated user with access to the storage volume feature to cause the Incus daemon to crash. The backup restore subsystem contains an out-of-bounds panic vulnerability caused by an invalid bounds check when indexing snapshot metadata arrays, and the same flawed pattern also appears in the migration path. When iterating through physical snapshots provided in a backup archive, the loop uses the index to look up corresponding metadata in the parsed `Config.Snapshots` and `Config.VolumeSnapshots` slices. The guard condition `len(slice) >= i-1` is incorrect because it can still evaluate to true when the subsequent slice[i] access is out of bounds. An attacker can submit a backup archive that contains physical snapshot directories while supplying a tampered `index.yaml` with an empty or truncated snapshot metadata array, causing the daemon to index beyond the end of the metadata slice and crash. Repeated use of this issue can be used to keep Incus offline, causing a denial of service. This issue is fixed in version 7.0.0.",
    "evidence": "osv:DEBIAN-CVE-2026-40251",
    "products": [
      {
        "name": {
          "value": "incus",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.0.4-2+deb13u7",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "6.0.4-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.4-2+deb13u1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.4-2+deb13u1~bpo12+1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.4-2+deb13u2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.4-2+deb13u2~bpo12+1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.4-2+deb13u3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.4-2+deb13u3~bpo12+1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.4-2+deb13u4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.4-2+deb13u4~bpo12+1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.4-2+deb13u5",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.4-2+deb13u5~bpo12+1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.4-2+deb13u6",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.4-2+deb13u6~bpo12+1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.4-2+deb13u7~bpo12+1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "incus",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.0.0-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "6.0.4-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.4-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.5-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.5-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.5-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.5-4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.5-5",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.5-6",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.5-7",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.5-8",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.6-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.6-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.6-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.14.0-1~exp1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.15.0-1~exp1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.16.0-1~exp1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.17.0-1~exp1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.20.0-1~exp1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.21.0-1~exp1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.22.0-1~exp1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.23.0-1~exp1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "7.0.0-1~bpo13+1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lxd",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.0.2+git20231211.1364ae4-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.0.2+git20231211.1364ae4-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.0.2+git20231211.1364ae4-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.0.2+git20231211.1364ae4-4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.0.2+git20231211.1364ae4-5",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.0.2+git20231211.1364ae4-6",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.0.2+git20231211.1364ae4-7",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.0.2+git20231211.1364ae4-8",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.0.2+git20231211.1364ae4-9",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.0.2-5",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.0.2-5+deb12u1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.0.2-5+deb12u2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.0.2-5+deb12u3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.0.2-5+deb12u4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.0.2-5+deb12u5",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.0.2-5+deb12u6",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.0.2-6",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lxd",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.0.2+git20231211.1364ae4-9+deb13u6",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "5.0.2+git20231211.1364ae4-9",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.0.2+git20231211.1364ae4-9+deb13u1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.0.2+git20231211.1364ae4-9+deb13u2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.0.2+git20231211.1364ae4-9+deb13u3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.0.2+git20231211.1364ae4-9+deb13u4",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.0.2+git20231211.1364ae4-9+deb13u5",
            "evidence": "/affected/3/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2026-40251",
      "aliases": [
        "DEBIAN-CVE-2026-40251"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6.0.4-2+deb13u7"
                }
              ]
            }
          ],
          "package": {
            "name": "incus",
            "purl": "pkg:deb/debian/incus?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "6.0.4-2",
            "6.0.4-2+deb13u1",
            "6.0.4-2+deb13u1~bpo12+1",
            "6.0.4-2+deb13u2",
            "6.0.4-2+deb13u2~bpo12+1",
            "6.0.4-2+deb13u3",
            "6.0.4-2+deb13u3~bpo12+1",
            "6.0.4-2+deb13u4",
            "6.0.4-2+deb13u4~bpo12+1",
            "6.0.4-2+deb13u5",
            "6.0.4-2+deb13u5~bpo12+1",
            "6.0.4-2+deb13u6",
            "6.0.4-2+deb13u6~bpo12+1",
            "6.0.4-2+deb13u7~bpo12+1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40251.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "7.0.0-1"
                }
              ]
            }
          ],
          "package": {
            "name": "incus",
            "purl": "pkg:deb/debian/incus?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "6.0.4-2",
            "6.0.4-3",
            "6.0.5-1",
            "6.0.5-2",
            "6.0.5-3",
            "6.0.5-4",
            "6.0.5-5",
            "6.0.5-6",
            "6.0.5-7",
            "6.0.5-8",
            "6.0.6-1",
            "6.0.6-2",
            "6.0.6-3",
            "6.14.0-1~exp1",
            "6.15.0-1~exp1",
            "6.16.0-1~exp1",
            "6.17.0-1~exp1",
            "6.20.0-1~exp1",
            "6.21.0-1~exp1",
            "6.22.0-1~exp1",
            "6.23.0-1~exp1",
            "7.0.0-1~bpo13+1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40251.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lxd",
            "purl": "pkg:deb/debian/lxd?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "5.0.2+git20231211.1364ae4-1",
            "5.0.2+git20231211.1364ae4-2",
            "5.0.2+git20231211.1364ae4-3",
            "5.0.2+git20231211.1364ae4-4",
            "5.0.2+git20231211.1364ae4-5",
            "5.0.2+git20231211.1364ae4-6",
            "5.0.2+git20231211.1364ae4-7",
            "5.0.2+git20231211.1364ae4-8",
            "5.0.2+git20231211.1364ae4-9",
            "5.0.2-5",
            "5.0.2-5+deb12u1",
            "5.0.2-5+deb12u2",
            "5.0.2-5+deb12u3",
            "5.0.2-5+deb12u4",
            "5.0.2-5+deb12u5",
            "5.0.2-5+deb12u6",
            "5.0.2-6"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40251.json"
          },
          "ecosystem_specific": {
            "urgency": "end-of-life"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.0.2+git20231211.1364ae4-9+deb13u6"
                }
              ]
            }
          ],
          "package": {
            "name": "lxd",
            "purl": "pkg:deb/debian/lxd?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "5.0.2+git20231211.1364ae4-9",
            "5.0.2+git20231211.1364ae4-9+deb13u1",
            "5.0.2+git20231211.1364ae4-9+deb13u2",
            "5.0.2+git20231211.1364ae4-9+deb13u3",
            "5.0.2+git20231211.1364ae4-9+deb13u4",
            "5.0.2+git20231211.1364ae4-9+deb13u5"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40251.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-27T09:47:30.490262823Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-40251"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-40251"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-40251",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 460939,
  "published_at": "2026-05-06T21:16:01.21+00:00"
}