---
id: CVE-2026-68106
title: 'drm/amdgpu: fix division by zero with invalid uvd dimensions'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  drm/amdgpu: fix division by zero with invalid uvd dimensions

  When width or height is less than 16, width_in_mb or height_in_mb
  becomes 0, leading to fs_in_mb being 0. …
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <
    004d0453cfef16f056cb7b8bc04f69f19cf9df32
  - >-
    Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <
    00ee64910ecf748cc15b23bbcbea472c203ec1e8
  - >-
    Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <
    81c9b4921f62d1642b9d775524ae9240e521a5ed
  - >-
    Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <
    52f9a588296432accf2982f7d258192a37562f4f
  - >-
    Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <
    a00946b5ab7c25da5685ca9c58f50ff6f43c0fdf
  - >-
    Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <
    ffb33d466a68cea3e8a3dbed04d79037a3cbabd1
  - >-
    Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <
    be725ab23aa45c11a5afef3e2a9f6d8c084ae5dc
  - >-
    Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21 <
    0c01c811be47e6b146552dd59bfedbea8f09b8f4
  - Linux 4.2
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-16T15:43:55.237133Z'
published: '2026-08-10'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T15:52:56.910Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-68106'
references:
  - url: 'https://git.kernel.org/stable/c/004d0453cfef16f056cb7b8bc04f69f19cf9df32'
  - url: 'https://git.kernel.org/stable/c/00ee64910ecf748cc15b23bbcbea472c203ec1e8'
  - url: 'https://git.kernel.org/stable/c/81c9b4921f62d1642b9d775524ae9240e521a5ed'
  - url: 'https://git.kernel.org/stable/c/52f9a588296432accf2982f7d258192a37562f4f'
  - url: 'https://git.kernel.org/stable/c/a00946b5ab7c25da5685ca9c58f50ff6f43c0fdf'
  - url: 'https://git.kernel.org/stable/c/ffb33d466a68cea3e8a3dbed04d79037a3cbabd1'
  - url: 'https://git.kernel.org/stable/c/be725ab23aa45c11a5afef3e2a9f6d8c084ae5dc'
  - url: 'https://git.kernel.org/stable/c/0c01c811be47e6b146552dd59bfedbea8f09b8f4'
tags:
  - cve.org
epss: 0.00129
epssPercentile: 0.02266
ingestedAt: '2026-10-16T17:24:46.839Z'
---

## Overview

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

drm/amdgpu: fix division by zero with invalid uvd dimensions

When width or height is less than 16, width_in_mb or height_in_mb
becomes 0, leading to fs_in_mb being 0. This causes a division by
zero when calculating num_dpb_buffer in H264 and H264 Perf decode
paths.

Add validation to reject frames with width < 16 or height < 16
before performing any calculations that depend on these values.

V2: Format change - move up all vaiable definitions.
V3: Use warn_once to avoid spam.

(cherry picked from commit 3e41d26c70b0a459d041cc19482a226c4b7423cb)

## Affected

- `Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21 < 004d0453cfef16f056cb7b8bc04f69f19cf9df32`
- `Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21 < 00ee64910ecf748cc15b23bbcbea472c203ec1e8`
- `Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21 < 81c9b4921f62d1642b9d775524ae9240e521a5ed`
- `Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21 < 52f9a588296432accf2982f7d258192a37562f4f`
- `Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21 < a00946b5ab7c25da5685ca9c58f50ff6f43c0fdf`
- `Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21 < ffb33d466a68cea3e8a3dbed04d79037a3cbabd1`
- `Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21 < be725ab23aa45c11a5afef3e2a9f6d8c084ae5dc`
- `Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21 < 0c01c811be47e6b146552dd59bfedbea8f09b8f4`
- `Linux 4.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
