CVE-2026-98176

drm/amdkfd: Avoid integer underflow with ffs in EOP ring size calc

No CVSS score yet EPSS 0.21%

Published 6 Oct 2026 Updated 23 Nov 2026 CNA: Linux

Check your servers for CVE-2026-98176

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98176 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

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)

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.61% of all scored CVEs. Scores of 29 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 14328aa58ce523a59996c5a82681c43ec048cc33, before 4105d54716c6082b2ff495f2506af130ef79ce0a
affected from 14328aa58ce523a59996c5a82681c43ec048cc33, before 6a6d407eb4a8b427240b59d0d2d1f8e1878f06b3
affected from 14328aa58ce523a59996c5a82681c43ec048cc33, before 1ab281c7ce2dc5195d337f2c16e22eba356b47f9
affected from 14328aa58ce523a59996c5a82681c43ec048cc33, before 9e8f43579f849fba0dd1059160f50bd44a767366
affected from 14328aa58ce523a59996c5a82681c43ec048cc33, before 82e1b8299c6da02ce02185c208d2fdf7572b5ea1
affected from 14328aa58ce523a59996c5a82681c43ec048cc33, before c883d0a132d430ef7ebb23fd94323be94d0fbdb8
Other versions: unaffected
Linux
affected 5.3
unaffected before 5.3
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.117 up to and including 6.12.*
unaffected from 6.18.61 up to and including 6.18.*
unaffected from 7.2.8 up to and including 7.2.*
unaffected 7.3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98176 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98176

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-98176
trivy image --scanners vuln IMAGE | grep CVE-2026-98176

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-98176 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.