Kernel Kit / Infix / v26.10.0latest
CVE-2026-98176
—unknownlinux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases
Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.
Reach linux · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
drm/amdkfd: Avoid integer underflow with ffs in EOP ring size calc
The low 6 bits of cp_hqd_eop_control store the base-2 logarithm of the EOP ring size. This was calculated as
ffs(q->eop_ring_buffer_size / sizeof(unsigned int)) - 1 - 1
But ffs can in theory return 1 or 0, so this could underflow (although in practice the ring buffer size cannot be less than 4096).
Change this to
ffs(q->eop_ring_buffer_size / sizeof(unsigned int) / 4)
using properties of logarithms.
(cherry picked from commit 4f18c56630383c14bfc6b2d65f88f2f895d2121a)
Published 2026-10-06NVD
Build check · v26.10.0 x86_64
None of the source files the CNA lists for CVE-2026-98176 (drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c, drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c, drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c, drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c) produced an object file in linux-6.18.60, so the affected code is not compiled into this kernel configuration.
Evidence 4
…/ is output/build/linux-6.18.60/drivers/gpu/drm/amd/amdkfd/
object file absent: not compiled
…/kfd_mqd_manager_v10.o
object file absent: not compiled
…/kfd_mqd_manager_v11.o
object file absent: not compiled
…/kfd_mqd_manager_v12.o
object file absent: not compiled
…/kfd_mqd_manager_v12_1.o
Members of Kernel Kit decide. Sign in if you are one.