{"id":"CVE-2026-41684","revision":null,"records":[{"revision":"e7bd8eba45954b54a7e6ff8120c0295e","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-41684","aliases":[],"title":"Incus: Nil Dereferences on Restore via Malformed YAML","description":"Incus is a system container and virtual machine manager. Prior to version 7.0.0, backup.GetInfo() trusts the inline backup/index.yaml config when present and only falls back to parsing the legacy backup/container/backup.yaml file if result.Config == nil. As a result, an archive can carry a valid inline config that passes the initial import preflight while also carrying a malformed legacy backup/container/backup.yaml file that is reparsed later from the restored file system. ParseConfigYamlFile() accepts YAML documents with no container section, and multiple downstream consumers then dereference. Container without checking for nil. Confirmed examples in the instance restore and import flow include backup.UpdateInstanceConfig() and internalImportFromBackup(). An authenticated user with permission to import instance backups may be able to crash the Incus daemon with a crafted backup archive whose inline backup/index.yaml is valid but whose extracted legacy backup.yaml omits container. The crash occurs in the restore path after archive extraction has begun. This issue has been patched in version 7.0.0.","state":0,"publishedAt":"2026-05-07T13:08:12.792+00:00","modifiedAt":"2026-05-07T13:45:56.918+00:00","affected":[{"ecosystem":"Vendor product","name":"incus","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"lxc\",\n                    \"product\": \"incus\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 7.0.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"severity":"MEDIUM"}],"references":["https://github.com/lxc/incus/security/advisories/GHSA-x5r6-jr56-89pv","https://github.com/lxc/incus/releases/tag/v7.0.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-41684","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-41684","identifiers":["CVE-2026-41684"]},"retained":false,"historicalAffected":[]},{"revision":"207487c9d53c4414b379e9a903d0b5b1","observedAt":"2026-11-01T07:10:40.589+00:00","statement":{"source":"euvd","id":"EUVD-2026-28373","aliases":["CVE-2026-41684","GHSA-x5r6-jr56-89pv"],"title":"Incus is a system container and virtual machine manager. Prior to version 7.0.0, backup.GetInfo() trusts the inline backup/index.yaml config when present and only falls back to parsing the legacy backup/container/backup.yaml file if result.…","description":"Incus is a system container and virtual machine manager. Prior to version 7.0.0, backup.GetInfo() trusts the inline backup/index.yaml config when present and only falls back to parsing the legacy backup/container/backup.yaml file if result.Config == nil. As a result, an archive can carry a valid inline config that passes the initial import preflight while also carrying a malformed legacy backup/container/backup.yaml file that is reparsed later from the restored file system. ParseConfigYamlFile() accepts YAML documents with no container section, and multiple downstream consumers then dereference. Container without checking for nil. Confirmed examples in the instance restore and import flow include backup.UpdateInstanceConfig() and internalImportFromBackup(). An authenticated user with permission to import instance backups may be able to crash the Incus daemon with a crafted backup archive whose inline backup/index.yaml is valid but whose extracted legacy backup.yaml omits container. The crash occurs in the restore path after archive extraction has begun. This issue has been patched in version 7.0.0.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"severity":null}],"references":["https://github.com/lxc/incus/security/advisories/GHSA-x5r6-jr56-89pv","https://github.com/lxc/incus/releases/tag/v7.0.0"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-28373","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"May 7, 2026, 1:08:12 PM","dateUpdated":"May 7, 2026, 1:45:56 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-28373","identifiers":["EUVD-2026-28373","CVE-2026-41684","GHSA-x5r6-jr56-89pv"]},"retained":false,"historicalAffected":[]},{"revision":"69f05990fca747f2ac01012daa01ebfc","observedAt":"2026-10-27T10:10:19.004+00:00","statement":{"source":"nvd","id":"CVE-2026-41684","aliases":[],"title":"Incus is a system container and virtual machine manager. Prior to version 7.0.0, backup.GetInfo() trusts the inline backup/index.yaml config when present and only falls back to parsing the legacy backup/container/backup.yaml file if result.…","description":"Incus is a system container and virtual machine manager. Prior to version 7.0.0, backup.GetInfo() trusts the inline backup/index.yaml config when present and only falls back to parsing the legacy backup/container/backup.yaml file if result.Config == nil. As a result, an archive can carry a valid inline config that passes the initial import preflight while also carrying a malformed legacy backup/container/backup.yaml file that is reparsed later from the restored file system. ParseConfigYamlFile() accepts YAML documents with no container section, and multiple downstream consumers then dereference. Container without checking for nil. Confirmed examples in the instance restore and import flow include backup.UpdateInstanceConfig() and internalImportFromBackup(). An authenticated user with permission to import instance backups may be able to crash the Incus daemon with a crafted backup archive whose inline backup/index.yaml is valid but whose extracted legacy backup.yaml omits container. The crash occurs in the restore path after archive extraction has begun. This issue has been patched in version 7.0.0.","state":0,"publishedAt":"2026-05-07T14:16:03.35+00:00","modifiedAt":"2026-10-26T20:10:00.16+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"severity":"MEDIUM"}],"references":["https://github.com/lxc/incus/releases/tag/v7.0.0","https://github.com/lxc/incus/security/advisories/GHSA-x5r6-jr56-89pv"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-41684","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-476"],"productCriteria":["cpe:2.3:a:linuxcontainers:incus:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2026-05-07T14:16:03.350","lastModified":"2026-10-26T20:10:00.160"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-41684","identifiers":["CVE-2026-41684"]},"retained":false,"historicalAffected":[]},{"revision":"2783a9d3cd054013890c83fc1a35d7ab","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-x5r6-jr56-89pv","aliases":["CVE-2026-41684","GO-2026-5742"],"title":"Incus has Nil Dereferences on Restore via Malformed YAML","description":"### Summary\n\n### Details\nIt was found that backup.GetInfo() trusts the inline backup/index.yaml config when present and only falls back to parsing the legacy backup/container/backup.yaml file if result.Config == nil. As a result, an archive can carry a valid inline config that passes the initial import preflight while also carrying a malformed legacy backup/container/backup.yaml file that is reparsed later from the restored file system.\n\nParseConfigYamlFile() accepts YAML documents with no container section, and multiple downstream consumers then dereference .Container without checking for nil. Confirmed examples in the instance restore and import flow include backup.UpdateInstanceConfig() and internalImportFromBackup().\n\nAn authenticated user with permission to import instance backups may be able to crash the Incus daemon with a crafted backup archive whose inline backup/index.yaml is valid but whose extracted legacy backup.yaml omits container. The crash occurs in the restore path after archive extraction has begun.\n\nThe flow is as follows:\nA crafted backup archive contains a valid backup/index.yaml file together with a malformed backup/container/backup.yaml file that omits the container section.\nbackup.GetInfo() parses backup/index.yaml successfully, so bInfo.Config is populated from the inline config.\nBecause result.Config != nil, GetInfo() does not fall back to backup/container/backup.yaml.\ninstances_post.go then builds the request from bInfo.Config.Container, which succeeds because the inline config is valid.\nLater, storage unpack extracts backup/container/backup.yaml into the instance volume as <mountPath>/backup.yaml.\nbackend.go then calls backup.UpdateInstanceConfig(..., mountPath), which reparses <mountPath>/backup.yaml through ParseConfigYamlFile().\nBecause ParseConfigYamlFile() accepts YAML with no container section, backup.Container == nil, and later access to backup.Container.Devices or backup.Container.ExpandedDevices can trigger a nil-pointer dereference.\n\n\nAffected Files:\n - https://github.com/lxc/incus/blob/v6.22.0/internal/server/backup/backup_info.go#L87\n - https://github.com/lxc/incus/blob/v6.22.0/internal/server/backup/backup_info.go#L115\n - https://github.com/lxc/incus/blob/v6.22.0/internal/server/backup/backup_config_utils.go#L85\n - https://github.com/lxc/incus/blob/v6.22.0/internal/server/backup/backup_config_utils.go#L159\n - https://github.com/lxc/incus/blob/v6.22.0/internal/server/storage/backend.go#L809\n - https://github.com/lxc/incus/blob/v6.22.0/cmd/incusd/api_internal.go#L749\n\nThe initial backup-metadata parser prefers inline backup/index.yaml content:\n\nAffected Code:\n```\nif hdr.Name == backupIndexPath {\n    err = yaml.NewDecoder(tr).Decode(&result)\n```\n\nThe legacy backup/container/backup.yaml file is only parsed if the inline config is absent:\n\nAffected Code:\n```\nif result.Config == nil && hdr.Name == \"backup/container/backup.yaml\" {\n    err = yaml.NewDecoder(tr).Decode(&result.Config)\n```\n\nParseConfigYamlFile() accepts an empty YAML document, or one with no container section, without validation:\n\nAffected Code:\n```\nfunc ParseConfigYamlFile(path string) (*config.Config, error) {\n    data, err := os.ReadFile(path)\n    ...\n    backupConf := config.Config{}\n    err = yaml.Unmarshal(data, &backupConf)\n```\n\nUpdateInstanceConfig() conditionally uses backup.Container at first but later dereferences it unconditionally:\n\nAffected Code:\n```\nif backup.Container != nil {\n    backup.Container.Name = b.Name\n    backup.Container.Project = b.Project\n}\n\nif updateRootDevicePool(backup.Container.Devices, pool.Name) {\n    rootDiskDeviceFound = true\n}\n\nif updateRootDevicePool(backup.Container.ExpandedDevices, pool.Name) {\n    rootDiskDeviceFound = true\n}\n```\n\nAnother confirmed sink is present in internalImportFromBackup():\n\nAffected Code:\n```\nif allowNameOverride {\n    backupConf.Container.Name = instName\n}\n\nif instName != backupConf.Container.Name {\n    return fmt.Errorf(\"Instance name requested %q doesn't match instance name in backup config %q\", instName, backupConf.Container.Name)\n}\n```\n\nThis was confirmed as follows:\n\nCommand:\n```\ngo test ./test/fuzz -run='TestExtractedBackupYAMLMissingContainerNilDereference' -count=1 -v\n```\n\nOutput:\n\n```\n=== RUN   TestExtractedBackupYAMLMissingContainerNilDereference\n=== RUN   TestExtractedBackupYAMLMissingContainerNilDereference/legacy_backup_empty\n   extracted_backup_yaml_poc_test.go:70: UpdateInstanceConfig panicked on malformed extracted\n       backup.yaml (container is nil): runtime error: invalid memory address or nil pointer\n       dereference\n=== RUN   TestExtractedBackupYAMLMissingContainerNilDereference/legacy_backup_pool_only\n   extracted_backup_yaml_poc_test.go:70: UpdateInstanceConfig panicked on malformed extracted\n       backup.yaml (container is nil): runtime error: invalid memory address or nil pointer\n       dereference\n=== RUN   TestExtractedBackupYAMLMissingContainerNilDereference/legacy_backup_volume_only\n   extracted_backup_yaml_poc_test.go:70: UpdateInstanceConfig panicked on malformed extracted\n       backup.yaml (container is nil): runtime error: invalid memory address or nil pointer\n       dereference\n--- FAIL: TestExtractedBackupYAMLMissingContainerNilDereference (0.21s)\nFAIL\n```\n\nIt is recommended to validate the parsed legacy backup.yaml structure before any dereference and to fail with a standard error if Container is missing:\n\nProposed Fix:\n```\nif backup.Container == nil {\n    return errors.New(\"No container struct in the backup file found\")\n}\n```\n\nThat validation should be added at minimum in: backup.UpdateInstanceConfig() and internalImportFromBackup() before any backupConf.Container.* access\n\nMore broadly, it is recommended to centralize backup-config validation so that both inline backup/index.yaml and extracted legacy backup.yaml files are checked against the same structural requirements before any restore or import consumer uses them.\n\nA patch is available at https://github.com/lxc/incus/releases/tag/v7.0.0.\n\n### Credit\nThis issue was discovered and reported by the team at 7asecurity (https://7asecurity.com/)","state":0,"publishedAt":"2026-05-04T19:45:23+00:00","modifiedAt":"2026-06-25T23:11:17.4045196+00:00","affected":[{"ecosystem":"Go","name":"github.com/lxc/incus/v6/cmd/incusd","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"6.23.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/lxc/incus/security/advisories/GHSA-x5r6-jr56-89pv","https://nvd.nist.gov/vuln/detail/CVE-2026-41684","https://github.com/lxc/incus","https://github.com/lxc/incus/releases/tag/v7.0.0"],"sourceUrl":"https://github.com/advisories/GHSA-x5r6-jr56-89pv","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-x5r6-jr56-89pv","identifiers":["GHSA-x5r6-jr56-89pv","CVE-2026-41684","GO-2026-5742"]},"retained":false,"historicalAffected":[]},{"revision":"429303dfb9834833bc0cc462c74c4be0","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-5742","aliases":["CVE-2026-41684","GHSA-x5r6-jr56-89pv"],"title":"Incus has Nil Dereferences on Restore via Malformed YAML in github.com/lxc/incus","description":"Incus has Nil Dereferences on Restore via Malformed YAML in github.com/lxc/incus","state":0,"publishedAt":"2026-06-25T22:34:38+00:00","modifiedAt":"2026-06-25T23:01:40.9693483+00:00","affected":[{"ecosystem":"Go","name":"github.com/lxc/incus","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/lxc/incus/v6","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/lxc/incus/security/advisories/GHSA-x5r6-jr56-89pv","https://nvd.nist.gov/vuln/detail/CVE-2026-41684","https://github.com/lxc/incus/releases/tag/v7.0.0"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-5742","license":"OSV · upstream source license applies","key":"osv:GO-2026-5742","identifiers":["GO-2026-5742","CVE-2026-41684","GHSA-x5r6-jr56-89pv"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-02T14:59:27.3742556+00:00","complete":true,"records":1766,"lastAttemptAt":"2026-11-02T14:59:27.3742556+00:00","lastSuccessAt":"2026-11-02T14:59:27.5398045+00:00","error":null,"lastVerifiedAt":"2026-11-02T14:59:27.5398049+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-37087f5ac35d6d996bd0480d4228062695465d95096b336bdfd509d8efa3a1e5-e9090eff5bc590c67f3f1419d8577c44ef22f348a02ffe003f67c52a46acd979","complete":true,"records":417855,"lastAttemptAt":"2026-11-02T14:57:29.5569228+00:00","lastSuccessAt":"2026-11-02T14:57:29.5030542+00:00","error":null,"lastVerifiedAt":"2026-11-02T14:57:29.5569228+00:00","snapshotPublishedAt":"2026-11-02T14:22:52+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-3afbfcfae1fe455bbc5a5006f95b2df4","complete":true,"records":13568,"lastAttemptAt":"2026-11-02T14:59:29.4659591+00:00","lastSuccessAt":"2026-11-02T11:59:30.621+00:00","error":null,"lastVerifiedAt":"2026-11-02T11:59:30.621+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13637,"expectedIdentifiers":13637,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-02T14:59:27.3742556+00:00","complete":true,"records":1095,"lastAttemptAt":"2026-11-02T14:59:27.3742556+00:00","lastSuccessAt":"2026-11-02T14:59:27.5408035+00:00","error":null,"lastVerifiedAt":"2026-11-02T14:59:27.5408036+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-622e6c116ade494aa7fc9e124415c9ab","complete":true,"records":13580,"lastAttemptAt":"2026-11-02T14:59:28.840649+00:00","lastSuccessAt":"2026-11-02T14:59:28.837+00:00","error":null,"lastVerifiedAt":"2026-11-02T14:59:28.837+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13637,"expectedIdentifiers":13637,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-21dcd6662970dfea02e4ea60ee637115e8d92664947484d2b9276b3f6568a84f","complete":true,"records":9815,"lastAttemptAt":"2026-11-02T14:59:27.220262+00:00","lastSuccessAt":"2026-10-30T23:47:34.1817587+00:00","error":null,"lastVerifiedAt":"2026-11-02T14:59:27.220262+00:00","snapshotPublishedAt":"2026-10-30T23:33:17+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-2de9ccc5290f060c7aa63f89c25dd76f655a64ba1aba7c05c97fa3bee4f09899","complete":true,"records":1967,"lastAttemptAt":"2026-11-02T14:57:29.6157326+00:00","lastSuccessAt":"2026-10-28T20:55:34.2982937+00:00","error":null,"lastVerifiedAt":"2026-11-02T14:57:29.6157326+00:00","snapshotPublishedAt":"2026-10-28T20:03:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-5eac0f41c5234939771ec81ee6dcecba911c3ba21e363f4cecd95fcede18b96b","complete":true,"records":3035,"lastAttemptAt":"2026-11-02T14:59:27.328544+00:00","lastSuccessAt":"2026-11-02T13:57:36.6498985+00:00","error":null,"lastVerifiedAt":"2026-11-02T14:59:27.328544+00:00","snapshotPublishedAt":"2026-11-02T12:18:01+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-f6b161b825bd02c4d85a20025f15e385f08d9727774eb866871eb8f3ef9e379f","complete":true,"records":231021,"lastAttemptAt":"2026-11-02T14:59:27.0921031+00:00","lastSuccessAt":"2026-11-02T14:59:25.6503802+00:00","error":null,"lastVerifiedAt":"2026-11-02T14:59:27.0921031+00:00","snapshotPublishedAt":"2026-11-02T14:33:25+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}