Skip to contentSkip to conversation

CVE-2026-98003: iommu/amd: Do not reallocate GA log buffers on resume

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-98003 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.0 with commit c5e1a1eb9279fdb28d47ca2a4493a4c53b7d6a0b and fixed in 6.18.53 with commit 94458b80d3b203c1c9e2c98aa7319b7713e006c0
	Issue introduced in 6.0 with commit c5e1a1eb9279fdb28d47ca2a4493a4c53b7d6a0b and fixed in 7.2.7 with commit b6be275d19cee01f8f1f08a2ff18337103d05d40
	Issue introduced in 6.0 with commit c5e1a1eb9279fdb28d47ca2a4493a4c53b7d6a0b and fixed in 7.3-rc3 with commit 00a7dd64888d6dd72110b40e2824a088cf7b7386

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98003

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/iommu/amd/init.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/94458b80d3b203c1c9e2c98aa7319b7713e006c0
	https://git.kernel.org/stable/c/b6be275d19cee01f8f1f08a2ff18337103d05d40
	https://git.kernel.org/stable/c/00a7dd64888d6dd72110b40e2824a088cf7b7386