CVE-2026-89818 PUBLISHED

drm/amdgpu/vcn: fix integer overflow in dec_msg buffer count check

Assigner: Linux
Reserved: 11.09.2026 Published: 16.09.2026 Updated: 16.09.2026

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

drm/amdgpu/vcn: fix integer overflow in dec_msg buffer count check

If the supplied msg[2] (num_buffers) is 0x3FFFFFFF, the expression 6 + num_buffers * 4 wraps to 2 and the bounds check passes, letting the parser loop far past the end of the message BO. Triggering it additionally requires a ~4GiB mapping so that msg[1] survives the earlier "header does not fit in BO" check.

Rewrite the test in division form, which is overflow-free by construction. Also update the message to reflect that msg is invalid.

Metrics

CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
CVSS Score: 7.1

AV:L - The bug is reached only via the local DRM_IOCTL_AMDGPU_CS ioctl on /dev/dri/renderD (amdgpu_cs_ioctl → amdgpu_cs_patch_jobs → amdgpu_cs_patch_ibs → vcn_v3/v4_0_ring_patch_cs_in_place → vcn__dec_msg). There is no network or physical path to the VCN decode-message parser. AC:L - The attacker fully controls the decode-message GEM BO. Setting num_buffers to 0x3FFFFFFF with a ~4GiB mapping makes 6+num_buffers*4 wrap to 2 so the uint32 bounds check passes deterministically; allocating that mapping is attacker-controlled on typical GPU workstations and cloud GPU hosts. PR:L - AMDGPU_CS is registered with DRM_AUTH|DRM_RENDER_ALLOW, so any unprivileged local user who can open the AMDGPU render node (typical render/video group on desktops, handhelds, Android, and GPU cloud instances) can submit VCN command buffers without root. UI:N - The attacker submits the crafted VCN command buffer through their own DRM context; no separate victim action such as opening a file or mounting a filesystem is required. S:U - The out-of-bounds read is performed by the CPU in the kernel kmap of the message BO and stays within the kernel security authority; it is not a VM escape or IOMMU/DMA boundary bypass. C:H - Bypassing the buffer-count check lets the parser loop about 0x3FFFFFFF times, each step reading 16 bytes past the kmapped BO, an unbounded kernel out-of-bounds read well beyond a few bytes. I:N - The loop only reads message dwords and, when a CREATE record is seen, still bounds-checks offset/size against the BO before any further access; no out-of-bounds write or control-flow hijack primitive is produced. A:H - The unbounded walk past the kmapped BO into unmapped kernel or MMIO address space causes a page fault/oops, and the billion-iteration loop can also soft-lock the CS path before faulting.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 88411caee8f576d6b5abf6531232fcc0ce756dc5 to c2340281be4ddacb8c203e2bce59b126d1d6c4c8 (excl.)
  • affected from c72a8b4dc6d598e3831ef3abd9c6527dfbf4810e to 6dceaeceaa7c8396339f3ea34b0110cb912ca61b (excl.)
  • affected from 7688143ca62edeecacb3ba0a2cea129dbd262a18 to 47799e1f893d47d8af231710a61065e3ec8a13e8 (excl.)
  • affected from 63b51e8a9d54317d31cc3856c1e12407070d5fc2 to 7e28853c78c20bb8ba4c1dba702430cd05e09f76 (excl.)
  • affected from b193019860d61e92da395eae2011f2f6716b182f to 9ae19bd60891bea0a7b7504cc8dbfe74570ac3b3 (excl.)
  • affected from b193019860d61e92da395eae2011f2f6716b182f to 4d7390530853eb7befda9cc786e4c86e8ad7ac9e (excl.)
  • Version f55552adb100eb54a6e6dabff4fbdc8679bd3fa0 is affected
  • Version 82c535eff05490c71153af57de9fe85502fcb5d5 is affected
  • Version 638d3e0b9eb77aa53fdd60e2b928761d16ba76fa is affected
  • Version 870c8738c3774336baedddd0240951d078a703b8 is affected
  • Version 638e48ee39d0f2af9336f917a6f5d6692dd64d93 is affected
  • Version e382e0b81a3e7bd21504fee1d01ae8b08f84d3a7 is affected
  • Version 3c817a60b09eaab926e475088e750936efcc95ae is affected
  • affected from 6.1.175 to 6.1.188 (excl.)
  • affected from 6.6.140 to 6.6.157 (excl.)
  • affected from 6.12.90 to 6.12.110 (excl.)
  • affected from 6.18.32 to 6.18.51 (excl.)
  • affected from 5.15.209 to 5.16 (excl.)
  • affected from 7.0.9 to 7.1 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 7.1 is affected
  • unaffected from 0 to 7.1 (excl.)
  • unaffected from 6.1.188 to 6.1.* (incl.)
  • unaffected from 6.6.157 to 6.6.* (incl.)
  • unaffected from 6.12.110 to 6.12.* (incl.)
  • unaffected from 6.18.51 to 6.18.* (incl.)
  • unaffected from 7.2.5 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References