CVE-2026-98177: drm/amdkfd: Avoid integer underflow in EOP ring size calculation.
drm/amdkfd: Avoid integer underflow in EOP ring size calculation.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1 - Upgrade
Upgrade
Linux kernelto a version that resolves this vulnerability.Patch f0f43fcf8b2b3a924cad9444340921c96ed5f634
Event History
Frequently Asked Questions
Is the integer underflow reachable with normal EOP ring buffer sizes?
The description states that, in practice, the EOP ring buffer size cannot be less than 4096 bytes. The underflow is therefore described as theoretically possible rather than reachable with supported ring buffer sizing.
What component is affected?
The affected code is in the Linux kernel's drm/amdkfd component, which handles AMD kernel-mode GPU compute functionality.
What does the fix change?
The calculation changes from order_base_2(q->eop_ring_buffer_size / 4) - 1 to order_base_2(q->eop_ring_buffer_size / 8). This avoids subtracting one from a value that could theoretically be zero.