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.
Incus versions before 7.0.0 contain an out-of-bounds vulnerability in storage volume import logic that allows authenticated users to crash the daemon through malformed backup archives. The flaw exists in snapshot metadata validation where incorrect bounds checking enables array index out-of-bounds access during backup restore and migration operations.
تحتوي ثغرة CVE-2026-40251 على خلل في منطق التحقق من صحة استيراد وحدات التخزين في Incus حيث يمكن لمستخدم مصرح له بالوصول إلى ميزة وحدات التخزين تقديم أرشيف نسخة احتياطية معيب. الخلل الأساسي يكمن في شرط الحماية غير الصحيح `len(slice) >= i-1` الذي يسمح بالوصول خارج حدود المصفوفة عند البحث عن بيانات وصور الحالة المقابلة.
إصدارات Incus السابقة للإصدار 7.0.0 تحتوي على ثغرة خروج عن الحدود في منطق استيراد وحدات التخزين تسمح للمستخدمين المصرح لهم بتعطيل الخادم من خلال أرشيفات نسخ احتياطية معيبة. يوجد الخلل في التحقق من بيانات وصور الحالة حيث يمكّن التحقق غير الصحيح من الحدود الوصول إلى فهرس المصفوفة خارج الحدود أثناء عمليات استعادة النسخة الاحتياطية والهجرة.
Upgrade Incus to version 7.0.0 or later immediately. Restrict access to storage volume features to trusted users only. Validate and sanitize all backup archives before restoration. Implement network segmentation to limit exposure of Incus management interfaces.
قم بترقية Incus إلى الإصدار 7.0.0 أو أحدث على الفور. قيّد الوصول إلى ميزات وحدات التخزين للمستخدمين الموثوقين فقط. تحقق من صحة جميع الأرشيفات الاحتياطية وقم بتنظيفها قبل الاستعادة. طبّق تقسيم الشبكة لتقليل تعريض واجهات إدارة Incus.