UBUNTU-CVE-2026-40251 (CVE-2026-40251)

Vulnerability from osv_ubuntu – Published: 2026-05-06 21:16 – Updated: 2026-10-17 09:40 – Source website
VLAI
Details

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.


{
  "affected": [
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "golang-github-lxc-lxd-dev",
            "binary_version": "2.0.11-0ubuntu1~16.04.4+esm3"
          },
          {
            "binary_name": "lxc2",
            "binary_version": "2.0.11-0ubuntu1~16.04.4+esm3"
          },
          {
            "binary_name": "lxd",
            "binary_version": "2.0.11-0ubuntu1~16.04.4+esm3"
          },
          {
            "binary_name": "lxd-client",
            "binary_version": "2.0.11-0ubuntu1~16.04.4+esm3"
          },
          {
            "binary_name": "lxd-tools",
            "binary_version": "2.0.11-0ubuntu1~16.04.4+esm3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:16.04:LTS",
        "name": "lxd",
        "purl": "pkg:deb/ubuntu/lxd@2.0.11-0ubuntu1~16.04.4+esm3?arch=source\u0026distro=esm-infra-legacy/xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.20-0ubuntu4",
        "0.21-0ubuntu3",
        "0.21-0ubuntu5",
        "0.22-0ubuntu1",
        "0.22-0ubuntu2",
        "0.23-0ubuntu1",
        "0.23-0ubuntu2",
        "0.23-0ubuntu3",
        "0.24-0ubuntu2",
        "0.24-0ubuntu3",
        "0.24-0ubuntu4",
        "0.25-0ubuntu1",
        "0.26-0ubuntu2",
        "0.26-0ubuntu3",
        "0.27-0ubuntu1",
        "0.27-0ubuntu2",
        "2.0.0~beta1-0ubuntu3",
        "2.0.0~beta1-0ubuntu4",
        "2.0.0~beta2-0ubuntu1",
        "2.0.0~beta2-0ubuntu2",
        "2.0.0~beta3-0ubuntu1",
        "2.0.0~beta3-0ubuntu2",
        "2.0.0~beta3-0ubuntu3",
        "2.0.0~beta3-0ubuntu4",
        "2.0.0~beta4-0ubuntu1",
        "2.0.0~beta4-0ubuntu2",
        "2.0.0~beta4-0ubuntu3",
        "2.0.0~beta4-0ubuntu4",
        "2.0.0~beta4-0ubuntu5",
        "2.0.0~beta4-0ubuntu6",
        "2.0.0~beta4-0ubuntu7",
        "2.0.0~rc1-0ubuntu1",
        "2.0.0~rc1-0ubuntu2",
        "2.0.0~rc1-0ubuntu3",
        "2.0.0~rc2-0ubuntu2",
        "2.0.0~rc2-0ubuntu3",
        "2.0.0~rc3-0ubuntu1",
        "2.0.0~rc3-0ubuntu2",
        "2.0.0~rc3-0ubuntu3",
        "2.0.0~rc3-0ubuntu4",
        "2.0.0~rc4-0ubuntu1",
        "2.0.0~rc5-0ubuntu1",
        "2.0.0~rc6-0ubuntu1",
        "2.0.0~rc6-0ubuntu2",
        "2.0.0~rc7-0ubuntu1",
        "2.0.0~rc7-0ubuntu2",
        "2.0.0~rc8-0ubuntu1",
        "2.0.0~rc8-0ubuntu2",
        "2.0.0~rc8-0ubuntu3",
        "2.0.0~rc8-0ubuntu5",
        "2.0.0~rc8-0ubuntu6",
        "2.0.0~rc8-0ubuntu7",
        "2.0.0~rc9-0ubuntu2",
        "2.0.0~rc9-0ubuntu3",
        "2.0.0~rc9-0ubuntu4",
        "2.0.0~rc9-0ubuntu5",
        "2.0.0-0ubuntu1",
        "2.0.0-0ubuntu2",
        "2.0.0-0ubuntu3",
        "2.0.0-0ubuntu4",
        "2.0.1-0ubuntu1~16.04.1",
        "2.0.2-0ubuntu1~16.04.1",
        "2.0.3-0ubuntu1~ubuntu16.04.2",
        "2.0.4-0ubuntu1~ubuntu16.04.1",
        "2.0.5-0ubuntu1~ubuntu16.04.1",
        "2.0.8-0ubuntu1~ubuntu16.04.1",
        "2.0.8-0ubuntu1~ubuntu16.04.2",
        "2.0.9-0ubuntu1~16.04.1",
        "2.0.9-0ubuntu1~16.04.2",
        "2.0.10-0ubuntu1~16.04.1",
        "2.0.10-0ubuntu1~16.04.2",
        "2.0.11-0ubuntu1~16.04.2",
        "2.0.11-0ubuntu1~16.04.4",
        "2.0.11-0ubuntu1~16.04.4+esm1",
        "2.0.11-0ubuntu1~16.04.4+esm2",
        "2.0.11-0ubuntu1~16.04.4+esm3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "lxd",
            "binary_version": "3.0.3-0ubuntu1~18.04.2+esm3"
          },
          {
            "binary_name": "lxd-client",
            "binary_version": "3.0.3-0ubuntu1~18.04.2+esm3"
          },
          {
            "binary_name": "lxd-tools",
            "binary_version": "3.0.3-0ubuntu1~18.04.2+esm3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:18.04:LTS",
        "name": "lxd",
        "purl": "pkg:deb/ubuntu/lxd@3.0.3-0ubuntu1~18.04.2+esm3?arch=source\u0026distro=esm-infra/bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2.18-0ubuntu6",
        "2.19-0ubuntu1",
        "2.20-0ubuntu3",
        "2.20-0ubuntu4",
        "2.21-0ubuntu1",
        "2.21-0ubuntu2",
        "2.21-0ubuntu3",
        "2.21-0ubuntu4",
        "3.0.0~beta2-0ubuntu3",
        "3.0.0~beta3-0ubuntu3",
        "3.0.0~beta5-0ubuntu2",
        "3.0.0~beta7-0ubuntu1",
        "3.0.0-0ubuntu1",
        "3.0.0-0ubuntu2",
        "3.0.0-0ubuntu3",
        "3.0.0-0ubuntu4",
        "3.0.1-0ubuntu1~18.04.1",
        "3.0.2-0ubuntu1~18.04.1",
        "3.0.3-0ubuntu1~18.04.1",
        "3.0.3-0ubuntu1~18.04.2",
        "3.0.3-0ubuntu1~18.04.2+esm1",
        "3.0.3-0ubuntu1~18.04.2+esm2",
        "3.0.3-0ubuntu1~18.04.2+esm3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "lxd",
            "binary_version": "1:0.10"
          },
          {
            "binary_name": "lxd-client",
            "binary_version": "1:0.10"
          },
          {
            "binary_name": "lxd-tools",
            "binary_version": "1:0.10"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:20.04:LTS",
        "name": "lxd",
        "purl": "pkg:deb/ubuntu/lxd@1:0.10?arch=source\u0026distro=focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1:0.7",
        "1:0.8",
        "1:0.9",
        "1:0.10"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "golang-github-lxc-incus-dev",
            "binary_version": "6.0.0-1ubuntu0.3+esm3"
          },
          {
            "binary_name": "incus",
            "binary_version": "6.0.0-1ubuntu0.3+esm3"
          },
          {
            "binary_name": "incus-agent",
            "binary_version": "6.0.0-1ubuntu0.3+esm3"
          },
          {
            "binary_name": "incus-client",
            "binary_version": "6.0.0-1ubuntu0.3+esm3"
          },
          {
            "binary_name": "incus-migrate",
            "binary_version": "6.0.0-1ubuntu0.3+esm3"
          },
          {
            "binary_name": "incus-tools",
            "binary_version": "6.0.0-1ubuntu0.3+esm3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:24.04:LTS",
        "name": "incus",
        "purl": "pkg:deb/ubuntu/incus@6.0.0-1ubuntu0.3+esm3?arch=source\u0026distro=esm-apps/noble"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.4-1ubuntu1",
        "0.5.1-1",
        "0.5.1-3",
        "0.6-1",
        "6.0.0-1",
        "6.0.0-1ubuntu0.1",
        "6.0.0-1ubuntu0.2",
        "6.0.0-1ubuntu0.2+esm1",
        "6.0.0-1ubuntu0.3",
        "6.0.0-1ubuntu0.3+esm1",
        "6.0.0-1ubuntu0.3+esm2",
        "6.0.0-1ubuntu0.3+esm3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "golang-github-lxc-incus-dev",
            "binary_version": "6.0.4-2"
          },
          {
            "binary_name": "incus",
            "binary_version": "6.0.4-2"
          },
          {
            "binary_name": "incus-agent",
            "binary_version": "6.0.4-2"
          },
          {
            "binary_name": "incus-base",
            "binary_version": "6.0.4-2"
          },
          {
            "binary_name": "incus-client",
            "binary_version": "6.0.4-2"
          },
          {
            "binary_name": "incus-extra",
            "binary_version": "6.0.4-2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:25.10",
        "name": "incus",
        "purl": "pkg:deb/ubuntu/incus@6.0.4-2?arch=source\u0026distro=questing"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "6.0.3-4",
        "6.0.4-2"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "golang-github-lxc-incus-dev",
            "binary_version": "7.0.1-5"
          },
          {
            "binary_name": "incus",
            "binary_version": "7.0.1-5"
          },
          {
            "binary_name": "incus-agent",
            "binary_version": "7.0.1-5"
          },
          {
            "binary_name": "incus-base",
            "binary_version": "7.0.1-5"
          },
          {
            "binary_name": "incus-client",
            "binary_version": "7.0.1-5"
          },
          {
            "binary_name": "incus-extra",
            "binary_version": "7.0.1-5"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:26.10",
        "name": "incus",
        "purl": "pkg:deb/ubuntu/incus@7.0.1-5?arch=source\u0026distro=stonking"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "6.0.5-8",
        "7.0.1-5"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "golang-github-lxc-incus-dev",
            "binary_version": "6.0.5-8ubuntu0.26.04.1~esm1"
          },
          {
            "binary_name": "incus",
            "binary_version": "6.0.5-8ubuntu0.26.04.1~esm1"
          },
          {
            "binary_name": "incus-agent",
            "binary_version": "6.0.5-8ubuntu0.26.04.1~esm1"
          },
          {
            "binary_name": "incus-base",
            "binary_version": "6.0.5-8ubuntu0.26.04.1~esm1"
          },
          {
            "binary_name": "incus-client",
            "binary_version": "6.0.5-8ubuntu0.26.04.1~esm1"
          },
          {
            "binary_name": "incus-extra",
            "binary_version": "6.0.5-8ubuntu0.26.04.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:26.04:LTS",
        "name": "incus",
        "purl": "pkg:deb/ubuntu/incus@6.0.5-8ubuntu0.26.04.1~esm1?arch=source\u0026distro=esm-apps/resolute"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "6.0.4-2",
        "6.0.5-8",
        "6.0.5-8ubuntu0.26.04.1~esm1"
      ]
    }
  ],
  "aliases": [],
  "details": "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) \u003e= 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.",
  "id": "UBUNTU-CVE-2026-40251",
  "modified": "2026-10-17T09:40:56Z",
  "published": "2026-05-06T21:16:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2026-40251"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-40251"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/lxc/incus/security/advisories/GHSA-4m88-wxj4-9qj6"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/lxc/incus/pull/3273"
    }
  ],
  "related": [],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    },
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2026-40251"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.