Junglewise Threat Intelligence

CVE-2026-45878: Linux Kernel drm/amdkfd buffer overflow in debug address watch

CVE-2026-45878 · Severity: info · CVSS 0 · Published 2026-05-27

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability was identified in the Linux kernel's AMD GPU driver (amdkfd) that could allow a local user to cause a system crash or potentially access restricted memory. The issue occurs when the system processes specific debug commands for graphics hardware without properly verifying the input range. This could lead to operational instability or unauthorized data access on systems using affected AMD graphics hardware.

Technical details

A buffer overflow vulnerability exists in `drivers/gpu/drm/amd/amdkfd/kfd_debug.c` within the Linux kernel. The `kfd_dbg_trap_clear_dev_address_watch` and `kfd_dbg_trap_set_dev_address_watch` functions receive a `watch_id` as a `u32` from userspace. However, internal helper functions like `kfd_dbg_owns_dev_watch_id` previously used signed integers or failed to perform adequate bounds checking against `MAX_WATCH_ADDRESSES`. An attacker providing a large `watch_id` could trigger an out-of-bounds memory access or an undefined bit shift, potentially leading to local privilege escalation or a kernel panic. The fix introduces explicit bounds checking and uses the `BIT()` macro for safe bitwise operations.

Affected products

  • Linux Linux kernel e0f85f4690d0

Timeline

  • 2026-02-06: other: Patch authored by Srinivasan Shanmugam
  • 2026-05-27: advisory: CVE-2026-45878 published

References

Related threats