CVE-2026-45878
published high CVSS 3.1 · 7.8drm/amdkfd: Fix watch_id bounds checking in debug address watch v2
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxe0f85f4690d089cc1a60337decafb1acf7eec45e to < 971bf8e61e9b4abaacf9b35eaf76ec222758f9d6 · e0f85f4690d089cc1a60337decafb1acf7eec45e to < a0d367e13db63a6ed76ee0d0a8c3a58c1fa98488 · e0f85f4690d089cc1a60337decafb1acf7eec45e to < 2b36c0c1bcbbe15f6cfa9652084b3124c835a150 · e0f85f4690d089cc1a60337decafb1acf7eec45e to < 3c38a0f07aa2bfef2b219b1f045534ad93f85afd · e0f85f4690d089cc1a60337decafb1acf7eec45e to < 5a19302cab5cec7ae7f1a60c619951e6c17d8742 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.5 (affected) · 0 to < 6.5 (unaffected · semver) · 6.6.128 through 6.6.* (unaffected · semver) · 6.12.75 through 6.12.* (unaffected · semver) · 6.18.14 through 6.18.* (unaffected · semver) · 6.19.4 through 6.19.* (unaffected · semver) · 7.0 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 10 | kernel-abi-stablelists | Advisory build | 6.12.0-211.49.1.el10_2 | ALSA-2026:57251 |
| Oracle Linux | 10 | kernelx86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| AlmaLinux | 10 | kernel-doc | Advisory build | 6.12.0-211.49.1.el10_2 | ALSA-2026:57251 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-64k | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-64k-core | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-64k-debug | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-64k-debug-core | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-64k-debug-devel | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-core | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-extra | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-64k-devel | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-64k-modules | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-64k-modules-core | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-64k-modules-extra | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-debug-modules-core | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-modules-core | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-uki-virt | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-uki-virt-addons | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-zfcpdump-core | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-zfcpdump-devel | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-zfcpdump-devel-matched | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-zfcpdump-modules | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-core | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-extra | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | libperf | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | perf | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | python3-perf | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | rtla | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| AlmaLinux | 9 | rv | Advisory build | 5.14.0-687.41.1.el9_8 | ALSA-2026:57252 |
| Oracle Linux | 10 | kernel-abi-stablelistsx86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-corex86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-cross-headersaarch64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-cross-headersx86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-debugx86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-debug-corex86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-debug-develx86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-debug-modulesx86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-debug-modules-corex86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-debug-uki-virtx86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-develx86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-devel-matchedx86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-docx86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-headersaarch64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-headersx86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-modulesx86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-modules-corex86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-modules-extrax86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-modules-extra-matchedx86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-toolsaarch64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
| Oracle Linux | 10 | kernel-toolsx86_64 | Advisory build | 0:6.12.0-211.49.1.el10_2 | ELSA-2026-57251 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Fix watch_id bounds checking in debug address watch v2 The address watch clear code receives watch_id as an unsigned value (u32), but some helper functions were using a signed int and checked bits by shifting with watch_id. If a very large watch_id is passed from userspace, it can be converted to a negative value. This can cause invalid shifts and may access memory outside the watch_points array. drm/amdkfd: Fix watch_id bounds checking in debug address watch v2 Fix this by checking that watch_id is within MAX_WATCH_ADDRESSES before using it. Also use BIT(watch_id) to test and clear bits safely. This keeps the behavior unchanged for valid watch IDs and avoids undefined behavior for invalid ones. Fixes the below: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_debug.c:448 kfd_dbg_trap_clear_dev_address_watch() error: buffer overflow 'pdd->watch_points' 4 <= u32max user_rl='0-3,2147483648-u32max' uncapped drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_debug.c 433 int kfd_dbg_trap_clear_dev_address_watch(struct kfd_process_device *pdd, 434 uint32_t watch_id) 435 { 436 int r; 437 438 if (!kfd_dbg_owns_dev_watch_id(pdd, watch_id)) kfd_dbg_owns_dev_watch_id() doesn't check for negative values so if watch_id is larger than INT_MAX it leads to a buffer overflow. (Negative shifts are undefined). 439 return -EINVAL; 440 441 if (!pdd->dev->kfd->shared_resources.enable_mes) { 442 r = debug_lock_and_unmap(pdd->dev->dqm); 443 if (r) 444 return r; 445 } 446 447 amdgpu_gfx_off_ctrl(pdd->dev->adev, false); --> 448 pdd->watch_points[watch_id] = pdd->dev->kfd2kgd->clear_address_watch( 449 pdd->dev->adev, 450 watch_id); v2: (as per, Jonathan Kim) - Add early watch_id >= MAX_WATCH_ADDRESSES validation in the set path to match the clear path. - Drop the redundant bounds check in kfd_dbg_owns_dev_watch_id().
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerability is reached only through an ioctl (AMDKFD_IOC_DBG_TRAP) on the local /dev/kfd device node; there is no network or remote path. AC:L - The attacker fully controls both the allocation of a watch point and the crafted watch_id; the negative-shift behavior is deterministic on x86, so the out-of-bounds write is triggered reliably and repeatably. PR:L - The ioctl has flags=0 with no capability check, and self-debugging (target==p) is permitted, so any unprivileged local user with access to the GPU device node (/dev/kfd) can reach the bug; no root/CAP_SYS_ADMIN is required. UI:N - The attacking process performs the enable/allocate/clear sequence entirely on its own; no action by another user is needed. S:U - The out-of-bounds write corrupts kernel memory within the same kernel security authority; it does not cross into a separate authority such as a hypervisor or IOMMU boundary. C:H - The bug is a kernel out-of-bounds write (memory corruption) that can be groomed to overwrite adjacent kernel structures (e.g., size/pointer fields), which can be leveraged to enable information disclosure. I:H - Attacker-influenced out-of-bounds write of a 32-bit value into kernel memory at a controllable offset is a direct kernel memory-corruption/write primitive. A:H - The out-of-bounds write into unmapped or critical kernel memory readily causes a kernel oops/panic, producing a denial of service.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | e0f85f4690d089cc1a60337decafb1acf7eec45e to < 971bf8e61e9b4abaacf9b35eaf76ec222758f9d6 (affected · git)e0f85f4690d089cc1a60337decafb1acf7eec45e to < a0d367e13db63a6ed76ee0d0a8c3a58c1fa98488 (affected · git)e0f85f4690d089cc1a60337decafb1acf7eec45e to < 2b36c0c1bcbbe15f6cfa9652084b3124c835a150 (affected · git)e0f85f4690d089cc1a60337decafb1acf7eec45e to < 3c38a0f07aa2bfef2b219b1f045534ad93f85afd (affected · git)e0f85f4690d089cc1a60337decafb1acf7eec45e to < 5a19302cab5cec7ae7f1a60c619951e6c17d8742 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.5 (affected)0 to < 6.5 (unaffected · semver)6.6.128 through 6.6.* (unaffected · semver)6.12.75 through 6.12.* (unaffected · semver)6.18.14 through 6.18.* (unaffected · semver)6.19.4 through 6.19.* (unaffected · semver)7.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-125 CWE-125 Out-of-bounds Read
References
5- https://git.kernel.org/stable/c/2b36c0c1bcbbe15f6cfa9652084b3124c835a150
- https://git.kernel.org/stable/c/3c38a0f07aa2bfef2b219b1f045534ad93f85afd
- https://git.kernel.org/stable/c/5a19302cab5cec7ae7f1a60c619951e6c17d8742
- https://git.kernel.org/stable/c/971bf8e61e9b4abaacf9b35eaf76ec222758f9d6
- https://git.kernel.org/stable/c/a0d367e13db63a6ed76ee0d0a8c3a58c1fa98488
Provider assertions
2Linux · cna
drm/amdkfd: Fix watch_id bounds checking in debug address watch v2
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a3b489379f9b4f03b58ad0bae73e6b31f31be6f89f462f7154da0298d9125f91
- Ingested
- 19 Oct 2026, 19:28:45 UTC
- Source record
- Official CVE record