В ядре Linux была устранена следующая уязвимость: iommu/amd: Do не перераспределяет GA буфера журналов на резюме Commit c5e1a1eb9279 («iommu/amd: Simplify и Consolidate Virtual APIC (AVIC) Enablement») переместил распределение журналов GA с iommu_init_pci() на enable_iommus_vapic(), которое вызывается в каждом резюме. iommu_init_ga_log() назначает iommu->ga_log и iommu->ga_log_tail безоговорочно. Таким образом, каждое резюме заменяет указатели времени загрузки и приводит к утечке обоих старых распределений. Функция также использует GFP_KERNEL из syscore resume callback, где прерывания отключены, а не-загрузка CPUs отключена.
Вернитесь раньше, если оба буфера уже выделены. Очистить указатели в free_ga_log (), так что частичный отказ распределения не может оставить ga_log висеть.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: iommu/amd: Do not reallocate GA log buffers on resume Commit c5e1a1eb9279 ("iommu/amd: Simplify and Consolidate Virtual APIC (AVIC) Enablement") moved the GA log allocation from iommu_init_pci() to enable_iommus_vapic(), which is called on every resume. iommu_init_ga_log() assigns iommu->ga_log and iommu->ga_log_tail unconditionally. Each resume therefore replaces the boot-time pointers and leaks both old allocations. The function also uses GFP_KERNEL from a syscore resume callback, where interrupts are disabled and the non-boot CPUs are offline. Return early if both buffers are already allocated. Clear the pointers in free_ga_log() so a partial allocation failure cannot leave ga_log dangling.