В ядре Linux устранена следующая уязвимость:
iommu/vt-d: избегайте разыменования нулевого указателя или повреждения счетчика ссылок. Зафиксируйте 60f030f7418d («iommu/vt-d: избегайте использования NULL после WARN_ON_ONCE»)
частично исправлено разыменование NULL-указателя в маловероятной ситуации. Если dev_pasid не найден в списке dev_pasids, он остается NULL.
Однако операции по демонтажу выполняются безоговорочно, это приводит
к разыменованию NULL-указателя или повреждению счетчика ссылок. Если домен никогда не был привязан к этому IOMMU, информация будет NULL, что
вызовет немедленное разыменование при проверке --info->refcnt. Даже если информация не равна NULL, уменьшение счетчика ссылок без удаления
действительный PASID может нарушить баланс счета.
Это может привести к преждевременному
снижение счетчика ссылок до 0, что потенциально может привести к использованию после освобождения для
оставшиеся активные устройства, делящие домен. Исправьте это, вернувшись раньше, если dev_pasid имеет значение NULL, перед выполнением
демонтажные операции. Проблема обнаружена в ходе проверки AI и предложена Кевином Тианом.
https://sashiko.dev/#/patchset/20260421031347.1408890-1-zhenzhong.duan%40intel.com
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: iommu/vt-d: Avoid NULL pointer dereference or refcount corruption Commit 60f030f7418d ("iommu/vt-d: Avoid use of NULL after WARN_ON_ONCE") fixed a NULL pointer dereference in an unlikely situation partly. If dev_pasid is not found in the dev_pasids list, it remains NULL. However, the teardown operations are executed unconditionally, this lead to a NULL pointer dereference or refcount corruption. If the domain was never attached to this IOMMU, info will be NULL, which would cause an immediate dereference when checking --info->refcnt. Even if info is not NULL, decrementing the refcount without having removed a valid PASID might unbalance the count. This could lead to premature dropping of the refcount to 0, potentially causing a use-after-free for the remaining active devices sharing the domain. Fix it by returning early if dev_pasid is NULL, before executing the teardown operations. Issue found by AI review and suggested by Kevin Tian. https://sashiko.dev/#/patchset/20260421031347.1408890-1-zhenzhong.duan%40intel.com
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 6
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.12.57
|
6.13
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13.3
|
6.18.33
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.10
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
|
— | — |